partner_view.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_partner_form_real_estate">
  5. <field name="name">view.partner.form.real.estate</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <field name="title" position="replace" />
  10. <field name="name" position="replace">
  11. <field name="name" colspan="4"/>
  12. </field>
  13. <field name="street" position="before">
  14. <group>
  15. <field name='vat'/>
  16. <field name="name2" />
  17. <field name="vat2"/>
  18. <field name="real_estate_type" />
  19. <field name="ref"/>
  20. <field name="partner_attachments_url" colspan="2" widget="url" />
  21. </group>
  22. </field>
  23. <field name="supplier" position="after">
  24. <field name="active"/>
  25. </field>
  26. <field name="active" position="replace"/>
  27. <field name="lang" position="after">
  28. </field>
  29. <xpath expr="//field[@name='child_ids']/form//field[@name='category_id']" position="before">
  30. <label for="vat"/>
  31. <field name='vat'/>
  32. </xpath>
  33. <xpath expr="//label[@string='Address']" position="replace">
  34. <label for="street" string="Information"/>
  35. </xpath>
  36. </field>
  37. </record>
  38. <!-- <record model="ir.ui.view" id="invisible_partner_view_vat">
  39. <field name="name">invisible.partner.view.vat</field>
  40. <field name="model">res.partner</field>
  41. <field name="inherit_id" ref="base_vat.view_partner_form"/>
  42. <field name="arch" type="xml">
  43. <xpath expr="//label[@for='vat']" position="replace">
  44. </xpath>
  45. <xpath expr="//div[@name='vat_info']" position="replace">
  46. </xpath>
  47. </field>
  48. </record> -->
  49. <record id="view_partner_tree_real_estate1" model="ir.ui.view">
  50. <field name="name">res.partner.tree.real.estate</field>
  51. <field name="model">res.partner</field>
  52. <field name="type">tree</field>
  53. <field eval="8" name="priority"/>
  54. <field name="inherit_id" ref="base.view_partner_tree"/>
  55. <field name="arch" type="xml">
  56. <field name="country_id" position="replace">
  57. <field name="country_id" invisible="True"/>
  58. </field>
  59. <field name="phone" position="after">
  60. <field name="mobile"/>
  61. </field>
  62. </field>
  63. </record>
  64. <record id="view_res_partner_filter_real_estate" model="ir.ui.view">
  65. <field name="name">res.partner.select</field>
  66. <field name="model">res.partner</field>
  67. <field name="priority" eval="5"/>
  68. <field name="type">search</field>
  69. <field name="arch" type="xml">
  70. <search string="Search Partner">
  71. <group col='10' colspan='4'>
  72. <filter string="Customers" name="customer" icon="terp-personal" domain="[('customer','=',1)]" help="Customer Partners"/>
  73. <filter string="Suppliers" name="supplier" icon="terp-personal" domain="[('supplier','=',1)]" help="Supplier Partners"/>
  74. <separator orientation="vertical"/>
  75. <field name="name" select="1"/>
  76. <field name="name2" select="1"/>
  77. <!-- <field name="address" select="1" string="Address"/> -->
  78. <field name="phone" />
  79. <field name="mobile" />
  80. <field name="vat" />
  81. <field name="vat2" string="Second Vat" />
  82. <field name="user_id" select="1">
  83. <filter string="My Partners" icon="terp-personal+" domain="[('user_id','=',uid)]"/>
  84. </field>
  85. </group>
  86. <newline />
  87. <group expand="0" string="Extended Filter...">
  88. <field name="city" select="1"/>
  89. <field name="email" select="1"/>
  90. </group>
  91. <newline />
  92. <group expand="0" string="Group By...">
  93. <filter string="Salesman" icon="terp-personal" domain="[]" context="{'group_by' : 'user_id'}" />
  94. </group>
  95. </search>
  96. </field>
  97. </record>
  98. <menuitem name="Meetings" id="calendar_meeting"
  99. parent="menu_base_real_estate" sequence="3"/>
  100. <menuitem name="Calendar" id="mail_menu_calendar_real_estate" parent="calendar_meeting" sequence="10" action="calendar.action_calendar_event"/>
  101. <menuitem name="Phone calls" id="phone_calls" parent="menu_base_real_estate" sequence="4" />
  102. <menuitem name="Inbound" id="menu_crm_case_phone_inbound_real_estate" parent="phone_calls" action="crm.crm_case_categ_phone_incoming0" />
  103. <menuitem name="Outbound" id="menu_crm_case_phone_outbound_real_estate" parent="phone_calls" action="crm.crm_case_categ_phone_outgoing0"/>
  104. <menuitem name="Companies" id="company_info" parent="menu_base_real_estate" sequence="6" />
  105. <menuitem name="Companies" action="base.action_res_company_form" id="menu_action_res_company_form_real_estate" parent="company_info"/>
  106. <menuitem id="menu_real_estate_partner" name="Owner" parent="menu_base_real_estate" sequence="1"/>
  107. <record id="action_partner_all_form" model="ir.actions.act_window">
  108. <field name="name">All</field>
  109. <field name="type">ir.actions.act_window</field>
  110. <field name="res_model">res.partner</field>
  111. <field name="view_type">form</field>
  112. <field name="domain">[]</field>
  113. <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
  114. <field name="context">{'search_default_customer':1 }</field>
  115. <field name="filter" eval="True"/>
  116. </record>
  117. <menuitem id="menu_real_estate_all" name="All"
  118. parent="menu_real_estate_partner"
  119. action="action_partner_all_form" sequence="5"/>
  120. <record id="action_partner_owner_form" model="ir.actions.act_window">
  121. <field name="name">Owners</field>
  122. <field name="type">ir.actions.act_window</field>
  123. <field name="res_model">res.partner</field>
  124. <field name="view_type">form</field>
  125. <field name="domain">[('real_estate_type','=','owner'),('customer','=',1)]</field>
  126. <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
  127. <field name="filter" eval="True"/>
  128. </record>
  129. <menuitem id="menu_real_estate_owner" name="Owners"
  130. parent="menu_real_estate_partner"
  131. action="action_partner_owner_form" sequence="10"/>
  132. <record id="action_partner_tenant_form" model="ir.actions.act_window">
  133. <field name="name">Tenants</field>
  134. <field name="type">ir.actions.act_window</field>
  135. <field name="res_model">res.partner</field>
  136. <field name="view_type">form</field>
  137. <field name="domain">[('real_estate_type','=','tenant'),('customer','=',1)]</field>
  138. <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
  139. <field name="filter" eval="True"/>
  140. </record>
  141. <menuitem id="menu_real_estate_tenant" name="Tenants"
  142. parent="menu_real_estate_partner"
  143. action="action_partner_tenant_form" sequence="10"/>
  144. <record id="action_partner_buyer_form" model="ir.actions.act_window">
  145. <field name="name">Buyers</field>
  146. <field name="type">ir.actions.act_window</field>
  147. <field name="res_model">res.partner</field>
  148. <field name="view_type">form</field>
  149. <field name="domain">[('real_estate_type','=','buyer'),('customer','=',1)]</field>
  150. <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
  151. <field name="filter" eval="True"/>
  152. </record>
  153. <menuitem id="menu_real_estate_buyer" name="Buyers"
  154. parent="menu_real_estate_partner"
  155. action="action_partner_buyer_form" sequence="10"/>
  156. <record id="action_partner_manage_form" model="ir.actions.act_window">
  157. <field name="name">Manage</field>
  158. <field name="type">ir.actions.act_window</field>
  159. <field name="res_model">res.partner</field>
  160. <field name="view_type">form</field>
  161. <field name="domain">[('real_estate_type','=','manage'),('customer','=',1)]</field>
  162. <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
  163. <field name="filter" eval="True"/>
  164. </record>
  165. <menuitem id="menu_real_estate_manage" name="Manage"
  166. parent="menu_real_estate_partner"
  167. action="action_partner_manage_form" sequence="10"/>
  168. <act_window name="Tops"
  169. domain="[('partner_id', '=', active_id)]"
  170. res_model="real.estate.top"
  171. src_model="res.partner"
  172. id="action_partner_tops"/>
  173. <act_window name="Agreements"
  174. domain="['|',('partner_id', '=', active_id),('owner_id', '=', active_id)]"
  175. res_model="rental.agreement"
  176. src_model="res.partner"
  177. id="action_partner_agreement"/>
  178. </data>
  179. </openerp>