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.
I am learning how to use the compute field under Odoo v8. The example in the docs looks clear and it seems pretty easy, but no mather what I do it doesn't seem to get triggered.
This is the most basic example I am testing which is not working for some reason:
'total_units': fields.char(compute='_compute_total',string='Number of Units'),
print "Show this if triggered"
self.total_units = 23
For this basic example I was looking to see a '23' on the total_units field, but nothing happens.
Shouldn't _compute_total be triggered each time the tree view is opened? What I am missing?
Any help will be appreciated,
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/28/15, 10:29 PM|
|Seen: 2108 times|
|Last updated: 3/16/15, 8:10 AM|