origanization.xml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <openerp>
  2. <data>
  3. <!-- explicit list view definition -->
  4. <record model="ir.ui.view" id="archives_common_organization_list">
  5. <field name="name">数据权限列表</field>
  6. <field name="model">archives.organization</field>
  7. <field name="arch" type="xml">
  8. <tree>
  9. <field name="user_id"/>
  10. <field name="active_company"/>
  11. <field name="active_department"/>
  12. <field name="active_staff"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record model="ir.ui.view" id="archives_common_organization_edit">
  17. <field name="name">数据权限新建</field>
  18. <field name="model">archives.organization</field>
  19. <field name="arch" type="xml">
  20. <form>
  21. <sheet>
  22. <group name="group_top" string="数据权限" col="4">
  23. <field name="user_id" attrs="{'readonly':[('user_id','!=',False),('id','>',0)]}"
  24. options="{'no_open':True,'no_create':True}"/>
  25. <field name="id" attrs="{'invisible':True}"/>
  26. </group>
  27. <notebook>
  28. <page string="设置">
  29. <group name="group_second" col="4">
  30. <field name="active_department"/>
  31. <field name="active_staff"/>
  32. <field name="active_store" options="{'no_open':True,'no_create':True}"/>
  33. <field name="active_goods" options="{'no_open':True,'no_create':True}"/>
  34. <field name="active_customer" options="{'no_open':True,'no_create':True}"/>
  35. <field name="active_provider" options="{'no_open':True,'no_create':True}"/>
  36. </group>
  37. </page>
  38. <page string="部门授权">
  39. <field name="department_ids"/>
  40. </page>
  41. <page string="人员授权">
  42. <field name="staff_ids"/>
  43. </page>
  44. <page string="仓库授权">
  45. <field name="store_ids"/>
  46. </page>
  47. <page string="物料授权">
  48. <field name="goods_ids"/>
  49. </page>
  50. <page string="客户授权">
  51. <field name="customer_ids"/>
  52. </page>
  53. <page string="供应商授权">
  54. <field name="provider_ids"/>
  55. </page>
  56. </notebook>
  57. </sheet>
  58. </form>
  59. </field>
  60. </record>
  61. <record model="ir.ui.view" id="organization_search_view">
  62. <field name="name">archives.organization.search</field>
  63. <field name="model">archives.organization</field>
  64. <field name="arch" type="xml">
  65. <search>
  66. <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
  67. </search>
  68. </field>
  69. </record>
  70. <!-- actions opening views on models -->
  71. <record model="ir.actions.act_window" id="archives_common_organization_action_window">
  72. <field name="name">数据权限</field>
  73. <field name="res_model">archives.organization</field>
  74. <field name="view_mode">tree,form</field>
  75. </record>
  76. <!-- actions -->
  77. <menuitem name="数据权限" id="archives.menu_organization" parent="base.menu_users"
  78. action="archives_common_organization_action_window" sequence="4"
  79. groups="archives.group_user_author"/>
  80. </data>
  81. </openerp>