12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_customer_zone2_list">
- <field name="name">客户地区2列表</field>
- <field name="model">archives.customer_zone2</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <field name="coding"/>
- <field name="customer_zone3"/>
- <field name="company_id"/>
- <field name="available"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_customer_zone2_edit">
- <field name="name">客户地区2新建</field>
- <field name="model">archives.customer_zone2</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_zone3" options="{'no_open':True,'no_create':True}"/>
- <field name="company_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="customer_zone2_search_view">
- <field name="name">archives.customer_zone2.search</field>
- <field name="model">archives.customer_zone2</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
- <field name="coding"/>
- <field name="customer_zone3"/>
- <field name="company_id"/>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_customer_zone2_action_window">
- <field name="name">客户地区2</field>
- <field name="res_model">archives.customer_zone2</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="客户地区2" id="archives.menu_customer_zone2" parent="archives_menu_sale"
- action="archives_customer_zone2_action_window" sequence="5"/>
- </data>
- </openerp>
|