From d1bbf11af27e4ce12b025ef22e397302ee6336c2 Mon Sep 17 00:00:00 2001 From: "Benjamin Frantzen (bfr)" Date: Wed, 1 Apr 2020 08:13:15 +0000 Subject: [PATCH] [IMP] account: usability of account.move form view - moved company_id in other info tab - currency_id is shown near journal_id - invoice: -- ref renamed to 'customer reference' and move to other info tab -- payment_reference hidden if state is draft -- Fixed bug in l10n_in where xpath did not find removed element - vendor bill: auto-complete only shown in edit mode was task:2209497 closes odoo/odoo#48913 X-original-commit: 170635c901914cfe8f33fdbe8d498cbd5f54054e Signed-off-by: Quentin De Paoli (qdp) --- addons/account/models/account.py | 5 +- addons/account/views/account_move_views.xml | 67 ++++++++++--------- .../l10n_in/views/account_invoice_views.xml | 2 +- addons/purchase/views/account_move_views.xml | 7 +- 4 files changed, 45 insertions(+), 36 deletions(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 011b193e12f..eaea0e6f09c 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -1319,8 +1319,9 @@ class AccountJournal(models.Model): def name_get(self): res = [] for journal in self: - currency = journal.currency_id or journal.company_id.currency_id - name = "%s (%s)" % (journal.name, currency.name) + name = journal.name + if journal.currency_id and journal.currency_id != journal.company_id.currency_id: + name = "%s (%s)" % (name, journal.currency_id.name) res += [(journal.id, name)] return res diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index f10e317df0e..742379023e8 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -608,18 +608,21 @@ 'show_address': 1, 'default_is_company': True, 'show_vat': True}" options='{"always_reload": True, "no_quick_create": True}' attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))]}"/> - -
-
- - + + + +