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 have many2one field and I have written onchange method on it. When onchange happens i want the previous value of it. How can it possible?
1. I selected product "A1".
2. Then, I removed "A1" I selected product "A2".
3. I want "A1" in method which i selected in 1st step.
1-Try to make another field by the same type just in different name.
2-when you change the value of first field get the old value from the second field and update it by the new value.
|field1 = fields.Char()|
field2 = fields.Char()
| self.field2= self.field1|
hope I helped You...
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: 1/20/18, 12:15 AM|
|Seen: 909 times|
|Last updated: 2/10/18, 3:55 AM|