Odoo Help
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.
Update field with button
I have a problem when i update field1 with the vale of field2 from button in the same form
<field name="field1" />
<field name="field2" />
<button name="button1" type="object" />
def button1(self, cr, uid, ids, context=None):
...
return self.write(cr, uid, ids, {'field1': field2}, context=context)
_columns = {
'field1': fields.integer('Field1'),
'field2': fields.integer('Field2'),
}
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 5/8/15, 10:51 AM |
Seen: 603 times |
Last updated: 5/12/15, 8:18 AM |
field2 is an undefined variable(in python), so you need to assign the value to it by browsing the record