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

Hello,

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?

TIA

Yogi Yang

Yes

In your custom app’s requirements.txt

add below lines

frappe>=13.0.0
erpnext>=13.0.0
1 Like