Hello,
how can i set the context 'active_test': False on related fields in odoo 11?
This doesn't work:
field_name = fields.One2many(
related='xxx.field_name',
context={
'active_test': False,
}
)
On the original field definition, the active_test context works
field_name = fields.One2many(
comodel_name='model.a',
inverse_name='company_id',
string='XXX',
context={
'active_test': False,
},
)
I have also tried to set the context in the view definition.
Regards Hermann
get an idea: http://learnopenerp.blogspot.com/2018/01/get-parent-form-value-in-one2many-form.html