Hello guys!
I have applied a domain to a field. It works well.
But now, even administrator can see only his own user_id in the field. This it not what I want.
How to applied a domain only for user in base.group_user group?
Thanks!!!
<record id="hr_timesheet_sheet_form" model="ir.ui.view">
<field name="name">hr.timesheet.form.inherited.vtm2</field>
<field name="model">hr_timesheet_sheet.sheet</field>
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form" />
<field name="arch" type="xml">
<field name="employee_id" position="replace">
<field name="employee_id" domain="[('user_id', '=', user_id)]" />
</field>
</field>
</record>