mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[ADD] hr_timesheet_work_entry: for Odoo 13
This commit is contained in:
15
hr_timesheet_work_entry/__init__.py
Normal file
15
hr_timesheet_work_entry/__init__.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from . import models
|
||||
|
||||
|
||||
def ts_work_type_pre_init_hook(cr):
|
||||
"""
|
||||
This module installs a Work Entry Type with code "TS"
|
||||
If you have undergone a migration (either for this module
|
||||
or even your own Payslip Work Entry lines with code "TS")
|
||||
then the uniqueness constraint will prevent this module
|
||||
from installing.
|
||||
"""
|
||||
cr.execute("UPDATE hr_work_entry_type "
|
||||
"SET code = 'TS-PRE-INSTALL' "
|
||||
"WHERE code = 'TS';"
|
||||
)
|
||||
Reference in New Issue
Block a user