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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
5
dic 23
|
22134 | ||
|
0
abr 22
|
2382 | ||
|
2
abr 21
|
7657 | ||
|
1
ago 19
|
5979 | ||
|
1
jul 16
|
4479 |