2018-01-11 06:22:40 +01:00
|
|
|
<?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>
|
2018-01-18 11:38:21 +01:00
|
|
|
<div class="content-group" attrs="{'invisible': [('global_discount_invoice_apply','=',False)]}">
|
|
|
|
<div class="mt16">
|
|
|
|
<button name="%(account_discount.action_account_discount_config)d" icon="fa-arrow-right" type="action" string="Group Leval Discount Configuration" class="btn-link"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-11 06:22:40 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</flectra>
|