Failed to get method for command india_compliance.gst_india.number_card.number_card.get_active_e_invoice_count_for_cancelled_invoices with No module named ‘india_compliance.gst_india.number_card.number_card’
This is an old method and does not exist in the latest versions of India Compliance.
Are you using it in custom code? You may have to update that.
Relevant PR: fix: simplify e-invoice summary report by Sanket322 · Pull Request #1686 · resilient-tech/india-compliance · GitHub
I am not using custom code. my repo is also updated
is this anyway i can fix this specific issue ?
probably my previous migration dint work properly.
Try looking at the Console or Network tab in your browser’s developer tools for the traceback. This will help understand where the call to this non-existent method is originating from.
Here is my console. I dint do any manual changes here. everything was updated and migrate through bench commands.
Go to the following path on your site:
/app/number-card/Invoice Cancelled But Not e-Invoice
Check for the “method” field in the console:
Ideally it should be empty (as shown above), but that may not be the case if your number card hasn’t migrated properly.
In that case, you can run the following code in bench console
to ensure that it gets migrated:
frappe.reload_doc("gst_india", "number_card", "invoice_cancelled_but_not_e_invoice")
frappe.db.commit()
From your browser console, I also noticed that the issue is happening in another number card as well.
I think your migration may not have happened properly. You can retry migrating to see if it helps.
Migration can also fail to update a number card if the number card has been manually edited.