Last active
August 3, 2021 09:00
-
-
Save 3mrdev/fc6045686bf77238ec1d044e765f7aa7 to your computer and use it in GitHub Desktop.
On Change Domain by a method (Odoo)
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
@api.onchange('partner_type') | |
def onchange_partner_type(self): | |
domain = [] | |
return {'domain': {'partner_id': domain}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment