Files
suite/hr_payroll_attendance/__init__.py
2020-11-26 13:25:39 +00:00

16 lines
501 B
Python
Executable File

from . import models
def attn_payroll_pre_init_hook(cr):
"""
This module installs a Work Entry Type with code "ATTN_OT"
If you have undergone a migration (either for this module
or even your own Payslip Work Entry lines with code "ATTN_OT")
then the uniqueness constraint will prevent this module
from installing.
"""
cr.execute("UPDATE hr_work_entry_type "
"SET code = 'ATTN_OT-PRE-INSTALL' "
"WHERE code = 'ATTN_OT';"
)