123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_partner_form_real_estate">
- <field name="name">view.partner.form.real.estate</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base.view_partner_form"/>
- <field name="arch" type="xml">
- <field name="title" position="replace" />
- <field name="name" position="replace">
- <field name="name" colspan="4"/>
- </field>
- <field name="street" position="before">
- <group>
- <field name='vat'/>
- <field name="name2" />
- <field name="vat2"/>
- <field name="real_estate_type" />
- <field name="ref"/>
- <field name="partner_attachments_url" colspan="2" widget="url" />
- </group>
- </field>
- <field name="supplier" position="after">
- <field name="active"/>
- </field>
- <field name="active" position="replace"/>
- <field name="lang" position="after">
- </field>
- <xpath expr="//field[@name='child_ids']/form//field[@name='category_id']" position="before">
- <label for="vat"/>
- <field name='vat'/>
- </xpath>
- <xpath expr="//label[@string='Address']" position="replace">
- <label for="street" string="Information"/>
- </xpath>
- </field>
- </record>
- <!-- <record model="ir.ui.view" id="invisible_partner_view_vat">
- <field name="name">invisible.partner.view.vat</field>
- <field name="model">res.partner</field>
- <field name="inherit_id" ref="base_vat.view_partner_form"/>
- <field name="arch" type="xml">
- <xpath expr="//label[@for='vat']" position="replace">
- </xpath>
- <xpath expr="//div[@name='vat_info']" position="replace">
- </xpath>
- </field>
- </record> -->
- <record id="view_partner_tree_real_estate1" model="ir.ui.view">
- <field name="name">res.partner.tree.real.estate</field>
- <field name="model">res.partner</field>
- <field name="type">tree</field>
- <field eval="8" name="priority"/>
- <field name="inherit_id" ref="base.view_partner_tree"/>
- <field name="arch" type="xml">
- <field name="country_id" position="replace">
- <field name="country_id" invisible="True"/>
- </field>
- <field name="phone" position="after">
- <field name="mobile"/>
- </field>
- </field>
- </record>
- <record id="view_res_partner_filter_real_estate" model="ir.ui.view">
- <field name="name">res.partner.select</field>
- <field name="model">res.partner</field>
- <field name="priority" eval="5"/>
- <field name="type">search</field>
- <field name="arch" type="xml">
- <search string="Search Partner">
- <group col='10' colspan='4'>
- <filter string="Customers" name="customer" icon="terp-personal" domain="[('customer','=',1)]" help="Customer Partners"/>
- <filter string="Suppliers" name="supplier" icon="terp-personal" domain="[('supplier','=',1)]" help="Supplier Partners"/>
- <separator orientation="vertical"/>
- <field name="name" select="1"/>
- <field name="name2" select="1"/>
- <!-- <field name="address" select="1" string="Address"/> -->
- <field name="phone" />
- <field name="mobile" />
- <field name="vat" />
- <field name="vat2" string="Second Vat" />
- <field name="user_id" select="1">
- <filter string="My Partners" icon="terp-personal+" domain="[('user_id','=',uid)]"/>
- </field>
- </group>
- <newline />
- <group expand="0" string="Extended Filter...">
- <field name="city" select="1"/>
- <field name="email" select="1"/>
- </group>
- <newline />
- <group expand="0" string="Group By...">
- <filter string="Salesman" icon="terp-personal" domain="[]" context="{'group_by' : 'user_id'}" />
- </group>
- </search>
- </field>
- </record>
- <menuitem name="Meetings" id="calendar_meeting"
- parent="menu_base_real_estate" sequence="3"/>
- <menuitem name="Calendar" id="mail_menu_calendar_real_estate" parent="calendar_meeting" sequence="10" action="calendar.action_calendar_event"/>
- <menuitem name="Phone calls" id="phone_calls" parent="menu_base_real_estate" sequence="4" />
- <menuitem name="Inbound" id="menu_crm_case_phone_inbound_real_estate" parent="phone_calls" action="crm.crm_case_categ_phone_incoming0" />
- <menuitem name="Outbound" id="menu_crm_case_phone_outbound_real_estate" parent="phone_calls" action="crm.crm_case_categ_phone_outgoing0"/>
- <menuitem name="Companies" id="company_info" parent="menu_base_real_estate" sequence="6" />
- <menuitem name="Companies" action="base.action_res_company_form" id="menu_action_res_company_form_real_estate" parent="company_info"/>
- <menuitem id="menu_real_estate_partner" name="Owner" parent="menu_base_real_estate" sequence="1"/>
- <record id="action_partner_all_form" model="ir.actions.act_window">
- <field name="name">All</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">res.partner</field>
- <field name="view_type">form</field>
- <field name="domain">[]</field>
- <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
- <field name="context">{'search_default_customer':1 }</field>
- <field name="filter" eval="True"/>
- </record>
- <menuitem id="menu_real_estate_all" name="All"
- parent="menu_real_estate_partner"
- action="action_partner_all_form" sequence="5"/>
- <record id="action_partner_owner_form" model="ir.actions.act_window">
- <field name="name">Owners</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">res.partner</field>
- <field name="view_type">form</field>
- <field name="domain">[('real_estate_type','=','owner'),('customer','=',1)]</field>
- <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
- <field name="filter" eval="True"/>
- </record>
- <menuitem id="menu_real_estate_owner" name="Owners"
- parent="menu_real_estate_partner"
- action="action_partner_owner_form" sequence="10"/>
- <record id="action_partner_tenant_form" model="ir.actions.act_window">
- <field name="name">Tenants</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">res.partner</field>
- <field name="view_type">form</field>
- <field name="domain">[('real_estate_type','=','tenant'),('customer','=',1)]</field>
- <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
- <field name="filter" eval="True"/>
- </record>
- <menuitem id="menu_real_estate_tenant" name="Tenants"
- parent="menu_real_estate_partner"
- action="action_partner_tenant_form" sequence="10"/>
- <record id="action_partner_buyer_form" model="ir.actions.act_window">
- <field name="name">Buyers</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">res.partner</field>
- <field name="view_type">form</field>
- <field name="domain">[('real_estate_type','=','buyer'),('customer','=',1)]</field>
- <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
- <field name="filter" eval="True"/>
- </record>
- <menuitem id="menu_real_estate_buyer" name="Buyers"
- parent="menu_real_estate_partner"
- action="action_partner_buyer_form" sequence="10"/>
- <record id="action_partner_manage_form" model="ir.actions.act_window">
- <field name="name">Manage</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">res.partner</field>
- <field name="view_type">form</field>
- <field name="domain">[('real_estate_type','=','manage'),('customer','=',1)]</field>
- <field name="search_view_id" ref="view_res_partner_filter_real_estate"/>
- <field name="filter" eval="True"/>
- </record>
- <menuitem id="menu_real_estate_manage" name="Manage"
- parent="menu_real_estate_partner"
- action="action_partner_manage_form" sequence="10"/>
- <act_window name="Tops"
- domain="[('partner_id', '=', active_id)]"
- res_model="real.estate.top"
- src_model="res.partner"
- id="action_partner_tops"/>
- <act_window name="Agreements"
- domain="['|',('partner_id', '=', active_id),('owner_id', '=', active_id)]"
- res_model="rental.agreement"
- src_model="res.partner"
- id="action_partner_agreement"/>
- </data>
- </openerp>
|