mirror of
https://bitbucket.org/presik/trytonpsk-staff_payroll_co.git
synced 2023-12-14 06:42:56 +01:00
minor fix
This commit is contained in:
parent
088b3232bd
commit
58dfd6a79e
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue