1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?xml version="1.0"?>
- <openerp>
- <data>
- <record id="res_partner_extra_data_contract" model="ir.ui.view">
- <field name="name">res.partner.extra.data.contract</field>
- <field name="model">account.analytic.account</field>
- <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
- <field name="arch" type="xml">
- <page string="Contract Information" position="after">
- <page name="affiliate" string="Afiliados">
- <group name="affiliate" string="Afiliados">
- <field name="affiliate_ids" nolabel="1" mode="tree">
- <tree string="Referencias Afiliados">
- <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' required="1"/>
- <field name="ruc"/>
- <field name="phone"/>
- <field name="mobile"/>
- </tree>
- </field>
- </group>
- </page>
- </page>
- </field>
- </record>
- <record id="tree_account_analytic_account_affiliate" model="ir.ui.view">
- <field name="name">account.analytic.account.affiliate.tree</field>
- <field name="model">account.analytic.account.affiliate</field>
- <field name="arch" type="xml">
- <tree string="Afiliados" editable="bottom">
- <field name="partner_id"/>
- <field name="ruc"/>
- <field name="mobile"/>
- <field name="phone"/>
- </tree>
- </field>
- </record>
- <record id="search_account_analytic_account_affiliate" model="ir.ui.view">
- <field name="name">account.analytic.account.affiliate.search</field>
- <field name="model">account.analytic.account.affiliate</field>
- <field name="arch" type="xml">
- <search string="Afiliados">
- <field name="partner_id"/>
- <field name="ruc"/>
- <field name="mobile"/>
- <field name="phone"/>
- </search>
- </field>
- </record>
- <record id="form_account_analytic_account_affiliate" model="ir.ui.view">
- <field name="name">account.analytic.account.affiliate.form</field>
- <field name="model">account.analytic.account.affiliate</field>
- <field name="arch" type="xml">
- <form string="Afiliados">
- <sheet>
- <group>
- <field name="partner_id"/>
- <field name="ruc"/>
- <field name="mobile"/>
- <field name="phone"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record id="action_account_analytic_account_affiliate" model="ir.actions.act_window">
- <field name="name">Afiliados</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">account.analytic.account.affiliate</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="search_view_id" ref="search_account_analytic_account_affiliate"/>
- </record>
- </data>
- </openerp>
|