2019-11-12 16:16:14 +05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-11-08 17:16:01 +05:00
|
|
|
<odoo>
|
|
|
|
|
2019-12-12 16:34:29 +05:00
|
|
|
<!-- res.partner.contract.field action window -->
|
|
|
|
<record id="res_partner_contract_field_action" model="ir.actions.act_window">
|
2020-01-22 16:15:03 +05:00
|
|
|
<field name="name">Contract Fields</field>
|
2019-12-12 16:34:29 +05:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">res.partner.contract.field</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
2020-01-13 17:17:45 +05:00
|
|
|
<!-- res.partner.document.template action window -->
|
|
|
|
<record id="res_partner_document_template_action" model="ir.actions.act_window">
|
2020-01-22 16:15:03 +05:00
|
|
|
<field name="name">Document Templates</field>
|
2019-12-12 16:34:29 +05:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
2020-01-13 17:17:45 +05:00
|
|
|
<field name="res_model">res.partner.document.template</field>
|
2019-12-18 16:25:01 +05:00
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
|
|
|
|
2019-12-12 16:34:29 +05:00
|
|
|
<record id="res_partner_contract_info_inherit_view" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.contract.info</field>
|
2018-11-08 17:16:01 +05:00
|
|
|
<field name="model">res.partner</field>
|
2021-05-03 23:17:54 +05:00
|
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
2018-11-08 17:16:01 +05:00
|
|
|
<field name="priority" eval="25"/>
|
|
|
|
<field name="arch" type="xml">
|
2019-12-12 11:33:26 +05:00
|
|
|
|
2020-01-13 15:46:07 +05:00
|
|
|
<xpath expr="//field[@name='name']" position="attributes">
|
2020-01-14 16:51:21 +05:00
|
|
|
<attribute name="placeholder">Name in ERP</attribute>
|
2020-01-13 15:46:07 +05:00
|
|
|
</xpath>
|
|
|
|
|
2019-12-26 14:26:44 +05:00
|
|
|
<xpath expr="//field[@name='type']" position="before">
|
2020-01-10 10:11:51 +05:00
|
|
|
<field name="name_write" placeholder="i.e. Ural Bank for Reconstruction and Development" attrs="{'invisible': [('is_company', '=', False)]}"/>
|
2020-01-09 10:55:58 +05:00
|
|
|
<field name="name_genitive" attrs="{'invisible': [('is_company', '=', True)]}"/>
|
|
|
|
<field name="name_initials" attrs="{'invisible': [('is_company', '=', True)]}"/>
|
2019-12-12 11:33:26 +05:00
|
|
|
</xpath>
|
2019-12-12 10:10:51 +05:00
|
|
|
|
2020-01-21 19:27:25 +05:00
|
|
|
<xpath expr="//field[@name='function']" position="after">
|
|
|
|
<field name="function_genitive" attrs="{'invisible': [('is_company', '=', True)]}"/>
|
|
|
|
</xpath>
|
|
|
|
|
2019-12-26 14:26:44 +05:00
|
|
|
<xpath expr="//field[@name='category_id']" position="after">
|
2020-01-09 10:55:58 +05:00
|
|
|
<field name="representative_id" domain="[('is_company', '=', False)]" attrs="{'invisible': [('is_company', '=', False)]}"/>
|
|
|
|
<field name="representative_document" attrs="{'invisible': [('is_company', '=', False)]}"/>
|
2019-12-27 10:58:47 +05:00
|
|
|
|
2019-12-12 11:17:32 +05:00
|
|
|
<field name="signature" widget="image"/>
|
2019-12-12 10:10:51 +05:00
|
|
|
</xpath>
|
|
|
|
|
2019-12-12 15:54:30 +05:00
|
|
|
<xpath expr="//field[@name='function']" position="after">
|
2020-01-10 10:17:19 +05:00
|
|
|
<field name="function_genitive" attrs="{'invisible': [('is_company','=', True)]}" invisible="1"/>
|
2019-12-12 15:54:30 +05:00
|
|
|
</xpath>
|
2019-12-26 14:26:44 +05:00
|
|
|
|
2020-01-09 08:32:13 +05:00
|
|
|
<xpath expr="//field[@name='email']" position="before">
|
2020-01-20 13:48:34 +05:00
|
|
|
<field name="whatsapp" attrs="{'invisible': [('is_company', '=', True)]}"/>
|
|
|
|
<field name="telegram" attrs="{'invisible': [('is_company', '=', True)]}"/>
|
2019-12-30 16:01:44 +05:00
|
|
|
</xpath>
|
|
|
|
|
2018-11-08 17:16:01 +05:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2019-12-05 14:21:23 +05:00
|
|
|
<record id="res_partner_contract_view_buttons" model="ir.ui.view">
|
|
|
|
<field name="name">res.partner.contract.view.buttons</field>
|
|
|
|
<field name="model">res.partner</field>
|
|
|
|
<field name="inherit_id" ref="base.view_partner_form" />
|
|
|
|
<field name="priority" eval="25"/>
|
|
|
|
<field name="arch" type="xml">
|
2021-04-30 16:09:18 +05:00
|
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
|
|
<button class="oe_inline oe_stat_button" type="action" name="%(res_partner_contract_partner_action)d" attrs="{'invisible': [('parent_id', '!=', False)]}" icon="fa-pencil-square-o">
|
2019-12-05 14:21:23 +05:00
|
|
|
<field string="Contracts" name="contract_count" widget="statinfo"/>
|
|
|
|
</button>
|
2021-04-30 16:09:18 +05:00
|
|
|
</xpath>
|
2019-12-05 14:21:23 +05:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2019-12-12 16:34:29 +05:00
|
|
|
|
|
|
|
<menuitem id="res_partner_menu_contracts"
|
|
|
|
name="Contract"
|
|
|
|
parent="contacts.res_partner_menu_config"
|
|
|
|
sequence="7"/>
|
|
|
|
|
|
|
|
<menuitem id="res_partner_menu_contracts_fields"
|
|
|
|
name="Fields"
|
|
|
|
action="res_partner_contract_field_action"
|
|
|
|
parent="res_partner_menu_contracts"
|
|
|
|
sequence="1"/>
|
|
|
|
|
2020-01-28 12:35:35 +05:00
|
|
|
<menuitem id="res_partner_menu_contracts_templates"
|
2019-12-12 16:34:29 +05:00
|
|
|
name="Templates"
|
|
|
|
parent="res_partner_menu_contracts"
|
2020-01-13 17:17:45 +05:00
|
|
|
action="res_partner_document_template_action"
|
2019-12-18 16:25:01 +05:00
|
|
|
sequence="2"/>
|
|
|
|
|
2019-11-13 15:26:10 +05:00
|
|
|
</odoo>
|