From 69b421050aa313192bc612ae89bf0dcb3784f903 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Tue, 29 Aug 2017 10:22:58 +0200 Subject: [PATCH] [IMP] account: revamp the sale/purchase menus' structure --- addons/account/models/account_config_settings.py | 2 +- addons/account/views/account_invoice_view.xml | 8 ++++---- addons/account/views/account_menuitem.xml | 7 +++++++ addons/account/views/account_payment_view.xml | 4 ++-- addons/account/views/account_view.xml | 8 ++++---- addons/account_voucher/views/account_voucher_views.xml | 4 ++-- 6 files changed, 20 insertions(+), 13 deletions(-) diff --git a/addons/account/models/account_config_settings.py b/addons/account/models/account_config_settings.py index 2cc8568e049..9e633d040f2 100644 --- a/addons/account/models/account_config_settings.py +++ b/addons/account/models/account_config_settings.py @@ -143,7 +143,7 @@ class AccountConfigSettings(models.TransientModel): def create(self, values): # Optimisation purpose, saving a res_config even without changing any values will trigger the write of all # related values, including the currency_id field on res_company. This in turn will trigger the recomputation - # of account_move_line related field company_currency_id which can be slow depending on the number of entries + # of account_move_line related field company_currency_id which can be slow depending on the number of entries # in the database. Thus, if we do not explicitely change the currency_id, we should not write it on the company # Same for the field `code_digits` which will trigger a write on all the account.account to complete the # code the missing characters to complete the desired number of digit, leading to a sql_constraint. diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index 95b1a53463a..c016e912c4f 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -687,7 +687,7 @@ - + Customer Credit Notes @@ -724,7 +724,7 @@ @@ -760,7 +760,7 @@ - + @@ -795,7 +795,7 @@ + + + + + + + diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 242fce7bb74..5e463112b3f 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -214,8 +214,8 @@ - - + + account.payment.invoice.form diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index 27c1a7c0857..1f78b86b9bd 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -1994,7 +1994,7 @@ @@ -2041,14 +2041,14 @@ - + - + diff --git a/addons/account_voucher/views/account_voucher_views.xml b/addons/account_voucher/views/account_voucher_views.xml index bcf399d407f..c0bec72cc58 100644 --- a/addons/account_voucher/views/account_voucher_views.xml +++ b/addons/account_voucher/views/account_voucher_views.xml @@ -317,7 +317,7 @@ @@ -431,5 +431,5 @@ + action="action_purchase_receipt" parent="account.menu_finance_payables_documents" sequence="4"/>