-
-
Save cmorisse/bb74f55d3347d30301cf25461f8d3a49 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