Sakthi Priya
Sakthi Priya

Reputation: 347

How to change boolean field value based on boolean field in other form odoo?

I'm having one boolean field in mrp form and other boolean field in stock picking form. i need to set mrp_boolean to true if stock_boolean set to true.

Kindly help me here|

Upvotes: 0

Views: 500

Answers (1)

Saumil gauswami
Saumil gauswami

Reputation: 725

You can use the related field concept, Try this.

Example:

mrp_boolean = fields.Boolean(related="picking_id.stock_boolean", store=True)
stock_boolean = fields.Boolean("Stock Boolean")

Upvotes: 1

Related Questions