On Friday, May 29, 2015 at 11:25:06 AM UTC+2, Giovanni wrote: > > > 2015-05-29 11:17 GMT+02:00 Simon Klemenc <[email protected] > <javascript:>>: > >> At the moment i try to update a many2one field within an on_change_* >> method.. > > > What exactly are you trying to do ? Is it : > > - Updating the Many2One field itself on the current record > or > - Modifying the target record of the Many2One > > The first one should work properly, i.e. "self.party = some_other_party". > > However, the second one is not possible, as Many2One are not "part of" the > current record (whether One2Many are). So : > > self.party.name = 'Something' > > will not be possible. >
Thats what i wanted to achieve... However what i tried was to define a one2many function field, but i cant get values to be updated there neither... Does it have to be a _real_ one2many field? Can't i trigger updates on one2many function fields?
