|
|
<?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="arch" type="xml"> <field name="is_company" position="after"> <field name="is_french" invisible="1" /> </field> <field name="company_type" position="after"> <field name="association" attrs="{'invisible': ['|',('is_company','!=',True),('is_french','!=',True)]}" /> <label for="association" attrs="{'invisible': ['|',('is_company','!=',True),('is_french','!=',True)]}" /> </field> <field name="company_registry" position="attributes"> <attribute name="attrs">{'invisible': ['|',('is_company','=',False),('association','=',True)]}</attribute> </field> <field name="company_registry" position="after"> <field name="company_registry_date" attrs="{'invisible': ['|',('is_company','=',False),('association','=',True)]}" /> </field> <field name="ref" position="attributes"> <attribute name="attrs">{'invisible': [('association','=',True)]}</attribute> </field> <xpath expr="//notebook/page[1]" position="after"> <page name="asso" string="Association" attrs="{'invisible': [('association','=',False)]}"> <group name="asso_main" col="3"> <group name="foundation" string="Foundation" class="o_label_nowrap"> <field name="constituent_ga_date" /> <field name="prefecture_date" /> <field name="prefecture" /> <field name="official_journal_date" /> <field name="official_journal_dept_id" widget="selection" /> <field name="official_journal" /> </group> <group name="legal_info" string="Legal information" class="o_label_nowrap"> <field name="ref" string="Short name" /> <field name="company_registry" string="ANR number" /> <field name="company_registry_date" /> <field name="naf_ape" /> <field name="last_ga_date" /> </group> <group name="documents" string="Legal documents" class="o_label_nowrap"> <field name="statuses_file" filename="statuses_filename" /> <field name="statuses_filename" invisible="1" /> <field name="statuses_update_date" /> <separator colspan="2" string="Internal documents" /> <field name="internal_regul_file" filename="internal_regulations_filename" /> <field name="internal_regul_filename" invisible="1" /> <field name="internal_regul_update_date" /> <field name="asso_project_file" filename="asso_projectations_filename" /> <field name="asso_project_filename" invisible="1" /> <field name="asso_project_update_date" /> </group> </group> </page> </xpath> </field> </record>
<record id="res_partner_form_l10n_fr_inherit" model="ir.ui.view"> <field name="name">res.partner.view.form.inherit</field> <field name="model">res.partner</field> <field name="inherit_id" ref="l10n_fr.res_partner_form_l10n_fr" /> <field name="priority">20</field> <field name="arch" type="xml"> <field name="siret" position="attributes"> <attribute name="attrs">{'invisible': ['|',('is_company','=',False),('association','=',True)]}</attribute> </field> <xpath expr="//group[@name='legal_info']/field[@name='company_registry_date']" position="after"> <field name="siret" /> </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">20</field> <field name="arch" type="xml"> <filter name="type_company" position="after"> <filter name="association" string="Associations" domain="[('association','=',True)]" /> <separator /> <filter name="france" string="France" domain="[('is_french','=',True)]" /> <filter name="hexagon" string="Hexagon" domain="[('country_id','=',%(base.fr)d)]" /> </filter> </field> </record>
</odoo>
|