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 habe a problem to change an existing boolen field to an computed boolean field:
_inherit = 'project.task.type'
self.value = True
value = fields.Boolean(compute='_get_value')
The field is visible on the form view but the method _get_value ist never called.
Ok my friend as i see in this link: http://odoo-new-api-guide-line.readthedocs.org/en/latest/fields.html
We cant add a compute function to a boolean field.
You can do this:
def on_change_value_id(self, cr, uid, ids, field_name, context=None):
print ('------------------------test vente--------------------')
Try this and tell me what you have got. Regards.
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: 9/8/15, 7:48 AM|
|Seen: 2676 times|
|Last updated: 9/8/15, 10:08 AM|