flectra/addons/account_discount/views/res_config_settings_views.xml
2018-01-17 12:10:36 +05:30

46 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<record id="res_config_settings_view_form_invoice_discount_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.discount.account</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="3"/>
<field name="inherit_id" ref="account.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath expr="//div[@id='analytic']" position="after">
<h2>Invoice Discount</h2>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-12 o_setting_box">
<div class="o_setting_left_pane">
<field name="global_discount_invoice_line"/>
</div>
<div class="o_setting_right_pane">
<label for="global_discount_invoice_line"/>
<div class="text-muted">
Allow global discount on the Invoice
</div>
<div attrs="{'invisible': [('global_discount_invoice_line' ,'=', False)]}">
<div class="o_setting_left_pane">
<field name="global_discount_invoice_apply"/>
</div>
<div class="o_setting_right_pane">
<label for="global_discount_invoice_apply"/>
</div>
</div>
<div attrs="{'invisible': [('global_discount_invoice_apply' ,'=', False)]}">
<div class="o_setting_right_pane">
<label for="global_discount_fix_invoice_amount"/>
<field name="global_discount_fix_invoice_amount" attrs="{'required': [('global_discount_invoice_apply', '=', True)]}"/>
</div>
<div class="o_setting_right_pane">
<label for="global_discount_percentage_invoice"/>
<field name="global_discount_percentage_invoice" attrs="{'required': [('global_discount_invoice_apply', '=', True)]}"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</flectra>