1
<?xml version="1.0" encoding="utf-8"?>
5
<record model="ir.ui.view" id="view_users_form_tasks_access_restrict">
6
<field name="name">res.users.form.restricted</field>
7
<field name="type">form</field>
8
<field name="model">res.users</field>
9
<field name="inherit_id" ref="base.view_users_form"/>
10
<field name="arch" type="xml">
11
<notebook position="inside">
12
<page string="Projects" groups="base.group_extended">
13
<separator string="Projects" colspan="4"/>
14
<field name="project_ids" nolabel="1" colspan="4"/>
20
<record id="project_task_form_tasks_access_restrict" model="ir.ui.view">
21
<field name="name">project.task.form.restricted</field>
22
<field name="model">project.task</field>
23
<field name="type">form</field>
24
<field name="inherit_id" ref="project.view_task_form2"/>
25
<field name="arch" type="xml">
26
<xpath expr="//field[@name='user_id']" position="attributes">
27
<attribute name="domain">['|',('id','=',uid),('project_ids','=',project_id)]</attribute>