Skip to Content
Menu
This question has been flagged
1 Reply
1266 Views

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?

Avatar
Discard
Best Answer

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', ....)

Avatar
Discard