Last active
February 6, 2019 20:15
-
-
Save yk2kus/ec7a5216112dc6f0ad9f315f0d3d96e4 to your computer and use it in GitHub Desktop.
re compute computed field
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
session.open(db="saturnprogress.com") | |
user = session.env['res.users'].browse(1) | |
model = session.env['account.invoice'] | |
session.env.add_todo(model._fields['vendor_display_name'], session.env['account.invoice'].search([])) | |
model.recompute() | |
session.env.cr.commit() | |
session.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment