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.
40 lines
2.3 KiB
40 lines
2.3 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="//block[@name='default_taxes_setting_container']"
|
|
position="after">
|
|
<block title="Double Validation Invoice" name="double_validation_invoice">
|
|
<setting id="double_validation_settings" string="Double Validation"
|
|
help="Invoice and bill needs
|
|
approval if total amount exceeds first and
|
|
second validation limit.">
|
|
<field name="double_validation" widget="upgrade_boolean"/>
|
|
<div class="content-group" invisible="not double_validation">
|
|
<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"
|
|
required="double_validation"/>
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<label for="second_valid_limit"
|
|
class="col-lg-10 o_light_label"/>
|
|
<field name="second_valid_limit"
|
|
required="double_validation"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</setting>
|
|
</block>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|