summaryrefslogtreecommitdiff
path: root/addons/account_check_printing/views
diff options
context:
space:
mode:
authorLaurent Smet <las@openerp.com>2018-02-22 10:19:39 +0100
committerqdp-odoo <qdp@odoo.com>2018-02-22 10:19:39 +0100
commitcdca5d4751a979f6b694f02d88160843f81a77f5 (patch)
tree9584ae544fb9ed84f9941c49530e7c04e1050c84 /addons/account_check_printing/views
parent62e8e5f305a8f14c055c8c2b1b0d74dff7b5c64e (diff)
[IMP] account: improve the multi currency handling on register.payment.wizard
Previously, in multi-currency, the user was not allowed to register a payment on several invoices (picked in list view) and choose the currency, or to make a writeoff. This is now possible. Also, the behavior and default amount/currency proposal is now much better in this wizard since it proposes you to register a payment in the same currency for the total amount (which is what users expect) [FIX] account_check_printing: fix bad displayed check_amount_in_words Was task: 34684 Was PR #20466
Diffstat (limited to 'addons/account_check_printing/views')
-rw-r--r--addons/account_check_printing/views/account_payment_views.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/account_check_printing/views/account_payment_views.xml b/addons/account_check_printing/views/account_payment_views.xml
index 1c5516f98b6..56e3944b9d7 100644
--- a/addons/account_check_printing/views/account_payment_views.xml
+++ b/addons/account_check_printing/views/account_payment_views.xml
@@ -25,7 +25,7 @@
<field name="inherit_id" ref="account.view_account_payment_invoice_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='amount_div']" position="after">
- <field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}" groups="base.group_no_one"/>
+ <field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}"/>
</xpath>
</field>
</record>
@@ -35,8 +35,9 @@
<field name="model">account.register.payments</field>
<field name="inherit_id" ref="account.view_account_payment_from_invoices" />
<field name="arch" type="xml">
- <xpath expr="//field[@name='amount']" position="after">
- <field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}" groups="base.group_no_one"/>
+ <xpath expr="//div[@name='amount_div']" position="after">
+ <field name="check_amount_in_words"
+ attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('multi', '=', True)]}"/>
</xpath>
<xpath expr="//field[@name='communication']" position="after">
<field name="check_manual_sequencing" invisible="1" readonly="1"/>