mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Improve usability by splitting the view in 2 parts: rule, result
This commit is contained in:
committed by
Cyril Gaudin
parent
475d47c33e
commit
e44c46467f
@@ -17,18 +17,20 @@
|
||||
<group name="options">
|
||||
<field name="rule_type"/>
|
||||
</group>
|
||||
<group name="amount" string="Balance" attrs="{'invisible': [('rule_type', 'not in', ('rounding', 'currency'))]}">
|
||||
<label for="amount" string="When the balance is between"/>
|
||||
<div>
|
||||
<field name="amount_min" class="oe_inline" /> And
|
||||
<field name="amount_max" class="oe_inline" />
|
||||
</div>
|
||||
<label for="currencies" string="And the currency is one of" attrs="{'invisible': [('rule_type', '!=', 'currency')]}"/>
|
||||
<div attrs="{'invisible': [('rule_type', '!=', 'currency')]}">
|
||||
<field name="currencies" class="oe_inline" widget="many2many_tags"/>
|
||||
</div>
|
||||
<group name="rule" string="Rule">
|
||||
<group name="amount" attrs="{'invisible': [('rule_type', 'not in', ('rounding', 'currency'))]}">
|
||||
<label for="amount" string="When the balance is between"/>
|
||||
<div>
|
||||
<field name="amount_min" class="oe_inline" /> And
|
||||
<field name="amount_max" class="oe_inline" />
|
||||
</div>
|
||||
<label for="currencies" string="And the currency is one of" attrs="{'invisible': [('rule_type', '!=', 'currency')]}"/>
|
||||
<div attrs="{'invisible': [('rule_type', '!=', 'currency')]}">
|
||||
<field name="currencies" class="oe_inline" widget="many2many_tags"/>
|
||||
</div>
|
||||
</group>
|
||||
</group>
|
||||
<group name="operations">
|
||||
<group name="operations" string="Result">
|
||||
<label for="operations" string="Then the following operations will be applied:" colspan="2"/>
|
||||
<field name="operations" nolabel="1"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user