Hello All,
i have a Integer field in purchase order line and field value is 50.00 and a Boolean field available in Purchase Order. How to set line field value 0 (Zero) on change parent Boolean field condition?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello All,
i have a Integer field in purchase order line and field value is 50.00 and a Boolean field available in Purchase Order. How to set line field value 0 (Zero) on change parent Boolean field condition?
try to do:
api.onchange('order_id.your_boolean')
or create a related field in the order line reflecting the value of the boolean
your_boolean_in_the_line = fields.Boolean(related='order_id.your_boolean', ....)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up