[NEW] hr_attendance_work_entry: for Odoo 13

This commit is contained in:
Jared Kipe
2020-09-18 11:28:39 -07:00
parent 01e60f6e35
commit 87ac2897f3
9 changed files with 180 additions and 0 deletions

View File

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