[IMP] hr_work_entry: add external code field

Add an external code field on the hr_work_entry model to have
a custom code when exporting the work entries to another system.

task-2929493

closes odoo/odoo#104326

Related: odoo/upgrade#3998
Related: odoo/enterprise#33337
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Philippe Wauthy
2023-02-23 16:08:20 +01:00
committed by Kevin Baptiste
parent 806573d4f3
commit 7edfdcd25b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -241,7 +241,8 @@ class HrWorkEntryType(models.Model):
_description = 'HR Work Entry Type'
name = fields.Char(required=True, translate=True)
code = fields.Char(required=True, help="Careful, the Code is used in many references, changing it could lead to unwanted changes.")
code = fields.Char(string="Payroll Code", required=True, help="Careful, the Code is used in many references, changing it could lead to unwanted changes.")
external_code = fields.Char(help="Use this code to export your data to a third party")
color = fields.Integer(default=0)
sequence = fields.Integer(default=25)
active = fields.Boolean(
@@ -176,7 +176,8 @@
<group name="identification" class="o_form_fw_labels">
<field name="active" invisible="1"/>
<field name="code"/>
<field name="sequence"/>
<field name="external_code"/>
<field name="sequence" groups="base.group_no_one"/>
<field name="color" widget="color_picker"/>
</group>
</group>