You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
5.0 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_form_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="priority">30</field>
<field name="arch" type="xml">
<h1 position="after">
<field name="ffck_network" />
<label for="ffck_network" />
</h1>
<xpath expr="//notebook/page[1]" position="after">
<page name="ffck" string="FFCK" attrs="{'invisible':[('ffck_network','!=',True)]}">
<group name="ffck_main" col="3">
<group name="ffck_common" class="o_label_nowrap">
<separator colspan="2" string="Licensee information"
attrs="{'invisible':[('is_company','=',True)]}" />
<separator colspan="2" string="Structure information"
attrs="{'invisible':[('is_company','=',False)]}" />
<label for="partner_code" string="License code"
attrs="{'invisible': [('is_company','=',True)]}" />
<label for="partner_code" string="Structure code"
attrs="{'invisible': [('is_company','=',False)]}" />
<field name="partner_code" nolabel="1"
attrs="{'readonly':[('partner_code_editable','=',False)],'required':[('partner_code_editable','=',False)]}" />
<field name="partner_code_editable" invisible="1" />
<!-- <field name="partner_code" groups="base.group_no_one" /> -->
<field name="partner_scale" attrs="{'invisible': [('is_company','=',False)]}" />
<field name="ffck_structure_type_id" widget="selection"
attrs="{'invisible': [('is_company','=',False)]}" />
<separator string="Structure dates" colspan="2" />
<field name="first_membership_date" />
</group>
<group name="ffck_network" colspan="2" string="Network" class="o_label_nowrap"
attrs="{'invisible': [('partner_scale', '=', '5')]}">
<field name="ffck_partner_id" attrs="{'invisible': [('partner_scale', 'in', ['1'])]}" />
<label for="crck_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '1')]}" colspan="2" />
<field name="crck_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '1')]}" mode="kanban"
nolabel="1" colspan="2" readonly="1" />
<field name="crck_partner_id" attrs="{'invisible': [('partner_scale', 'in', ['1', '2'])]}" />
<label for="cdck_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '2')]}" colspan="2" />
<field name="cdck_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '2')]}" mode="kanban"
nolabel="1" colspan="2" readonly="1" />
<field name="cdck_partner_id" attrs="{'invisible': [('partner_scale', 'in', ['1', '2', '3'])]}" />
<label for="local_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '3')]}" colspan="2" />
<field name="local_partner_ids" attrs="{'invisible': [('partner_scale', '!=', '3')]}" mode="kanban"
nolabel="1" colspan="2" readonly="1" />
<field name="local_partner_id" attrs="{'invisible': [('partner_scale', 'in', ['1', '2', '3', '4'])]}" />
</group>
</group>
</page>
</xpath>
</field>
</record>
<record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="priority">30</field>
<field name="arch" type="xml">
<filter name="type_person" position="attributes">
<attribute name="string">Persons</attribute>
</filter>
<filter name="type_company" position="attributes">
<attribute name="string">Structures</attribute>
</filter>
<filter name="inactive" position="after">
<filter name="active" string="Active" domain="[('active','=',True)]" />
</filter>
<group name="group_by" position="inside">
<separator />
<filter name="partner_scale" string="Partner scale" domain="[]" context="{'group_by' : 'partner_scale'}" />
<filter name="ffck_structure_type" string="Structure type"
context="{'group_by' : 'ffck_structure_type_id'}" />
</group>
<search position="inside">
<searchpanel>
<field name="hierarchy_id" string="Hierarchy" icon="fa-sitemap" enable_counters="1" expand="1" limit="0" />
</searchpanel>
</search>
</field>
</record>
<menuitem
id="ffck_contacts_config_menu"
name="FFCK params"
parent="contacts.res_partner_menu_config"
sequence="4" />
<record id="partner_multi_relation.menu_res_partner_relation" model="ir.ui.menu">
<field name="parent_id" ref="contacts.res_partner_menu_config" />
<field name="sequence">4</field>
</record>
</odoo>