Skip to content
Snippets Groups Projects
Commit f321ed41 authored by jordan's avatar jordan
Browse files

[add] onchange to empty type contact when change company_type

parent 536480bc
Branches
No related tags found
No related merge requests found
......@@ -153,6 +153,10 @@ class ModelName(models.Model):
# ------------------------------------------------------
# Onchange / Constraints
# ------------------------------------------------------
@api.onchange('company_type')
def onchange_company_type(self):
self.type_id = None
@api.onchange('type_id')
def onchange_type(self):
self.subtype_id = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment