[IMP] hr,project,crm: force user preferences field to read/write, despite not having full write access to res.users these special fields are read/write for everyone on their own user record

bzr revid: odo@openerp.com-20100713133148-h0xoc58eb3xal12o
This commit is contained in:
Olivier Dony
2010-07-13 15:31:48 +02:00
parent d591eaa759
commit 6e28cc6257
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -374,7 +374,8 @@
<page string="Current Activity" position="inside">
<field name="context_section_id" completion="1"
widget="selection"
context="{'user_prefence':True}" />
context="{'user_prefence':True}"
readonly="0"/>
</page>
</field>
</record>
+1 -1
View File
@@ -101,7 +101,7 @@
<field name="type">form</field>
<field name="arch" type="xml">
<page string="Current Activity" position="inside">
<field name="context_department_id" widget="selection" />
<field name="context_department_id" widget="selection" readonly="0"/>
</page>
</field>
</record>
+1 -1
View File
@@ -571,7 +571,7 @@
<field eval="18" name="priority"/>
<field name="arch" type="xml">
<page string="Current Activity" position="inside">
<field name="context_project_id" completion="1" context="{'user_prefence':True}" widget="selection"/>
<field name="context_project_id" completion="1" context="{'user_prefence':True}" widget="selection" readonly="0"/>
</page>
</field>
</record>