login-label
This commit is contained in:
parent
8f7e4e0c81
commit
8e8a03e58e
|
|
@ -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,
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue