Error in Many2One domain with more than one boolean field set to True
When you click on the "Create a new record" button of the many2one widget, and the definition of the many2one field has a domain with two boolean fields set to True, it opens the target form, but with the two boolean fields set to False and colored Red.
For example, with this code, if i remove ('check_2', '=', True) from the domain, it works. But with the two conditions i get the ModelA form open with the two fields set to False and red color:
class ModelA(ModelSQL, ModelView):
'Model A'
__name__ = 'model_a'
check_1 = fields.Boolean('1')
check_2 = fields.Boolean('2')
class ModelB(ModelSQL, ModelView):
'Model B'
__name__ = 'model_b'
model_a = fields.Many2One('model_a', 'Model A',
domain=[
('check_1', '=', True),
('check_2', '=', True),
])