Hi,
This is an example:
class ModelA(models.Model): type = fields.Boolean(string='Type') class ModelB(models.Model): type = fields.Selection([('1', 'One'),('2', 'Two')]) |
I want when i select 1 in the selection option in model B to change the default value of field 'type' in model A to true, and 2 to false
How can i do that
Thanks