Created
October 31, 2016 20:40
-
-
Save holdenrehg/8a2b9eda9ba3249dbd5af4ab1fe46f93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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