123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_customer_zone_list">
- <field name="name">客户地区列表</field>
- <field name="model">archives.customer_zone</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <field name="coding"/>
- <field name="outer_coding"/>
- <field name="customer_zone1"/>
- <field name="company_id"/>
- <field name="available"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_customer_zone_edit">
- <field name="name">客户地区新建</field>
- <field name="model">archives.customer_zone</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="outer_coding"/>
- <field name="customer_zone1" 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_zone_search_view">
- <field name="name">archives.customer_zone.search</field>
- <field name="model">archives.customer_zone</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
- <field name="coding"/>
- <field name="customer_zone1"/>
- <field name="company_id"/>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_customer_zone_action_window">
- <field name="name">客户地区</field>
- <field name="res_model">archives.customer_zone</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="客户地区" id="archives.menu_customer_zone" parent="archives_menu_sale"
- action="archives_customer_zone_action_window" sequence="3"/>
- </data>
- </openerp>
|