@api.onchange called from xml-rpc
问题 I created a function f. e. @api.onchange('zip') def onchange_zip(self): self.name = "%s %s" % (self.name, self.zip) It works perfectly when I change the zip field by interface. But when I do it by xml-rpc or any other api it is not triggered. Is it possible to solve it different than overriding write, create methods? 回答1: @api.onchage is meant to be used to update something on the fly, for example changing something on field in the web interface in edit mode and immediately update the effect