Last active
August 30, 2017 23:53
-
-
Save vcloud9ray/706a5556305766b7572fa488d8e1d093 to your computer and use it in GitHub Desktop.
Odoo. UI. Automated Action to update Fiduciary if Override is used.
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
query = "update res_partner set commercial_partner_id =" + str(object.x_commercial_partner_id.id) + " where id = " + str(object.id) + ";" | |
env.cr.execute(query) | |
# Execute Python Code Action based on an Automated Action listening for UPDATES to res.partner | |
# Add x_commercial_partner_id with appropriate group restricted view |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment