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.
 
 
 
 
 

45 lines
2.0 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="round_off_config" model="ir.ui.view">
<field name="name">account.config.settings.roundoff</field>
<field name="model">account.config.settings</field>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='accounting']" position="after">
<group string="Round Off " name="round_off">
<label for="id" string="Round Off"/>
<div name="round_off_conf">
<div>
<field name="round_off" class="oe_inline" />
<label for="round_off"/></div>
<div>
<label for="round_off_account" attrs="{'invisible': [('round_off', '=', False)], 'required': [('round_off', '=', True)]}"/>
<field name="round_off_account" class="oe_inline" attrs="{'invisible': [('round_off', '=', False)], 'required': [('round_off', '=', True)]}"/>
</div>
</div>
</group>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="invoice__extend_round_off_view">
<field name="name">invoice.line.extend_round_off</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='amount_total']" position="after">
<field name="round_active" invisible="1"/>
<field name="rounded_total" attrs="{'invisible': [('round_active', '=', False)]}" />
<field name="round_off_value" attrs="{'invisible': [('round_active', '=', False)]}"/>
</xpath>
</field>
</record>
</data>
</odoo>