top_view.xml 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <menuitem icon="terp-partner" id="base.menu_base_partner" name="Sales" sequence="1"
  5. web_icon="data/sales.png"
  6. web_icon_hover="data/sales-hover.png"/>
  7. <menuitem icon="terp-partner" id="menu_base_real_estate" name="Real Estate" sequence="0"/>
  8. <menuitem id="menu_real_estate_top" name="Top" parent="menu_base_real_estate" sequence="2"/>
  9. <menuitem id="menu_real_estate_conf" name="Configuration" parent="menu_base_real_estate" sequence="10"/>
  10. <record model="ir.ui.view" id="real_estate_top_form">
  11. <field name="name">real.estate.top.form</field>
  12. <field name="model">real.estate.top</field>
  13. <field name="type">form</field>
  14. <field name="arch" type="xml">
  15. <sheet>
  16. <form string="Real Estate Top">
  17. <group colspan="4" col="8">
  18. <field name="operation" />
  19. <field name="type" />
  20. <field name="subtype" domain="[('type','=',type)]" />
  21. <group colspan="8" col="2">
  22. <group>
  23. <field name="city_id" />
  24. <field name="address" />
  25. <field name="zone" />
  26. <field name="partner_id"/>
  27. <field name="date" />
  28. <field name="updated_date"/>
  29. <field name="exclusive_date" attrs="{'required': [('exclusive','=',True)]}" />
  30. </group>
  31. <group>
  32. <field name="number" />
  33. <field name="floor" />
  34. <field name="stair" />
  35. <field name="number_keys" />
  36. <field name="available" />
  37. <field name="exclusive" />
  38. <field name="name" />
  39. <field name="user_id"/>
  40. </group>
  41. </group>
  42. </group>
  43. <notebook colspan="8">
  44. <page string="Information">
  45. <group col="6">
  46. <field name="sale_price" attrs="{'invisible': [('operation', 'in', ['rent','rent_sale_option']),]}" />
  47. <field name="rent_price" attrs="{'invisible': [('operation', 'in', ['sale','valuation']),]}" />
  48. <field name="deposit" attrs="{'invisible': [('operation', 'in', ['sale','valuation','transfer']),]}" />
  49. </group>
  50. <group col="6">
  51. <field name="homeowners_expenses" />
  52. <field name="homeowners_expenses_included" />
  53. <field name="retribution" />
  54. </group>
  55. <group colspan="8" attrs="{'invisible': [('type', 'not in', ['flat','chalet','house'])]}">
  56. <group colspan="8" col="6" attrs="{'invisible': [('type', 'not in', ['flat'])]}">
  57. <separator string="Flat Information" colspan="8"/>
  58. <field name="flat_usage_m2" />
  59. <field name="flat_cons_m2" />
  60. <field name="flat_heating" widget="selection" />
  61. <field name="flat_hotwater" widget="selection" />
  62. </group>
  63. <group colspan="8" col="2" attrs="{'invisible': [('type', 'not in', ['chalet','house'])]}">
  64. <separator string="Chalet and House Information" colspan="8"/>
  65. <field name="chalet_usage_m2" />
  66. <field name="chalet_cons_m2" />
  67. <field name="plot_m2" />
  68. <field name="garden_m2" />
  69. <field name="chalet_heating" widget="selection" />
  70. <field name="chalet_hotwater" widget="selection" />
  71. <field name="floor_number" />
  72. <field name="chalet_basement" />
  73. <field name="chalet_ground" />
  74. <field name="first_floor" />
  75. <field name="second_floor" />
  76. </group>
  77. <group colspan="8" col="2">
  78. <group col="2">
  79. <field name="rooms" />
  80. <field name="hall" />
  81. <field name="kitchen" />
  82. <field name="bathroom" />
  83. <field name="toilet" />
  84. <field name="parking" />
  85. <field name="box_room" />
  86. </group>
  87. <group col="2">
  88. <field name="room_description" />
  89. <field name="hall_description"/>
  90. <field name="kitchen_description"/>
  91. <field name="bath_description" />
  92. <field name="toilet_description"/>
  93. <field name="parking_description" />
  94. <field name="box_room_description"/>
  95. </group>
  96. </group>
  97. <group colspan="8">
  98. <separator string="Notes" colspan="8"/>
  99. <field name="note_flat" colspan="8" nolabel="1" />
  100. </group>
  101. <group colspan="8" col="6">
  102. <separator string="Aditional Information" colspan="8"/>
  103. <field name="outside" />
  104. <field name="orientation" />
  105. <field name="elevator" />
  106. <field name="balcony" />
  107. <field name="swimming_pool" attrs="{'invisible': [('type', 'not in', ['chalet','house'])]}" />
  108. </group>
  109. </group>
  110. <group colspan="8" attrs="{'invisible': [('type', 'not in', ['chalet','house','flat'])]}">
  111. <group colspan="8" attrs="{'invisible': [('operation', 'in', ['sale','valuation','transfer']),]}">
  112. <separator string="Rent Information" colspan="8"/>
  113. <group colspan="8" col="4">
  114. <field name="furnished" />
  115. <field name="furnished_description"/>
  116. </group>
  117. <group colspan="8" col="6">
  118. <field name="bedrooms" />
  119. <field name="built_in_closet" />
  120. <field name="students" />
  121. </group>
  122. </group>
  123. </group>
  124. <group colspan="8" col="10" attrs="{'invisible': [('type', 'not in',['industrial_unit','shop','premise','hotel_industry'])]}">
  125. <group colspan="10" col="10" attrs="{'invisible': [('type', 'not in',['industrial_unit'])]}">
  126. <separator string="Industrial Unit information" colspan="10" />
  127. </group>
  128. <group colspan="10" col="10" attrs="{'invisible': [('type', 'not in',['shop'])]}">
  129. <separator string="Shop information" colspan="10" />
  130. </group>
  131. <group colspan="10" col="10" attrs="{'invisible': [('type', 'not in',['premise'])]}">
  132. <separator string="Premise information" colspan="10" />
  133. </group>
  134. <group colspan="10" col="10" attrs="{'invisible': [('type', 'not in',['hotel_industry'])]}">
  135. <separator string="Hotel industry information" colspan="10" />
  136. </group>
  137. <group col="6">
  138. <field name="ground_m2" />
  139. <field name="ground_cons_m2" />
  140. <field name="mezzanine_m2" />
  141. <field name="basement_m2" />
  142. <field name="open_field_m2" attrs="{'invisible': [('type', 'not in',['industrial_unit'])]}" />
  143. <field name="height" attrs="{'invisible': [('type', 'not in',['industrial_unit'])]}" />
  144. </group>
  145. </group>
  146. <group colspan="8" col="6" attrs="{'invisible': [('type', 'not in',['industrial_unit'])]}">
  147. <separator string="Prepared" colspan="8"/>
  148. <field name="industrial_prepared" />
  149. <field name="offices" />
  150. <field name="industrial_toilet" />
  151. <field name="locker_room"/>
  152. <field name="electricity" />
  153. <field name="triphase" />
  154. <field name="fire_fighting"/>
  155. <field name="gantry_crane" />
  156. <field name="shop_window"/>
  157. </group>
  158. <group colspan="4" col="8" attrs="{'invisible': [('type', 'not in',['shop','premise','hotel_industry'])]}">
  159. <separator string="Prepared" colspan="8"/>
  160. <field name="shop_prepared" />
  161. <field name="shop_electricity" />
  162. <field name="shop_toilet" />
  163. <field name="shop_air_conditioning" />
  164. <newline />
  165. <field name="shop_heating" widget="selection" />
  166. <field name="shop_facade" />
  167. <field name="fumes_vent" />
  168. </group>
  169. <group colspan="8" col="6" attrs="{'invisible': [('type', 'not in',['office','premise-office'])]}">
  170. <separator string="Office information" colspan="8"/>
  171. <field name="office_m2" />
  172. <field name="office_cons_m2" />
  173. <separator string="Prepared" colspan="8"/>
  174. <field name="office_electricity" />
  175. <field name="office_toilets" />
  176. <field name="office_toilet_description" />
  177. <field name="office_heating" widget="selection" />
  178. <field name="office_air_conditioning"/>
  179. <field name="structural_barriers" />
  180. <field name="office_outside" />
  181. <field name="office_elevator" />
  182. <field name="office_parking" />
  183. <field name="office_boxroom" />
  184. </group>
  185. <group colspan="4" col="4" attrs="{'invisible': [('type', 'not in',['land'])]}">
  186. <separator string="Land information" colspan="4" />
  187. <field name="land_m2"/>
  188. <field name="land_cons_m2"/>
  189. <field name="land_type" widget="selection" />
  190. <field name="land_state" widget="selection" />
  191. </group>
  192. <group col="4" colspan="4" attrs="{'invisible': [('type', 'in', ['flat','chalet','house'])]}">
  193. <separator string="Notes" colspan="4"/>
  194. <field name="note" colspan="4" nolabel="1"/>
  195. </group>
  196. <group col="4" colspan="4" attrs="{'invisible': [('type', 'in', ['flat','chalet','house','land','box_room','parking'])]}">
  197. <separator string="Subdivisions" colspan="4"/>
  198. <field name="subdivision_ids" colspan="4" nolabel="1">
  199. <form string="Subdivisions">
  200. <field name="m2" />
  201. </form>
  202. <tree string="Subdivisions" editable="bottom">
  203. <field name="m2" />
  204. </tree>
  205. </field>
  206. </group>
  207. </page>
  208. <page string="Supplies">
  209. <group colspan="8" col="2">
  210. <group>
  211. <separator string="Service Contracts Information" colspan="4"/>
  212. <field name="light_ref" />
  213. <field name="gas_ref" />
  214. <field name="aqua_ref" />
  215. <field name="energy_efficiency" attrs="{'invisible': [('type', 'in', ['land'])], 'required': [('type', 'not in', ['industrial_unit','land'])]}" />
  216. <field name="energy_date" />
  217. <field name="energy_emission" />
  218. <field name="energy_number" />
  219. <field name="energy_doc" filename="doc_filename" attrs="{'invisible': [('type', 'in', ['land'])], 'required': [('energy_efficiency','in',['a','b','c','d','e','f','g'])]}" />
  220. </group>
  221. <group>
  222. <separator string="Administrator Information" colspan="4"/>
  223. <field name="administrator" />
  224. <field name="administrator_phone" />
  225. <field name="email" />
  226. <field name="website" />
  227. </group>
  228. </group>
  229. </page>
  230. <page string="Tenants" attrs="{'invisible': [('operation', 'in', ['sale','valuation'])]}">
  231. <field colspan="4" name="agreements" nolabel="1">
  232. <form string="Rental Agreements">
  233. <group>
  234. <field name="name" />
  235. <field name="partner_id" />
  236. <field name="signing_date" />
  237. <field name="start_date" />
  238. <field name="end_date" />
  239. <field name="rent_price" />
  240. <field name="rent_attachments_url" colspan="4" widget="url" />
  241. <field name="notes" colspan="4" />
  242. </group>
  243. </form>
  244. <tree string="Rental Agreements">
  245. <field name="name" />
  246. <field name="partner_id" />
  247. <field name="start_date" />
  248. <field name="end_date" />
  249. <field name="rent_price" />
  250. </tree>
  251. </field>
  252. </page>
  253. <page string="Buyer" attrs="{'invisible': [('operation', 'not in', ['sale','sale_rent']),]}">
  254. <group>
  255. <field name="buyer_id" />
  256. </group>
  257. </page>
  258. <page string="Images and documents">
  259. <group>
  260. <field name="attachments_url" colspan="4" widget="url" />
  261. </group>
  262. </page>
  263. </notebook>
  264. </form>
  265. </sheet>
  266. </field>
  267. </record>
  268. <record model="ir.ui.view" id="real_estate_top_tree">
  269. <field name="name">real.estate.top.tree</field>
  270. <field name="model">real.estate.top</field>
  271. <field name="type">tree</field>
  272. <field name="arch" type="xml">
  273. <tree string="Real Estate Top">
  274. <field name="name" />
  275. <field name="operation" />
  276. <field name="type" />
  277. <field name="subtype" widget="selection" />
  278. <field name="zone"/>
  279. <field name="city_id" />
  280. <field name="address"/>
  281. <field name="number"/>
  282. <field name="floor"/>
  283. <field name="stair"/>
  284. <field name="m2"/>
  285. <field name="rent_price"/>
  286. <field name="sale_price"/>
  287. <field name="partner_id"/>
  288. </tree>
  289. </field>
  290. </record>
  291. <record model="ir.ui.view" id="real_estate_top_filter">
  292. <field name="name">real.estate.top.filter</field>
  293. <field name="model">real.estate.top</field>
  294. <field name="type">search</field>
  295. <field name="priority" eval="5"/>
  296. <field name="arch" type="xml">
  297. <search string="Real Estate Top">
  298. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  299. <filter string="Available" domain="[('available','=',1)]"/>
  300. <filter string="Not Available" domain="[('available','=',0)]"/>
  301. <separator orientation="vertical"/>
  302. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  303. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  304. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  305. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  306. <separator orientation="vertical"/>
  307. <field name="name" />
  308. <field name="type" />
  309. <field name="subtype" widget="selection" />
  310. <field name="zone"/>
  311. <field name="city_id" />
  312. </group>
  313. <group col="10" colspan="4" string="Prices and area" name="price-area">
  314. <field name="sale_price" string="Sale price from"
  315. filter_domain="[('sale_price','&gt;=',self)]" />
  316. <field name="sale_price" string="Sale Price to"
  317. filter_domain="[('sale_price','&lt;=',self)]"/>
  318. <field name="rent_price" string="Rent price from"
  319. filter_domain="[('rent_price','&gt;=',self)]" />
  320. <field name="rent_price" string="Rent price to"
  321. filter_domain="[('rent_price','&lt;=',self)]" />
  322. <field name="m2" string="m2 from"
  323. filter_domain="[('m2','&gt;=',self)]" />
  324. <field name="m2" string="m2 to"
  325. filter_domain="[('m2','&lt;=',self)]" />
  326. </group>
  327. <group expand="0" string="Advanced search..." name="advanced-search">
  328. <field name="address" />
  329. <field name="partner_id" />
  330. </group>
  331. </search>
  332. </field>
  333. </record>
  334. <record model="ir.actions.act_window" id="real_estate_top_act">
  335. <field name="name">Top</field>
  336. <field name="res_model">real.estate.top</field>
  337. <field name="type">ir.actions.act_window</field>
  338. <field name="view_type">form</field>
  339. <field name="context">{"search_default_available":1}</field>
  340. <field name="search_view_id" ref="real_estate_top_filter"/>
  341. </record>
  342. <menuitem
  343. action="real_estate_top_act"
  344. id="menu_real_estate_top_list"
  345. parent="menu_real_estate_top"
  346. sequence="10"/>
  347. <record model="ir.ui.view" id="real_estate_top_filter_flat">
  348. <field name="name">real.estate.top.filter.flat</field>
  349. <field name="model">real.estate.top</field>
  350. <field name="type">search</field>
  351. <field name="arch" type="xml">
  352. <search string="Real Estate Top">
  353. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  354. <filter string="Available" domain="[('available','=',1)]"/>
  355. <filter string="Not Available" domain="[('available','=',0)]"/>
  356. <separator orientation="vertical"/>
  357. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  358. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  359. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  360. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  361. <separator orientation="vertical"/>
  362. <field name="name" />
  363. <field name="type" />
  364. <field name="subtype" widget="selection" />
  365. <field name="zone"/>
  366. <field name="city_id" />
  367. </group>
  368. <group col="10" colspan="4" string="Prices and area" name="price-area">
  369. <field name="sale_price" string="Sale price from"
  370. filter_domain="[('sale_price','&gt;=',self)]" />
  371. <field name="sale_price" string="Sale Price to"
  372. filter_domain="[('sale_price','&lt;=',self)]"/>
  373. <field name="rent_price" string="Rent price from"
  374. filter_domain="[('rent_price','&gt;=',self)]" />
  375. <field name="rent_price" string="Rent price to"
  376. filter_domain="[('rent_price','&lt;=',self)]" />
  377. <field name="m2" string="m2 from"
  378. filter_domain="[('m2','&gt;=',self)]" />
  379. <field name="m2" string="m2 to"
  380. filter_domain="[('m2','&lt;=',self)]" />
  381. </group>
  382. <group col="10" colspan="4" string="Flat" name="flat">
  383. <field name="rooms" />
  384. <field name="bathroom" />
  385. <field name="parking" />
  386. <filter string="Full Furnished" domain="[('furnished','=','yes')]"/>
  387. <filter string="Half Furnished" domain="[('furnished','=','half')]"/>
  388. <filter string="No Furnished" domain="[('furnished','=','no')]"/>
  389. <separator orientation="vertical"/>
  390. <filter string="Students" domain="[('students','=',True)]"/>
  391. </group>
  392. <group expand="0" string="Advanced search..." name="advanced-search">
  393. <field name="address" />
  394. <field name="partner_id" />
  395. </group>
  396. </search>
  397. </field>
  398. </record>
  399. <record model="ir.ui.view" id="real_estate_top_filter_industrial">
  400. <field name="name">real.estate.top.filter.industrial</field>
  401. <field name="model">real.estate.top</field>
  402. <field name="type">search</field>
  403. <field name="arch" type="xml">
  404. <search string="Real Estate Top">
  405. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  406. <filter string="Available" domain="[('available','=',1)]"/>
  407. <filter string="Not Available" domain="[('available','=',0)]"/>
  408. <separator orientation="vertical"/>
  409. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  410. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  411. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  412. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  413. <separator orientation="vertical"/>
  414. <field name="name" />
  415. <field name="type" />
  416. <field name="subtype" widget="selection" />
  417. <field name="zone"/>
  418. <field name="city_id" />
  419. </group>
  420. <group col="10" colspan="4" string="Prices and area" name="price-area">
  421. <field name="sale_price" string="Sale price from"
  422. filter_domain="[('sale_price','&gt;=',self)]" />
  423. <field name="sale_price" string="Sale Price to"
  424. filter_domain="[('sale_price','&lt;=',self)]"/>
  425. <field name="rent_price" string="Rent price from"
  426. filter_domain="[('rent_price','&gt;=',self)]" />
  427. <field name="rent_price" string="Rent price to"
  428. filter_domain="[('rent_price','&lt;=',self)]" />
  429. <field name="m2" string="m2 from"
  430. filter_domain="[('m2','&gt;=',self)]" />
  431. <field name="m2" string="m2 to"
  432. filter_domain="[('m2','&lt;=',self)]" />
  433. </group>
  434. <group col="10" colspan="4" string="Industrial" name="industrial">
  435. <filter string="Industrial Prepared" domain="[('industrial_prepared','=',True)]"/>
  436. </group>
  437. <group expand="0" string="Advanced search..." name="advanced-search">
  438. <field name="address" />
  439. <field name="partner_id" />
  440. </group>
  441. </search>
  442. </field>
  443. </record>
  444. <record model="ir.ui.view" id="real_estate_top_filter_shop">
  445. <field name="name">real.estate.top.filter.shop</field>
  446. <field name="model">real.estate.top</field>
  447. <field name="type">search</field>
  448. <field name="arch" type="xml">
  449. <search string="Real Estate Top">
  450. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  451. <filter string="Available" domain="[('available','=',1)]"/>
  452. <filter string="Not Available" domain="[('available','=',0)]"/>
  453. <separator orientation="vertical"/>
  454. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  455. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  456. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  457. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  458. <separator orientation="vertical"/>
  459. <field name="name" />
  460. <field name="type" />
  461. <field name="subtype" widget="selection" />
  462. <field name="zone"/>
  463. <field name="city_id" />
  464. </group>
  465. <group col="10" colspan="4" string="Prices and area" name="price-area">
  466. <field name="sale_price" string="Sale price from"
  467. filter_domain="[('sale_price','&gt;=',self)]" />
  468. <field name="sale_price" string="Sale Price to"
  469. filter_domain="[('sale_price','&lt;=',self)]"/>
  470. <field name="rent_price" string="Rent price from"
  471. filter_domain="[('rent_price','&gt;=',self)]" />
  472. <field name="rent_price" string="Rent price to"
  473. filter_domain="[('rent_price','&lt;=',self)]" />
  474. <field name="m2" string="m2 from"
  475. filter_domain="[('m2','&gt;=',self)]" />
  476. <field name="m2" string="m2 to"
  477. filter_domain="[('m2','&lt;=',self)]" />
  478. </group>
  479. <group col="10" colspan="4" string="Shop" name="shop">
  480. <filter string="Shop Prepared" domain="[('shop_prepared','=',True)]"/>
  481. </group>
  482. <group expand="0" string="Advanced search..." name="advanced-search">
  483. <field name="address" />
  484. <field name="partner_id" />
  485. </group>
  486. </search>
  487. </field>
  488. </record>
  489. <record model="ir.ui.view" id="real_estate_top_filter_office">
  490. <field name="name">real.estate.top.filter.office</field>
  491. <field name="model">real.estate.top</field>
  492. <field name="type">search</field>
  493. <field name="arch" type="xml">
  494. <search string="Real Estate Top">
  495. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  496. <filter string="Available" domain="[('available','=',1)]"/>
  497. <filter string="Not Available" domain="[('available','=',0)]"/>
  498. <separator orientation="vertical"/>
  499. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  500. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  501. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  502. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  503. <separator orientation="vertical"/>
  504. <field name="name" />
  505. <field name="type" />
  506. <field name="subtype" widget="selection" />
  507. <field name="zone"/>
  508. <field name="city_id" />
  509. </group>
  510. <group col="10" colspan="4" string="Prices and area" name="price-area">
  511. <field name="sale_price" string="Sale price from"
  512. filter_domain="[('sale_price','&gt;=',self)]" />
  513. <field name="sale_price" string="Sale Price to"
  514. filter_domain="[('sale_price','&lt;=',self)]"/>
  515. <field name="rent_price" string="Rent price from"
  516. filter_domain="[('rent_price','&gt;=',self)]" />
  517. <field name="rent_price" string="Rent price to"
  518. filter_domain="[('rent_price','&lt;=',self)]" />
  519. <field name="m2" string="m2 from"
  520. filter_domain="[('m2','&gt;=',self)]" />
  521. <field name="m2" string="m2 to"
  522. filter_domain="[('m2','&lt;=',self)]" />
  523. </group>
  524. <group col="10" colspan="4" string="Office" name="office">
  525. <field name="office_cons_m2" />
  526. <field name="office_cons_m2" string="m2 from"
  527. filter_domain="[('office_cons_m2','&gt;=',self)]" />
  528. <field name="office_cons_m2" string="m2 to"
  529. filter_domain="[('office_cons_m2','&lt;=',self)]" />
  530. </group>
  531. <group expand="0" string="Advanced search..." name="advanced-search">
  532. <field name="address" />
  533. <field name="partner_id" />
  534. </group>
  535. </search>
  536. </field>
  537. </record>
  538. <record model="ir.ui.view" id="real_estate_top_filter_hotel_industry">
  539. <field name="name">real.estate.top.filter.hotel_industry</field>
  540. <field name="model">real.estate.top</field>
  541. <field name="type">search</field>
  542. <field name="priority" eval="5"/>
  543. <field name="arch" type="xml">
  544. <search string="Real Estate Top">
  545. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  546. <filter string="Available" domain="[('available','=',1)]"/>
  547. <filter string="Not Available" domain="[('available','=',0)]"/>
  548. <separator orientation="vertical"/>
  549. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  550. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  551. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  552. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  553. <separator orientation="vertical"/>
  554. <field name="name" />
  555. <field name="type" />
  556. <field name="subtype" widget="selection" />
  557. <field name="zone"/>
  558. <field name="city_id" />
  559. </group>
  560. <group col="10" colspan="4" string="Prices and area" name="price-area">
  561. <field name="sale_price" string="Sale price from"
  562. filter_domain="[('sale_price','&gt;=',self)]" />
  563. <field name="sale_price" string="Sale Price to"
  564. filter_domain="[('sale_price','&lt;=',self)]"/>
  565. <field name="rent_price" string="Rent price from"
  566. filter_domain="[('rent_price','&gt;=',self)]" />
  567. <field name="rent_price" string="Rent price to"
  568. filter_domain="[('rent_price','&lt;=',self)]" />
  569. <field name="m2" string="m2 from"
  570. filter_domain="[('m2','&gt;=',self)]" />
  571. <field name="m2" string="m2 to"
  572. filter_domain="[('m2','&lt;=',self)]" />
  573. </group>
  574. <group expand="0" string="Advanced search..." name="advanced-search">
  575. <field name="address" />
  576. <field name="partner_id" />
  577. </group>
  578. </search>
  579. </field>
  580. </record>
  581. <record model="ir.ui.view" id="real_estate_top_filter_land">
  582. <field name="name">real.estate.top.filter.land</field>
  583. <field name="model">real.estate.top</field>
  584. <field name="type">search</field>
  585. <field name="arch" type="xml">
  586. <search string="Real Estate Top">
  587. <group col="10" colspan="4" string="Real Estate" name="real-estate">
  588. <filter string="Available" domain="[('available','=',1)]"/>
  589. <filter string="Not Available" domain="[('available','=',0)]"/>
  590. <separator orientation="vertical"/>
  591. <filter string="Sale" domain="[('operation','in',('sale','sale_rent','rent_sale_option'))]"/>
  592. <filter string="Rent" domain="[('operation','in',('rent','sale_rent','rent_sale_option'))]"/>
  593. <filter string="Transfer" domain="[('operation','=','transfer')]"/>
  594. <filter string="Valuation" domain="[('operation','=','valuation')]"/>
  595. <separator orientation="vertical"/>
  596. <field name="name" />
  597. <field name="type" />
  598. <field name="subtype" widget="selection" />
  599. <field name="zone"/>
  600. <field name="city_id" />
  601. </group>
  602. <group col="10" colspan="4" string="Prices and area" name="price-area">
  603. <field name="sale_price" string="Sale price from"
  604. filter_domain="[('sale_price','&gt;=',self)]" />
  605. <field name="sale_price" string="Sale Price to"
  606. filter_domain="[('sale_price','&lt;=',self)]"/>
  607. <field name="rent_price" string="Rent price from"
  608. filter_domain="[('rent_price','&gt;=',self)]" />
  609. <field name="rent_price" string="Rent price to"
  610. filter_domain="[('rent_price','&lt;=',self)]" />
  611. <field name="m2" string="m2 from"
  612. filter_domain="[('m2','&gt;=',self)]" />
  613. <field name="m2" string="m2 to"
  614. filter_domain="[('m2','&lt;=',self)]" />
  615. </group>
  616. <group col="10" colspan="4" string="Land" name="land">
  617. <field name="land_type" />
  618. <field name="land_state" />
  619. </group>
  620. <group expand="0" string="Advanced search..." name="advanced-search">
  621. <field name="address" />
  622. <field name="partner_id" />
  623. </group>
  624. </search>
  625. </field>
  626. </record>
  627. <record model="ir.actions.act_window" id="real_estate_top_flat_act">
  628. <field name="name">Flat</field>
  629. <field name="res_model">real.estate.top</field>
  630. <field name="type">ir.actions.act_window</field>
  631. <field name="view_type">form</field>
  632. <field name="domain">[('type','=','flat')]</field>
  633. <field name="context">{"search_default_available":1, "default_type": 'flat'}</field>
  634. <field name="search_view_id" ref="real_estate_top_filter_flat"/>
  635. </record>
  636. <menuitem
  637. action="real_estate_top_flat_act"
  638. id="menu_real_estate_top_flat_list"
  639. parent="menu_real_estate_top_list"
  640. sequence="10"/>
  641. <record model="ir.actions.act_window" id="real_estate_top_shop_act">
  642. <field name="name">Shop</field>
  643. <field name="view_id" ref="real_estate_top_tree"/>
  644. <field name="res_model">real.estate.top</field>
  645. <field name="type">ir.actions.act_window</field>
  646. <field name="view_type">form</field>
  647. <field name="domain">[('type','=','shop')]</field>
  648. <field name="context">{"search_default_available":1, "default_type": 'shop'}</field>
  649. <field name="search_view_id" ref="real_estate_top_filter_shop"/>
  650. </record>
  651. <menuitem
  652. action="real_estate_top_shop_act"
  653. id="menu_real_estate_top_shop_list"
  654. parent="menu_real_estate_top_list"
  655. sequence="15"/>
  656. <record model="ir.actions.act_window" id="real_estate_top_premise_act">
  657. <field name="name">Premise</field>
  658. <field name="view_id" ref="real_estate_top_tree"/>
  659. <field name="res_model">real.estate.top</field>
  660. <field name="type">ir.actions.act_window</field>
  661. <field name="view_type">form</field>
  662. <field name="domain">[('type','in',['premise','premise-office'])]</field>
  663. <field name="context">{"search_default_available":1, "default_type": 'premise'}</field>
  664. <field name="search_view_id" ref="real_estate_top_filter_shop"/>
  665. </record>
  666. <menuitem
  667. action="real_estate_top_premise_act"
  668. id="menu_real_estate_top_premise_list"
  669. parent="menu_real_estate_top_list"
  670. sequence="20"/>
  671. <record model="ir.actions.act_window" id="real_estate_top_chalet_act">
  672. <field name="name">Chalet</field>
  673. <field name="res_model">real.estate.top</field>
  674. <field name="type">ir.actions.act_window</field>
  675. <field name="view_type">form</field>
  676. <field name="domain">[('type','=','chalet')]</field>
  677. <field name="context">{"search_default_available":1, "default_type": 'chalet'}</field>
  678. <field name="search_view_id" ref="real_estate_top_filter_flat"/>
  679. </record>
  680. <menuitem
  681. action="real_estate_top_chalet_act"
  682. id="menu_real_estate_top_chalet_list"
  683. parent="menu_real_estate_top_list"
  684. sequence="25"/>
  685. <record model="ir.actions.act_window" id="real_estate_top_house_act">
  686. <field name="name">House</field>
  687. <field name="res_model">real.estate.top</field>
  688. <field name="type">ir.actions.act_window</field>
  689. <field name="view_type">form</field>
  690. <field name="domain">[('type','=','house')]</field>
  691. <field name="context">{"search_default_available":1, "default_type": 'house'}</field>
  692. <field name="search_view_id" ref="real_estate_top_filter_flat"/>
  693. </record>
  694. <menuitem
  695. action="real_estate_top_house_act"
  696. id="menu_real_estate_top_house_list"
  697. parent="menu_real_estate_top_list"
  698. sequence="30"/>
  699. <record model="ir.actions.act_window" id="real_estate_top_office_act">
  700. <field name="name">Office</field>
  701. <field name="view_id" ref="real_estate_top_tree"/>
  702. <field name="res_model">real.estate.top</field>
  703. <field name="type">ir.actions.act_window</field>
  704. <field name="view_type">form</field>
  705. <field name="domain">[('type','in',['office','premise-office'])]</field>
  706. <field name="context">{"search_default_available":1, "default_type": 'office'}</field>
  707. <field name="search_view_id" ref="real_estate_top_filter_office"/>
  708. </record>
  709. <menuitem
  710. action="real_estate_top_office_act"
  711. id="menu_real_estate_top_office_list"
  712. parent="menu_real_estate_top_list"
  713. sequence="35"/>
  714. <record model="ir.actions.act_window" id="real_estate_top_premise_office_act">
  715. <field name="name">Premise-Office</field>
  716. <field name="view_id" ref="real_estate_top_tree"/>
  717. <field name="res_model">real.estate.top</field>
  718. <field name="type">ir.actions.act_window</field>
  719. <field name="view_type">form</field>
  720. <field name="domain">[('type','=','premise-office')]</field>
  721. <field name="context">{"search_default_available":1, "default_type": 'premise-office'}</field>
  722. <field name="search_view_id" ref="real_estate_top_filter_office"/>
  723. </record>
  724. <menuitem
  725. action="real_estate_top_premise_office_act"
  726. id="menu_real_estate_top_premise_office_list"
  727. parent="menu_real_estate_top_list"
  728. sequence="37"/>
  729. <record model="ir.actions.act_window" id="real_estate_top_industrial_unit_act">
  730. <field name="name">Industrial Unit</field>
  731. <field name="view_id" ref="real_estate_top_tree"/>
  732. <field name="res_model">real.estate.top</field>
  733. <field name="type">ir.actions.act_window</field>
  734. <field name="view_type">form</field>
  735. <field name="domain">[('type','=','industrial_unit')]</field>
  736. <field name="context">{"search_default_available":1, "default_type": 'industrial_unit'}</field>
  737. <field name="search_view_id" ref="real_estate_top_filter_industrial"/>
  738. </record>
  739. <menuitem
  740. action="real_estate_top_industrial_unit_act"
  741. id="menu_real_estate_top_industrial_unit_list"
  742. parent="menu_real_estate_top_list"
  743. sequence="40"/>
  744. <record model="ir.actions.act_window" id="real_estate_top_hotel_industry_act">
  745. <field name="name">Hotel Industry</field>
  746. <field name="view_id" ref="real_estate_top_tree"/>
  747. <field name="res_model">real.estate.top</field>
  748. <field name="type">ir.actions.act_window</field>
  749. <field name="view_type">form</field>
  750. <field name="domain">[('type','=','hotel_industry')]</field>
  751. <field name="context">{"search_default_available":1, "default_type": 'hotel_industry'}</field>
  752. <field name="search_view_id" ref="real_estate_top_filter_hotel_industry"/>
  753. </record>
  754. <menuitem
  755. action="real_estate_top_hotel_industry_act"
  756. id="menu_real_estate_top_hotel_industry_list"
  757. parent="menu_real_estate_top_list"
  758. sequence="45"/>
  759. <record model="ir.actions.act_window" id="real_estate_top_parking_act">
  760. <field name="name">Parking</field>
  761. <field name="res_model">real.estate.top</field>
  762. <field name="type">ir.actions.act_window</field>
  763. <field name="view_type">form</field>
  764. <field name="domain">[('type','=','parking')]</field>
  765. <field name="context">{"search_default_available":1, "default_type": 'parking'}</field>
  766. </record>
  767. <menuitem
  768. action="real_estate_top_parking_act"
  769. id="menu_real_estate_top_parking_list"
  770. parent="menu_real_estate_top_list"
  771. sequence="50"/>
  772. <record model="ir.actions.act_window" id="real_estate_top_box_room_act">
  773. <field name="name">Box Room</field>
  774. <field name="res_model">real.estate.top</field>
  775. <field name="type">ir.actions.act_window</field>
  776. <field name="view_type">form</field>
  777. <field name="domain">[('type','=','box_room')]</field>
  778. <field name="context">{"search_default_available":1, "default_type": 'box_room'}</field>
  779. </record>
  780. <menuitem
  781. action="real_estate_top_box_room_act"
  782. id="menu_real_estate_top_box_room_list"
  783. parent="menu_real_estate_top_list"
  784. sequence="55"/>
  785. <record model="ir.actions.act_window" id="real_estate_top_land_act">
  786. <field name="name">Land</field>
  787. <field name="res_model">real.estate.top</field>
  788. <field name="type">ir.actions.act_window</field>
  789. <field name="view_type">form</field>
  790. <field name="domain">[('type','=','land')]</field>
  791. <field name="context">{"search_default_available":1, "default_type": 'land'}</field>
  792. <field name="search_view_id" ref="real_estate_top_filter_land"/>
  793. </record>
  794. <menuitem
  795. action="real_estate_top_land_act"
  796. id="menu_real_estate_top_land_list"
  797. parent="menu_real_estate_top_list"
  798. sequence="60"/>
  799. <record model="ir.actions.act_window" id="real_estate_zone_act">
  800. <field name="name">Zones</field>
  801. <field name="res_model">real.estate.zone</field>
  802. <field name="type">ir.actions.act_window</field>
  803. <field name="view_type">form</field>
  804. </record>
  805. <menuitem
  806. action="real_estate_zone_act"
  807. id="menu_real_estate_zone_list"
  808. parent="menu_real_estate_conf"
  809. sequence="10"/>
  810. <record model="ir.actions.act_window" id="real_estate_heating_act">
  811. <field name="name">Heating</field>
  812. <field name="res_model">real.estate.heating</field>
  813. <field name="type">ir.actions.act_window</field>
  814. <field name="view_type">form</field>
  815. </record>
  816. <menuitem
  817. action="real_estate_heating_act"
  818. id="menu_real_estate_heating_list"
  819. parent="menu_real_estate_conf"
  820. sequence="10"/>
  821. <record model="ir.actions.act_window" id="real_estate_hotwater_act">
  822. <field name="name">Hot Water</field>
  823. <field name="res_model">real.estate.hotwater</field>
  824. <field name="type">ir.actions.act_window</field>
  825. <field name="view_type">form</field>
  826. </record>
  827. <menuitem
  828. action="real_estate_hotwater_act"
  829. id="menu_real_estate_hotwater_list"
  830. parent="menu_real_estate_conf"
  831. sequence="10"/>
  832. <record model="ir.actions.act_window" id="real_estate_land_type_act">
  833. <field name="name">Land Type</field>
  834. <field name="res_model">real.estate.land.type</field>
  835. <field name="type">ir.actions.act_window</field>
  836. <field name="view_type">form</field>
  837. </record>
  838. <menuitem
  839. action="real_estate_land_type_act"
  840. id="menu_real_estate_land_type_list"
  841. parent="menu_real_estate_conf"
  842. sequence="10"/>
  843. <record model="ir.actions.act_window" id="real_estate_land_state_act">
  844. <field name="name">Land State</field>
  845. <field name="res_model">real.estate.land.state</field>
  846. <field name="type">ir.actions.act_window</field>
  847. <field name="view_type">form</field>
  848. </record>
  849. <menuitem
  850. action="real_estate_land_state_act"
  851. id="menu_real_estate_land_estate_list"
  852. parent="menu_real_estate_conf"
  853. sequence="10"/>
  854. <record model="ir.actions.act_window" id="real_estate_subtype_act">
  855. <field name="name">Subtypes</field>
  856. <field name="res_model">real.estate.subtype</field>
  857. <field name="type">ir.actions.act_window</field>
  858. <field name="view_type">form</field>
  859. </record>
  860. <menuitem
  861. action="real_estate_subtype_act"
  862. id="menu_real_estate_subtype_list"
  863. parent="menu_real_estate_conf"
  864. sequence="10"/>
  865. <record model="ir.ui.view" id="real_estate_subtype_tree">
  866. <field name="name">real.estate.subtype.tree</field>
  867. <field name="model">real.estate.subtype</field>
  868. <field name="type">tree</field>
  869. <field name="arch" type="xml">
  870. <tree string="Real Estate Subtype">
  871. <field name="name" />
  872. <field name="type" />
  873. </tree>
  874. </field>
  875. </record>
  876. <record model="ir.ui.view" id="real_estate_top_subdivision_tree">
  877. <field name="name">real.estate.top.subdivision.tree</field>
  878. <field name="model">real.estate.top.subsivision</field>
  879. <field name="type">tree</field>
  880. <field name="arch" type="xml">
  881. <tree string="Real Estate Subdivisions">
  882. <field name="m2" />
  883. <field name="top_id" />
  884. </tree>
  885. </field>
  886. </record>
  887. </data>
  888. </openerp>