Clear the field sale_device when the company is changed

This commit is contained in:
carlosgalvez-nan 2020-02-06 13:13:42 +01:00
parent 962c101208
commit bcf5d9cabe

View File

@ -37,3 +37,7 @@ class User(metaclass=PoolMeta):
table.column_rename(old_column, new_column)
super(User, cls).__register__(module_name)
def on_change_company(self):
super().on_change_company()
self.sale_device = None