I am trying to solve the problem, how to change autonaming for Project from fieldname to Naming Series using custom app, without touching Standard Doctype and exporting it as a fixture.
By mistake asked already in this topic:
python script that runs after install can be used?
@revant_one, could you please point me to some example how to change autonaming of Projects from fieldname to Naming Series via py script? I do not have an idea and did not found anything similar here…
I searched about this. I don’t think it is possible without modifying ERPNext code.
Either fork and maintain fork or send a PR where you replicate the functionality of Customer or Supplier. The name can be based on naming series and it is configurable through Selling Settings or Buying Settings.
If it was like customer settings you could write a python function and mention module dot path to it in hooks.py after_install
example for setting customer by naming series,
the function does frappe.db.set_value("Buying Settings", "Buying Settings", "cust_master_name", "Naming Series")