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.
 
 
 
 
 

30 lines
1.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="ir.ui.view" id="care_of_partner_form">
<field name="name">res.partner.form.care.of</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<button name="toggle_active" position="before">
<button type="object" class="oe_stat_button" icon="fa-usd-circle" name="action_view_care_of_invoices"
attrs="{'invisible': [('total_care_of_commission', '=', 0.0)]}" context="{'default_care_of_partner_id': active_id}">
<div class="o_form_field o_stat_info">
<span class="o_stat_value">
<field name="total_care_of_commission" widget='monetary' options="{'currency_field': 'currency_id'}"/>
</span>
<span class="o_stat_text">C/O Commission</span>
</div>
</button>
</button>
<!--Page view of C/O fields-->
<xpath expr="//page[@name='sales_purchases']/group" position="inside">
<group string="Care Of Partner" name="care_of_partner">
<field name="care_of_partner_id"/>
<field name="care_of_percentage" widget="percentage" placeholder="0.05"/>
</group>
</xpath>
</field>
</record>
</data>
</odoo>