lims_interface: do not try to set attribute through Model.__init__()

This commit is contained in:
Mario Puntin 2020-03-26 12:07:00 -03:00
parent 6f3656e662
commit 95f584356a
1 changed files with 10 additions and 0 deletions

View File

@ -131,6 +131,16 @@ class Data(sequence_ordered(), ModelSQL, ModelView):
# search()
return cls.get_sql_table()
def __init__(self, id=None, **kwargs):
kwargs = {}
super(Data, self).__init__(id, **kwargs)
def __getattr__(self, name):
try:
return super(Data, self).__getattr__(name)
except AttributeError:
pass
def on_change_with(self, fieldnames):
table = self.get_table()
res = {}