comment login-label

This commit is contained in:
Esraa-Exp 2025-04-25 09:32:40 +02:00
parent 9572ea4313
commit 8f7e4e0c81
3 changed files with 10 additions and 10 deletions

View File

@ -616,7 +616,7 @@ class HrEmployee(models.Model):
'default_phone': self.work_phone,
'default_mobile': self.mobile_phone,
'default_login': login,
'default_login_label': login_label,
# 'default_login_label': login_label,
}
}

View File

@ -7,7 +7,7 @@ class ResUsers(models.Model):
create_employee = fields.Boolean(store=False, default=True, copy=False, string="Technical field, whether to create an employee")
create_employee_id = fields.Many2one('hr.employee', store=False, copy=False, string="Technical field, bind user to this employee on create")
login_label = fields.Char()
# login_label = fields.Char()
@api.model_create_multi

View File

@ -472,15 +472,15 @@
<!-- Remove static label and show nothing -->
</xpath>
<xpath expr="//field[@name='login']" position="before">
<div class="o_form_label">
<strong>
<field name="login_label" readonly="1"/>
</strong>
</div>
</xpath>
<!-- <xpath expr="//field[@name='login']" position="before">-->
<!-- <div class="o_form_label">-->
<!-- <strong>-->
<!-- <field name="login_label" readonly="1"/>-->
<!-- </strong>-->
<!-- </div>-->
<!-- </xpath>-->
<xpath expr="//field[@name='mobile']" position="after">
<field name="login_label" invisible="1"/>
<!-- <field name="login_label" invisible="1"/>-->
<field name="create_employee_id" force_save="1" invisible="1"/>
<field name="create_employee" force_save="1" string="Create Employee" invisible="not context.get('allow_create_employee', True)" attrs="{'invisible': [('create_employee_id', '>', 0)]}"/>
</xpath>