Skip to content

Instantly share code, notes, and snippets.

@holdenrehg
Created October 31, 2016 20:40
Show Gist options
  • Save holdenrehg/8a2b9eda9ba3249dbd5af4ab1fe46f93 to your computer and use it in GitHub Desktop.
Save holdenrehg/8a2b9eda9ba3249dbd5af4ab1fe46f93 to your computer and use it in GitHub Desktop.
@api.multi
def _compute_field(self):
for rec in self:
# Why does this not work?
rec.write({'field': True})
# Both of these are fine.
rec.update({'field': True})
rec.field = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment