hi all,
i created a One2many relation like this
line_ids = fields.One2many('comodel', 'relation_id', string = "something")
in the past e.g. odoo 10 i could add a value from code in the One2many field by doing:
value = [(0,0, {'fieldname': something})]
self.update({
'line_ids' : value,
})
the updated line_ids shows the value imidiately.
in Odoo 16 i only see in the form that it has to be saved, nothing else.
I can add a value from the form itself, but not from code
in Odo 16 it doesnt seem possible anymore. did they change the way adding values in One2many fields?
hope you understand what i mean.
thx for any help