123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <openerp>
- <data>
- <!-- explicit list view definition -->
- <record model="ir.ui.view" id="archives_customer_list">
- <field name="name">客户列表</field>
- <field name="model">archives.customer</field>
- <field name="arch" type="xml">
- <tree>
- <field name="name"/>
- <field name="coding"/>
- <field name="company_id"/>
- <field name="department_id"/>
- <field name="salesmen_id"/>
- <field name="price_type_id"/>
- <field name="sale_type_id"/>
- <field name="store_id"/>
- <field name="linkman"/>
- <field name="tel"/>
- <field name="customer_zone_id"/>
- <field name="customer_type_id"/>
- <field name="remark"/>
- <field name="available"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="archives_customer_edit">
- <field name="name">客户新建</field>
- <field name="model">archives.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"/>
- </group>
- <notebook>
- <page string="信息">
- <group name='group_second' col="4">
- <field name="salesmen_id" options="{'no_open':True,'no_create':True}"/>
- <field name="price_type_id" options="{'no_open':True,'no_create':True}"/>
- <field name="company_id" options="{'no_open':True,'no_create':True}"/>
- <field name="department_id" options="{'no_open':True,'no_create':True}"/>
- <field name="sale_type_id" options="{'no_open':True,'no_create':True}"/>
- <field name="store_id" options="{'no_open':True,'no_create':True}"/>
- <field name="linkman" options="{'no_open':True,'no_create':True}"/>
- <field name="tel" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_zone_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_address" options="{'no_open':True,'no_create':True}"/>
- <field name="cooperation_date" options="{'no_open':True,'no_create':True}"/>
- <field name="remark" options="{'no_open':True,'no_create':True}"/>
- </group>
- </page>
- <page string="分类">
- <group col="4">
- <field name="customer_type_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type1_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type2_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type3_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type4_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type5_id" options="{'no_open':True,'no_create':True}"/>
- <field name="customer_type6_id" options="{'no_open':True,'no_create':True}"/>
- <field name="ABC_id" options="{'no_open':True,'no_create':True}"/>
- <field name="channel_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- </page>
- <page string="财务">
- <group col="4">
- <field name="bank_id" options="{'no_open':True,'no_create':True}"/>
- <field name="tax_no"/>
- <field name="credit_quota"/>
- <field name="outer_coding"/>
- <field name="account"/>
- <field name="contact_unit_id" options="{'no_open':True,'no_create':True}"/>
- </group>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="customer_search_view">
- <field name="name">archives.customer.search</field>
- <field name="model">archives.customer</field>
- <field name="arch" type="xml">
- <search>
- <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
- <field name="coding"/>
- <field name="company_id"/>
- <field name="customer_type_id"/>
- <field name="salesmen_id"/>
- <field name="price_type_id"/>
- <field name="company_id"/>
- <field name="department_id"/>
- <field name="sale_type_id"/>
- <field name="store_id"/>
- <field name="linkman"/>
- <field name="tel"/>
- <field name="customer_zone_id"/>
- <field name="customer_address"/>
- <field name="cooperation_date"/>
- <field name="remark"/>
- <field name="customer_type1_id"/>
- <field name="customer_type2_id"/>
- <field name="customer_type3_id"/>
- <field name="customer_type4_id"/>
- <field name="customer_type5_id"/>
- <field name="customer_type6_id"/>
- <field name="tax_no"/>
- <field name="credit_quota"/>
- <field name="outer_coding"/>
- <field name="account"/>
- </search>
- </field>
- </record>
- <!-- actions opening views on models -->
- <record model="ir.actions.act_window" id="archives_customer_action_window">
- <field name="name">客户</field>
- <field name="res_model">archives.customer</field>
- <field name="view_mode">tree,form</field>
- </record>
- <!-- actions -->
- <menuitem name="客户" id="archives.menu_customer" parent="archives_menu_sale"
- action="archives_customer_action_window" sequence="1"/>
- </data>
- </openerp>
|