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.
50 lines
2.7 KiB
50 lines
2.7 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Adds fields in configuration settings to set double validation limits -->
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">res.config.settings.view.form.inherit.double.validation.invoice</field>
|
|
<field name="model">res.config.settings</field>
|
|
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='default_taxes_setting_container']"
|
|
position="after">
|
|
<h2>Double Validation Invoice</h2>
|
|
<div class="row mt16 o_settings_container"
|
|
name="main_currency_setting_container">
|
|
<div class="col-12 col-lg-6 o_setting_box"
|
|
id="main_currency">
|
|
<div class="o_setting_left_pane">
|
|
<field name="double_validation"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">Double Validation</span>
|
|
<div class="text-muted">Invoice and bill needs
|
|
approval if total amount exceeds first and
|
|
second validation limit'
|
|
</div>
|
|
<div class="content-group"
|
|
attrs="{'invisible':[('double_validation','=',False)]}">
|
|
<div class="content-group">
|
|
<div class="row mt16">
|
|
<div class="col-lg-6">
|
|
<label for="first_valid_limit"
|
|
class="col-lg-10 o_light_label"/>
|
|
<field name="first_valid_limit"
|
|
attrs="{'required': [('double_validation', '=', True)]}"/>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<label for="second_valid_limit"
|
|
class="col-lg-10 o_light_label"/>
|
|
<field name="second_valid_limit"
|
|
attrs="{'required': [('double_validation', '=', True)]}"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|