12345678910111213141516171819202122232425262728293031323334 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <!-- Form -->
- <record id="view_journal_security_users_form" model="ir.ui.view">
- <field name="name">journal_security.users.form</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_users_form"/>
- <field name="arch" type="xml">
- <field name="company_id" position="after">
- <label for="store_id" class="oe_edit_only" groups="multi_store.group_multi_store"/>
- <field name="store_id" context="{'user_preference': 0}" groups="multi_store.group_multi_store"/>
- </field>
- <group string="Allowed Companies" position="after">
- <group string="Allowed Stores" groups="multi_store.group_multi_store">
- <field name="store_ids" nolabel="1" widget="many2many_tags"/>
- </group>
- </group>
- </field>
- </record>
- <record id="view_journal_security_user_preference_form" model="ir.ui.view">
- <field name="name">journal_security.user.preference.form</field>
- <field name="model">res.users</field>
- <field name="inherit_id" ref="base.view_users_form_simple_modif"/>
- <field name="arch" type="xml">
- <field name="company_id" position="after">
- <field name="store_id" readonly="0" contest="{'user_preference':0}" options="{'no_create': True}" groups="multi_store.group_multi_store"/>
- </field>
- </field>
- </record>
-
- </data>
- </openerp>
|