<?xml version="1.0"?>
|
|
|
|
<odoo>
|
|
|
|
|
|
<template id="assets_backend" name="opendons assets backend" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/opendons/static/src/js/opendons.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<record id="act_partner_text_qualifier" model="ir.actions.act_window">
|
|
<field name="name">Text qualifiers</field>
|
|
<field name="res_model">opendons_qualifier.partnerqualifier</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id,'ctx_value_text':True,'ctx_value_bool':False}</field>
|
|
<field name="domain">[('value_type','=', 'text'),('actif','=',True)]</field>
|
|
|
|
</record>
|
|
<record id="act_partner_boolean_qualifier" model="ir.actions.act_window">
|
|
<field name="name">Bool qualifiers</field>
|
|
<field name="res_model">opendons_qualifier.partnerqualifier</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id,'ctx_value_text':False,'ctx_value_bool':True}</field>
|
|
<field name="domain">[('value_type','=', 'boolean'),('actif','=',True)]</field>
|
|
</record>
|
|
|
|
<record id="act_partner_address" model="ir.actions.act_window">
|
|
<field name="name">Addresses</field>
|
|
<field name="res_model">opendons.partneraddress</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="act_partner_email" model="ir.actions.act_window">
|
|
<field name="name">Emails</field>
|
|
<field name="res_model">opendons.partneremail</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="act_partner_phone" model="ir.actions.act_window">
|
|
<field name="name">phones</field>
|
|
<field name="res_model">opendons.partnerphone</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
</record>
|
|
|
|
|
|
<record id="act_partner_relationship" model="ir.actions.act_window">
|
|
<field name="name">Relationships</field>
|
|
<field name="res_model">opendons_relationship.partner</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="act_partner_aggregate" model="ir.actions.act_window">
|
|
<field name="name">Indicators</field>
|
|
<field name="res_model">opendons.aggregate.partner</field>
|
|
<field name="view_mode">tree,pivot,graph,form</field>
|
|
<field name="context">{'search_default_partner_id': active_id}</field>
|
|
</record>
|
|
|
|
<record id="act_partner_recurring_donation" model="ir.actions.act_window">
|
|
<field name="name">Recurring_donation</field>
|
|
<field name="res_model">donation.donation</field>
|
|
<field name="view_mode">tree,form,graph</field>
|
|
<field name="context">{'default_recurring_template': 'active', 'recurring_view': True,'search_default_partner_id': active_id}</field>
|
|
<field name="domain">[('recurring_template', '!=', False)]</field>
|
|
</record>
|
|
|
|
<record id="contacts.action_contacts" model="ir.actions.act_window">
|
|
<field name="name">Contacts</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">res.partner</field>
|
|
<field name="view_mode">kanban,tree,form,activity</field>
|
|
<field name="search_view_id" ref="base.view_res_partner_filter"/>
|
|
<field name="context">{'default_is_company': False,'type':'private'}</field>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_smiling_face">
|
|
Create a contact in your address book
|
|
</p><p>
|
|
Odoo helps you to easily track all activities related to a customer.
|
|
</p>
|
|
</field>
|
|
</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_res_partner_filter" model="ir.ui.view">
|
|
<field name="name">opendons.res.partner.filter</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='name']" position="before">
|
|
<field name="donor_id" filter_domain="[('donor_id', 'ilike', self)]"/>
|
|
<field name="zip" filter_domain="[('zip', 'ilike', self)]"/>
|
|
</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>
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
<field name="arch" type="xml">
|
|
|
|
|
|
<xpath expr="//div[@class='o_address_format']" position="replace">
|
|
<field name="street" placeholder="Street..." class="o_address_street" attrs="{'readonly': [('parent_id', '!=', False)]}"/>
|
|
<field name="street2" placeholder="Street 2..." class="o_address_street" attrs="{'readonly': [('parent_id', '!=', False)]}"/>
|
|
<field name="zip" placeholder="ZIP" class="o_address_zip" attrs="{'readonly': [('parent_id', '!=', False)]}"/>
|
|
<field name="city" placeholder="City" class="o_address_city" attrs="{'readonly': [('parent_id', '!=', False)]}"/>
|
|
<field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" attrs="{'readonly': [('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': [('parent_id', '!=', False)]}"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='type']" position="replace">
|
|
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//span[@name='address_name']" position="replace">
|
|
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='zip']" position="before">
|
|
<field name="locality" string="Locality" placeholder="locality"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//page[@name='sales_purchases']" position="before">
|
|
<page name="tax_address" string="Tax address">
|
|
<group col="12">
|
|
<group colspan="5">
|
|
<div class="o_address_format">
|
|
<field name="tax_street" placeholder="Street..." class="o_address_street" />
|
|
<field name="tax_street2" placeholder="Street 2..." class="o_address_street"/>
|
|
<field name="tax_locality" placeholder="Locality" class="o_address_street"/>
|
|
<field name="tax_zip" placeholder="ZIP" class="o_address_zip"/>
|
|
<field name="tax_city" placeholder="City" class="o_address_city" />
|
|
<field name="tax_country_id" placeholder="Country" class="o_address_country" options="{"no_open": True, "no_create": True}"/>
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
|
|
<xpath expr="//button[@name='%(donation.partner_donation_action)d']" position="replace">
|
|
|
|
</xpath>
|
|
<xpath expr="//button[@name='%(donation_base.partner_tax_receipt_action)d']" position="replace">
|
|
|
|
</xpath>
|
|
|
|
<!-- <xpath expr="//button[@name='294']" position="replace">
|
|
|
|
</xpath> -->
|
|
<xpath expr="//button[@name='action_view_partner_invoices']" position="replace">
|
|
|
|
</xpath>
|
|
<xpath expr="//button[@name='action_event_view']" position="replace">
|
|
|
|
</xpath>
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
|
|
<button
|
|
class="oe_stat_button"
|
|
type="action"
|
|
name="%(donation.partner_donation_action)d"
|
|
attrs="{'invisible': [('donor_rank', '=', 0)]}"
|
|
icon="fa-heart-o">
|
|
<field string="Donations" name="donation_count" widget="statinfo" />
|
|
</button>
|
|
|
|
<button
|
|
class="oe_stat_button"
|
|
type="action"
|
|
name="%(donation_base.partner_tax_receipt_action)d"
|
|
attrs="{'invisible': [('parent_id', '!=', False)]}"
|
|
icon="fa-file-text"
|
|
>
|
|
<field
|
|
string="Tax Receipts"
|
|
name="tax_receipt_count"
|
|
widget="statinfo"
|
|
/>
|
|
</button>
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_recurring_donation)d"
|
|
|
|
icon="fa-heart-o">
|
|
<field string="Recurring_donation" name="recurring_donation_count" widget="statinfo"/>
|
|
</button>
|
|
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_text_qualifier)d"
|
|
|
|
icon="fa-info">
|
|
<span>Text Qualifiers</span>
|
|
</button>
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_boolean_qualifier)d"
|
|
|
|
icon="fa-info">
|
|
<span>Bool Qualifiers</span>
|
|
</button>
|
|
|
|
<!-- <button class="oe_stat_button" type="action"
|
|
name="%(act_partner_email)d"
|
|
|
|
icon="fa-envelope">
|
|
<field string="Email" name="email_count" widget="statinfo"/>
|
|
</button>
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_phone)d"
|
|
|
|
icon="fa-phone">
|
|
<field string="Phone" name="phone_count" widget="statinfo"/>
|
|
</button> -->
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_relationship)d"
|
|
|
|
icon="fa-handshake-o">
|
|
<field string="Relationship" name="relationshipPartner_count" widget="statinfo"/>
|
|
</button>
|
|
<button class="oe_stat_button" type="action"
|
|
name="%(act_partner_aggregate)d"
|
|
|
|
icon="fa-info">
|
|
<span>Indicators</span>
|
|
</button>
|
|
|
|
</xpath>
|
|
<xpath expr="//page[@name='sales_purchases']" position="after">
|
|
<page name="marketing_operation" string="Marketing operation">
|
|
<group col="12">
|
|
<group colspan="12">
|
|
|
|
<field name="operation_ids">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="chanel"/>
|
|
<field name="exported_date"/>
|
|
</tree>
|
|
</field>
|
|
|
|
</group>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
|
|
<xpath expr="/form/sheet/div/h1" position="replace">
|
|
<group>
|
|
<group>
|
|
|
|
<field name="donor_id"/>
|
|
<field name="title" options="{"no_open": True}" placeholder="" attrs="{'invisible': [('is_company', '=', True)],'required' : [('is_company', '=', False)]}"/>
|
|
<field id="individual" class="o_text_overflow" name="name" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', False)], 'invisible': [('is_company','=', True)]}"/>
|
|
<field name="firstname" attrs="{'invisible':[('is_company','=',True)],'required' : [('is_company', '=', False)]}"/>
|
|
<field id="company" class="o_text_overflow" name="name" string="Raison sociale" default_focus="1" placeholder="" attrs="{'required' : [('is_company', '=', True)], 'invisible': [('is_company','=', False)]}"/>
|
|
|
|
|
|
<!-- <field name="source"/> -->
|
|
<!-- <field name="company_id"/> -->
|
|
|
|
|
|
<field name="parent_id" string="Company Name"
|
|
widget="res_partner_many2one"
|
|
placeholder="Company Name..."
|
|
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}"
|
|
attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/>
|
|
<field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/>
|
|
<button name="create_company" icon="fa-plus-square" string="Create company"
|
|
type="object" class="oe_edit_only btn-link"
|
|
attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/>
|
|
|
|
</group>
|
|
<group>
|
|
<field name="first_donation_product_id"/>
|
|
<field name="first_donation_date"/>
|
|
<field name="max_amount_donation"/>
|
|
<field name="annual_average_number_donation"/>
|
|
<field name="average_amount_donation"/>
|
|
|
|
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
<xpath expr="/form/sheet/div/div" position="replace">
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='type']" position="before">
|
|
<field name="npai_count"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='state_id']" position="attributes">
|
|
<attribute name="invisible">True</attribute>
|
|
</xpath>
|
|
<xpath expr="//field[@name='vat']" position="attributes">
|
|
<attribute name="invisible">True</attribute>
|
|
</xpath>
|
|
<xpath expr="/form/sheet/group/group[2]/field[@name='title']" position="attributes">
|
|
<attribute name="invisible">True</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="//page[@name='contact_addresses']" position="replace">
|
|
|
|
</xpath>
|
|
|
|
</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"/>
|
|
|
|
<menuitem id="opendons_boolean_qualifier_menu" action="boolean_qualifier_action"
|
|
parent="opendons_qualifier_title_menu" sequence="1"/>
|
|
|
|
<menuitem id="opendons_text_qualifier_menu" action="text_qualifier_action"
|
|
parent="opendons_qualifier_title_menu" sequence="2"/>
|
|
|
|
|
|
<menuitem id="opendons_qualifier_category_menu" action="category_action"
|
|
parent="opendons_qualifier_title_menu" sequence="3"/>
|
|
|
|
<menuitem id="opendons_relationship_title_menu" name ="Relationships"
|
|
parent="contacts.menu_contacts" sequence="22"/>
|
|
|
|
<menuitem id="opendons_duplicate_title_menu" name ="Duplicates"
|
|
parent="contacts.menu_contacts" sequence="23"/>
|
|
|
|
<menuitem id="opendons_duplicate_rule_menu" action="duplicate_rule_action"
|
|
parent="opendons_duplicate_title_menu" sequence="1"/>
|
|
|
|
|
|
<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>
|