12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_common_organization_list">
- <field name="name">数据权限列表</field>
- <field name="model">archives.organization</field>
- <field name="arch" type="xml">
- <tree>
- <field name="user_id"/>
- <field name="active_company"/>
- <field name="active_department"/>
- <field name="active_staff"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_common_organization_edit">
- <field name="name">数据权限新建</field>
- <field name="model">archives.organization</field>
- <field name="arch" type="xml">
- <form>
- <sheet>
- <group name="group_top" string="数据权限" col="4">
- <field name="user_id" attrs="{'readonly':[('user_id','!=',False),('id','>',0)]}"
- options="{'no_open':True,'no_create':True}"/>
- <field name="id" attrs="{'invisible':True}"/>
- </group>
- <notebook>
- <page string="设置">
- <group name="group_second" col="4">
- <field name="active_department"/>
- <field name="active_staff"/>
- <field name="active_store" options="{'no_open':True,'no_create':True}"/>
- <field name="active_goods" options="{'no_open':True,'no_create':True}"/>
- <field name="active_customer" options="{'no_open':True,'no_create':True}"/>
- <field name="active_provider" options="{'no_open':True,'no_create':True}"/>
- </group>
- </page>
- <page string="部门授权">
- <field name="department_ids"/>
- </page>
- <page string="人员授权">
- <field name="staff_ids"/>
- </page>
- <page string="仓库授权">
- <field name="store_ids"/>
- </page>
- <page string="物料授权">
- <field name="goods_ids"/>
- </page>
- <page string="客户授权">
- <field name="customer_ids"/>
- </page>
- <page string="供应商授权">
- <field name="provider_ids"/>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="organization_search_view">
- <field name="name">archives.organization.search</field>
- <field name="model">archives.organization</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_common_organization_action_window">
- <field name="name">数据权限</field>
- <field name="res_model">archives.organization</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="数据权限" id="archives.menu_organization" parent="base.menu_users"
- action="archives_common_organization_action_window" sequence="4"
- groups="archives.group_user_author"/>
- </data>
- </openerp>
|