mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
16 lines
494 B
Python
16 lines
494 B
Python
from . import models
|
|
|
|
|
|
def ts_payroll_pre_init_hook(cr):
|
|
"""
|
|
This module installs a Work Entry Type with code "TS_OT"
|
|
If you have undergone a migration (either for this module
|
|
or even your own Payslip Work Entry lines with code "TS_OT")
|
|
then the uniqueness constraint will prevent this module
|
|
from installing.
|
|
"""
|
|
cr.execute("UPDATE hr_work_entry_type "
|
|
"SET code = 'TS_OT-PRE-INSTALL-15' "
|
|
"WHERE code = 'TS_OT';"
|
|
)
|