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...