res_users_view.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <!-- Form -->
  5. <record id="view_journal_security_users_form" model="ir.ui.view">
  6. <field name="name">journal_security.users.form</field>
  7. <field name="model">res.users</field>
  8. <field name="inherit_id" ref="base.view_users_form"/>
  9. <field name="arch" type="xml">
  10. <field name="company_id" position="after">
  11. <label for="store_id" class="oe_edit_only" groups="multi_store.group_multi_store"/>
  12. <field name="store_id" context="{'user_preference': 0}" groups="multi_store.group_multi_store"/>
  13. </field>
  14. <group string="Allowed Companies" position="after">
  15. <group string="Allowed Stores" groups="multi_store.group_multi_store">
  16. <field name="store_ids" nolabel="1" widget="many2many_tags"/>
  17. </group>
  18. </group>
  19. </field>
  20. </record>
  21. <record id="view_journal_security_user_preference_form" model="ir.ui.view">
  22. <field name="name">journal_security.user.preference.form</field>
  23. <field name="model">res.users</field>
  24. <field name="inherit_id" ref="base.view_users_form_simple_modif"/>
  25. <field name="arch" type="xml">
  26. <field name="company_id" position="after">
  27. <field name="store_id" readonly="0" contest="{'user_preference':0}" options="{'no_create': True}" groups="multi_store.group_multi_store"/>
  28. </field>
  29. </field>
  30. </record>
  31. </data>
  32. </openerp>