resilient-tech / india-compliance

Simple, yet powerful compliance solutions for Indian businesses
https://indiacompliance.app
GNU General Public License v3.0
146 stars 135 forks source link

India_Compliance Causing issue 'Invalid "depends_on" expression on many module; #978

Closed QuakeString closed 1 year ago

QuakeString commented 1 year ago

Information about bug

  1. l've taken backup(db/privte-files/public-files/site-config) of my site from prvious installatin which was as normal installation. Then erpnext was Production Branch Version - 14.26 or so ( not remember exactly). Now I've install erpnext on docker (Production branch version-14) as per official guide. and restore my previous site. also The India_Compliance Version-14 after all done, I get a lot of issue. my invoice form is not displaying. can't edit the address or items 2023-08-17_23-44 2023-08-17_23-43_1 2023-08-17_23-43
  2. After lot of tri and research I uninstall India_compliance app, and then check,
  3. I found that all error are not and I can see my inoivce form or edit the address or items.

Version

erpnext 14.34.3
frappe 14.44.0
hrms 14.10.0
india_compliance 14.15.1
payments 0.0.1
whitelabel 0.0.1

Relevant log output / Stack trace / Full Error Message.

No response

Code of Conduct

ljain112 commented 1 year ago

Hello,

Can you please share the traceback to further investigate the issue? Traceback is important and crucial to help resolve the bug. https://stackoverflow.com/questions/36503244/how-to-copy-a-stack-trace-from-the-chrome-console

vorasmit commented 1 year ago

Do you have custom files exported in your custom app whitelabel 0.0.1? Probably these custom fields in India Compliance App are being overwritten because of this.

QuakeString commented 1 year ago

Do you have custom files exported in your custom app whitelabel 0.0.1? Probably these custom fields in India Compliance App are being overwritten because of this.

No, Whitelabel is not not installed on my site which has issue.

QuakeString commented 1 year ago

Here is console output of page where Invoice Form not showing 2023-08-18_16-13_1

This one the popups Invalid "depends_on" expression 2023-08-18_16-13

vorasmit commented 1 year ago

This seems to issue with the Installation and/or customisation of the app that you have. We recommend you use Frappe Cloud and it would simplify your Installation.

shreyasubale commented 1 year ago

i am also facing a exact same issue. This is a new install , and no other packages are present.I used easy_install prod version to install erpnext, then i installed india_compliance via this command docker compose -f frappe-compose.yml exec backend bench get-app --branch version-14 https://github.com/resilient-tech/india-compliance.git and docker compose -f frappe-compose.yml exec backend bench install-app india_compliance

vorasmit commented 1 year ago

I guess the issue is in how you are installing the application. Not sure about Docker and the correctness of your installation steps. Doesn't seem to be an issue the app itself and hence closing this issue.

shreyasubale commented 1 year ago

@vorasmit as mentioned in the official document, docker is the recommended way to install erpnext in production. Does india_compliance suggest another way ? I think we should support official ways to install right ?

vorasmit commented 1 year ago

I never said we don't support Docker Installation. Frappe Cloud is using docker. I meant that I cannot vouch for the steps that you mentioned for installation.

You shouldn't be facing this issue if you are installing this correctly.

If you can replicate this issue of Frappe Cloud, please share the link to the site and we will fix this.

QuakeString commented 1 year ago

Found a clue/fix for invalid "depends on" expression these express on Custom Field "Item-gst_hsn_code" of "Item" doctype 2023-10-08_06-54

but the issue of totally blank invoice form view is still persist. I'm sure its not something issue of installation. 2023-10-08_07-55

vorasmit commented 1 year ago

Seems JS build issue. Try bench build in the bench directory.

QuakeString commented 1 year ago

getting this error 2023-10-08_08-14 and this is the site. 2023-10-08_08-23