1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_subordinate_customer_list">
- <field name="name">下级客户列表</field>
- <field name="model">archives.subordinate_customer</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <field name="coding"/>
- <field name="customer_id"/>
- <field name="customer_id"/>
- <field name="bank_id"/>
- <field name="available"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_subordinate_customer_edit">
- <field name="name">下级客户新建</field>
- <field name="model">archives.subordinate_customer</field>
- <field name="arch" type="xml">
- <form>
- <header>
- <field name="id" attrs="{'invisible': True}"/>
- <field name="available" attrs="{'invisible': True}"/>
- <button name="set_available" string="启用" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': [('available','==',True)]}"/>
- <button name="un_set_available" string="停用" type="object" class="oe_highlight oe_read_only"
- attrs="{'invisible': [('available','==',False)]}"/>
- </header>
- <sheet>
- <group name="group_top" col='4'>
- <field name="name"/>
- <field name="coding"/>
- <field name="customer_id" options="{'no_open':True,'no_create':True}"/>
- <field name="bank_id" options="{'no_open':True,'no_create':True}"/>
- <field name="account"/>
- <field name="company_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="subordinate_customer_search_view">
- <field name="name">archives.subordinate_customer.search</field>
- <field name="model">archives.subordinate_customer</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
- <field name="coding"/>
- <field name="customer_id"/>
- <field name="bank_id"/>
- <field name="company_id"/>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_subordinate_customer_action_window">
- <field name="name">下级客户</field>
- <field name="res_model">archives.subordinate_customer</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="下级客户" id="archives.menu_subordinate_customer" parent="archives_menu_sale"
- action="archives_subordinate_customer_action_window" sequence="2"/>
- </data>
- </openerp>
|