I want to make some changes in the .py file of sales order.But I am not able to trace the location of the file.In which file should I make editings so that it reflect in the sales order
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
You should make your own module and overwrite the sales part that you want altered. Never make modifications in the core code because that will bite you in the end and will be lost everytime you update the main branch.
This link might help you on that:
Actually there is no need to create as i dont want the alteration permanently.I just want to enable the deletion of sales order in done status.So i am planning to edit the unlink method in the .py file and enable deletion and after deleting all the sales order i will rollback the changes to the py file.
Ah, in that case, search for the class sale_order(osv.osv). It should be somewhere in addons/sale/sale.py
Invalid Action!
In order to delete a confirmed sales order, you must cancel it.
To do so, you must first cancel related picking for delivery orders.
Ok
Ah, in that case, search for the class sale_order(osv.osv). It should be somewhere in addons/sale/sale.py
--
Ludo - Neobis Sent by OpenERP S.A. using OpenERP. Access your messages and documents in Odoo
but i cant found that error message in invalid action in addons/sale/sale.py.THe message is Invalid Action! In order to delete a confirmed sales order, you must cancel it. To do so, you must first cancel related picking for delivery orders.