Created
December 4, 2015 13:31
-
-
Save andrius-preimantas/d0ce3f3993fafdbbb840 to your computer and use it in GitHub Desktop.
Odoo server action to recompute stored fields
This file contains 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
# Recompute amount_total for account.invoice | |
env.add_todo(model._fields['amount_total'], object) | |
model.recompute() | |
# where | |
# object - recordset of instances to recompute field for | |
# model - recordset instances model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment