How to detect the version of ERPNext in which my Custom App is installed into?


As a Custom App can be installed in multiple version of ERPNext is there a way by which we can check for the version of ERPNext in which a Custom App is installed and accordingly specify the dependence parameters (esp. in case of ERPNext 14) or better still enable or disable certain features based on the version of ERPNext?

One more question:
Can we stop Bench from installing Custom App if the desired version of ERPNext is not present?


Yogi Yang


In your custom app’s requirements.txt

add below lines

1 Like