customer.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <openerp>
  2. <data>
  3. <!-- explicit list view definition -->
  4. <record model="ir.ui.view" id="archives_customer_list">
  5. <field name="name">客户列表</field>
  6. <field name="model">archives.customer</field>
  7. <field name="arch" type="xml">
  8. <tree>
  9. <field name="name"/>
  10. <field name="coding"/>
  11. <field name="company_id"/>
  12. <field name="department_id"/>
  13. <field name="salesmen_id"/>
  14. <field name="price_type_id"/>
  15. <field name="sale_type_id"/>
  16. <field name="store_id"/>
  17. <field name="linkman"/>
  18. <field name="tel"/>
  19. <field name="customer_zone_id"/>
  20. <field name="customer_type_id"/>
  21. <field name="remark"/>
  22. <field name="available"/>
  23. </tree>
  24. </field>
  25. </record>
  26. <record model="ir.ui.view" id="archives_customer_edit">
  27. <field name="name">客户新建</field>
  28. <field name="model">archives.customer</field>
  29. <field name="arch" type="xml">
  30. <form>
  31. <header>
  32. <field name="id" attrs="{'invisible': True}"/>
  33. <field name="available" attrs="{'invisible': True}"/>
  34. <button name="set_available" string="启用" type="object" class="oe_highlight oe_read_only"
  35. attrs="{'invisible': [('available','==',True)]}"/>
  36. <button name="un_set_available" string="停用" type="object" class="oe_highlight oe_read_only"
  37. attrs="{'invisible': [('available','==',False)]}"/>
  38. </header>
  39. <sheet>
  40. <group name="group_top" col='4'>
  41. <field name="name"/>
  42. <field name="coding"/>
  43. </group>
  44. <notebook>
  45. <page string="信息">
  46. <group name='group_second' col="4">
  47. <field name="salesmen_id" options="{'no_open':True,'no_create':True}"/>
  48. <field name="price_type_id" options="{'no_open':True,'no_create':True}"/>
  49. <field name="company_id" options="{'no_open':True,'no_create':True}"/>
  50. <field name="department_id" options="{'no_open':True,'no_create':True}"/>
  51. <field name="sale_type_id" options="{'no_open':True,'no_create':True}"/>
  52. <field name="store_id" options="{'no_open':True,'no_create':True}"/>
  53. <field name="linkman" options="{'no_open':True,'no_create':True}"/>
  54. <field name="tel" options="{'no_open':True,'no_create':True}"/>
  55. <field name="customer_zone_id" options="{'no_open':True,'no_create':True}"/>
  56. <field name="customer_address" options="{'no_open':True,'no_create':True}"/>
  57. <field name="cooperation_date" options="{'no_open':True,'no_create':True}"/>
  58. <field name="remark" options="{'no_open':True,'no_create':True}"/>
  59. </group>
  60. </page>
  61. <page string="分类">
  62. <group col="4">
  63. <field name="customer_type_id" options="{'no_open':True,'no_create':True}"/>
  64. <field name="customer_type1_id" options="{'no_open':True,'no_create':True}"/>
  65. <field name="customer_type2_id" options="{'no_open':True,'no_create':True}"/>
  66. <field name="customer_type3_id" options="{'no_open':True,'no_create':True}"/>
  67. <field name="customer_type4_id" options="{'no_open':True,'no_create':True}"/>
  68. <field name="customer_type5_id" options="{'no_open':True,'no_create':True}"/>
  69. <field name="customer_type6_id" options="{'no_open':True,'no_create':True}"/>
  70. <field name="ABC_id" options="{'no_open':True,'no_create':True}"/>
  71. <field name="channel_id" options="{'no_open':True,'no_create':True}"/>
  72. </group>
  73. </page>
  74. <page string="财务">
  75. <group col="4">
  76. <field name="bank_id" options="{'no_open':True,'no_create':True}"/>
  77. <field name="tax_no"/>
  78. <field name="credit_quota"/>
  79. <field name="outer_coding"/>
  80. <field name="account"/>
  81. <field name="contact_unit_id" options="{'no_open':True,'no_create':True}"/>
  82. </group>
  83. </page>
  84. </notebook>
  85. </sheet>
  86. </form>
  87. </field>
  88. </record>
  89. <record model="ir.ui.view" id="customer_search_view">
  90. <field name="name">archives.customer.search</field>
  91. <field name="model">archives.customer</field>
  92. <field name="arch" type="xml">
  93. <search>
  94. <field name="name" filter_domain="['|', ('spell', 'ilike', self), ('name', 'ilike', self)]"/>
  95. <field name="coding"/>
  96. <field name="company_id"/>
  97. <field name="customer_type_id"/>
  98. <field name="salesmen_id"/>
  99. <field name="price_type_id"/>
  100. <field name="company_id"/>
  101. <field name="department_id"/>
  102. <field name="sale_type_id"/>
  103. <field name="store_id"/>
  104. <field name="linkman"/>
  105. <field name="tel"/>
  106. <field name="customer_zone_id"/>
  107. <field name="customer_address"/>
  108. <field name="cooperation_date"/>
  109. <field name="remark"/>
  110. <field name="customer_type1_id"/>
  111. <field name="customer_type2_id"/>
  112. <field name="customer_type3_id"/>
  113. <field name="customer_type4_id"/>
  114. <field name="customer_type5_id"/>
  115. <field name="customer_type6_id"/>
  116. <field name="tax_no"/>
  117. <field name="credit_quota"/>
  118. <field name="outer_coding"/>
  119. <field name="account"/>
  120. </search>
  121. </field>
  122. </record>
  123. <!-- actions opening views on models -->
  124. <record model="ir.actions.act_window" id="archives_customer_action_window">
  125. <field name="name">客户</field>
  126. <field name="res_model">archives.customer</field>
  127. <field name="view_mode">tree,form</field>
  128. </record>
  129. <!-- actions -->
  130. <menuitem name="客户" id="archives.menu_customer" parent="archives_menu_sale"
  131. action="archives_customer_action_window" sequence="1"/>
  132. </data>
  133. </openerp>