|
|
@ -80,7 +80,38 @@ |
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="contacts.action_contacts" model="ir.actions.act_window"> |
|
|
|
<field name="view_mode">tree,form,kanban</field> |
|
|
|
</record> |
|
|
|
<record id="contacts.action_contacts_view_kanban" model="ir.actions.act_window.view"> |
|
|
|
<field name="sequence" eval="4"/> |
|
|
|
<field name="view_mode">kanban</field> |
|
|
|
<field name="view_id" ref="base.res_partner_kanban_view"/> |
|
|
|
<field name="act_window_id" ref="contacts.action_contacts"/> |
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="view_partner_tree" model="ir.ui.view"> |
|
|
|
<field name="name">opendons.res.partner.tree</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
|
<field name="inherit_id" ref="base.view_partner_tree" /> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="/tree" position="replace"> |
|
|
|
<tree string="Contacts" sample="1" multi_edit="1"> |
|
|
|
<field name="donor_id" string="Donor Id"/> |
|
|
|
<field name="title" string="Title"/> |
|
|
|
<field name="display_name" string="Name"/> |
|
|
|
<field name="firstname" string="Firstname"/> |
|
|
|
<field name="phone" class="o_force_ltr" optional="show"/> |
|
|
|
<field name="email" optional="show"/> |
|
|
|
<field name="zip" optional="show"/> |
|
|
|
<field name="city" optional="show"/> |
|
|
|
</tree> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="view_partner_form" model="ir.ui.view"> |
|
|
|
<field name="name">opendons.res.partner.form</field> |
|
|
|
<field name="model">res.partner</field> |
|
|
@ -88,7 +119,19 @@ |
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='city']" position="before"> |
|
|
|
<xpath expr="//div[@class='o_address_format']" position="replace"> |
|
|
|
<field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
<field name="street2" placeholder="Street 2..." class="o_address_street" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
<field name="city" placeholder="City" class="o_address_city" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
<field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/> |
|
|
|
|
|
|
|
<field name="country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}" attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> |
|
|
|
|
|
|
|
</xpath> |
|
|
|
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='zip']" position="before"> |
|
|
|
<field name="locality" string="Locality" placeholder="locality"/> |
|
|
|
|
|
|
|
</xpath> |
|
|
@ -113,13 +156,15 @@ |
|
|
|
<xpath expr="/form/sheet/div/h1" position="replace"> |
|
|
|
<group> |
|
|
|
<group> |
|
|
|
<field id="company" class="o_text_overflow" name="name" default_focus="1" placeholder="e.g. Lumber Inc" attrs="{'required' : [('type', '=', 'contact'),('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/> |
|
|
|
|
|
|
|
<field name="donor_id"/> |
|
|
|
<field name="title" options="{"no_open": True}" placeholder="e.g. Mister" attrs="{'invisible': [('is_company', '=', True)]}"/> |
|
|
|
<field id="individual" class="o_text_overflow" name="name" default_focus="1" placeholder="e.g. Brandom Freeman" attrs="{'required' : [('type', '=', 'contact'), ('is_company', '=', False)], 'invisible': [('is_company','=', True)]}"/> |
|
|
|
<field name="firstname" attrs="{'invisible':[('is_company','=',True)]}"/> |
|
|
|
<field name="title" options="{"no_open": True}" placeholder="e.g. Mister" attrs="{'invisible': [('is_company', '=', True)]}"/> |
|
|
|
<field name="id"/> |
|
|
|
<field name="key"/> |
|
|
|
<field name="source"/> |
|
|
|
<field id="company" class="o_text_overflow" name="name" default_focus="1" placeholder="e.g. Lumber Inc" attrs="{'required' : [('type', '=', 'contact'),('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <field name="source"/> --> |
|
|
|
<!-- <field name="company_id"/> --> |
|
|
|
|
|
|
|
|
|
|
@ -207,6 +252,12 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="laposte_ref_action"> |
|
|
|
<field name="name">laposte_refs</field> |
|
|
|
<field name="res_model">opendons.laposte_ref</field> |
|
|
|
<field name="view_mode">tree,form</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<menuitem id="opendons_qualifier_title_menu" name ="Qualifiers" |
|
|
|
parent="contacts.menu_contacts" sequence="21"/> |
|
|
|
|
|
|
@ -233,6 +284,8 @@ |
|
|
|
<menuitem id="opendons_duplicate_partner_menu" action="ir_action_find_duplicate_partner" |
|
|
|
parent="opendons_duplicate_title_menu" sequence="2"/> |
|
|
|
|
|
|
|
|
|
|
|
<menuitem id="opendons_laposte_ref_title_menu" name ="La Poste Referential" action="laposte_ref_action" |
|
|
|
parent="contacts.menu_contacts" sequence="21"/> |
|
|
|
|
|
|
|
|
|
|
|
</odoo> |