minor fix

This commit is contained in:
wilson gomez 2022-01-19 14:50:37 -05:00
parent 088b3232bd
commit 58dfd6a79e

View file

@ -133,6 +133,16 @@ class Liquidation(Workflow, ModelSQL, ModelView):
},
})
@classmethod
def __register__(cls, module_name):
super(Liquidation, cls).__register__(module_name)
cursor = Transaction().connection.cursor()
sql_table = cls.__table__()
cursor.execute(*sql_table.update(
[sql_table.kind], ['holidays'],
where=sql_table.kind == 'vacation'))
@staticmethod
def default_company():
return Transaction().context.get('company')