forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
res_config_view.xml
26 lines (24 loc) · 1.4 KB
/
res_config_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">account settings.add.rounding</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="//field[@name='tax_calculation_rounding_method']/ancestor::div[1]" position="after">
<div attrs="{'invisible': [('tax_calculation_rounding_method', 'not in', ['swedish_round_globally', 'swedish_add_invoice_line'])]}">
<label for="tax_calculation_rounding"/>
<field name="tax_calculation_rounding" class="oe_inline"/>
</div>
<div attrs="{'invisible': [('tax_calculation_rounding_method', '<>', 'swedish_add_invoice_line')]}">
<label for="tax_calculation_rounding_account_id"/>
<field name="tax_calculation_rounding_account_id"
domain="[('type', '<>', 'view')]"
attrs="{'required': [('tax_calculation_rounding_method', '=', 'swedish_add_invoice_line')]}" class="oe_inline"/>
</div>
</xpath>
</field>
</record>
</data>
</openerp>