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 | etc.
purchase_price in sale.order.line, you can see it in database as column but not in sale.py sale_order_line class definition, why?
I am trying to calculate the value of margin for every sale order line.
I can see that purchase_price is part of database as a regular column in sale_order_line.
But when I read sale.py code I can see that it is not part of sale_order_line class.
I can't either use the value in on_change attributes, everytime I change the value of purchase_price in the form and try to submit it to backend server the previous value is used.
Anyway if I modify and store the value is properly recorded in database. Could someone help me to understand how this works?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/7/16, 9:20 AM|
|Seen: 440 times|
|Last updated: 2/7/16, 9:20 AM|