From 2b7d899124fdea32c05d833ca49478b1b4f99a22 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 13:51:37 +0000 Subject: [PATCH] [IMP] account(_*): clean the controlpanel actions * check_printing, voucher For the model 'account.account', - Replace the action menu 'Journal Items' by the stat button. - Hide menu 'Journal Items for Tax Audit' from actions menu. For the model 'account.invoice', - Set action menu 'Share' only for the form view. - Rename the action menu 'Confirm Draft Invoices' by 'Validate'. - Rename 'Register Payment' by 'Register payment'. - Rename 'Send' by 'Send & print'. For the model 'account.move', - Remove the menu 'Journal Items'. - Rename 'Reverse Moves' by 'Reverse' and set it only for the list view. - Rename 'Post Journal Entries' by 'Post entries' and set it only for the list view. For the model 'account.move.line',r ename 'Reconcile Entries' by 'Reconcile' and 'Unreconcile Entries' by 'Unreconcile' and set it only for the list view. For the model 'account.payment', - Rename 'Send Receipt By Email' by 'Send receipt by email' and set it for both form and list views. - Rename 'Post Payments' by 'Confirm' and set it for the list view only - Rename 'Print Checks' by 'Print checks' and set it for the list view only. For the model 'account.journal', remove the menus 'Unpaid Invoices', 'Bank statements' and 'Voucher Entries'. Linked to task 1984526 Related to PR #33720 --- addons/account/data/account_data.xml | 1 + addons/account/data/payment_receipt_data.xml | 3 +-- addons/account/views/account_move_views.xml | 15 +++------------ addons/account/views/account_payment_view.xml | 2 ++ addons/account/views/account_view.xml | 12 ++++-------- .../account/wizard/account_invoice_send_views.xml | 2 +- .../account/wizard/account_move_reversal_view.xml | 3 ++- .../account/wizard/account_unreconcile_view.xml | 3 ++- .../account/wizard/account_validate_move_view.xml | 3 ++- .../data/account_check_printing_data.xml | 1 + 10 files changed, 19 insertions(+), 26 deletions(-) diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml index ed3478c21ab..a2ee9e8dde4 100644 --- a/addons/account/data/account_data.xml +++ b/addons/account/data/account_data.xml @@ -179,6 +179,7 @@ Share + form code action = records.action_share() diff --git a/addons/account/data/payment_receipt_data.xml b/addons/account/data/payment_receipt_data.xml index 4895232ad10..7a72e510993 100644 --- a/addons/account/data/payment_receipt_data.xml +++ b/addons/account/data/payment_receipt_data.xml @@ -32,12 +32,11 @@ - + res_model="account.move.line"/> - Reconcile Entries + Reconcile manual_reconciliation_view action + list @@ -928,7 +928,6 @@ name="Journal Items for Tax Audit" context="{'search_default_account_id': [active_id]}" res_model="account.move.line" - binding_model="account.account" binding_views="form" view_id="account.view_move_line_tax_audit_tree"/> @@ -1195,14 +1194,6 @@ - - Register Payment + list code action = model.action_register_payment() @@ -313,6 +314,7 @@ code + list records.post() diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index da8f55092b6..938d5f2174f 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -7,6 +7,10 @@
+
+
@@ -367,14 +371,6 @@ action = model.setting_init_bank_account_action() - - Tags diff --git a/addons/account/wizard/account_invoice_send_views.xml b/addons/account/wizard/account_invoice_send_views.xml index 8c9ce09b02a..3ed9afdabea 100644 --- a/addons/account/wizard/account_invoice_send_views.xml +++ b/addons/account/wizard/account_invoice_send_views.xml @@ -76,7 +76,7 @@ - Reverse Moves + Reverse account.move.reversal tree,form new + list diff --git a/addons/account/wizard/account_unreconcile_view.xml b/addons/account/wizard/account_unreconcile_view.xml index 965adeb8a98..5a6a1ae9b9d 100644 --- a/addons/account/wizard/account_unreconcile_view.xml +++ b/addons/account/wizard/account_unreconcile_view.xml @@ -18,12 +18,13 @@ - Unreconcile Entries + Unreconcile account.unreconcile form new + list diff --git a/addons/account/wizard/account_validate_move_view.xml b/addons/account/wizard/account_validate_move_view.xml index 0fbf75013f9..062a2e5838e 100644 --- a/addons/account/wizard/account_validate_move_view.xml +++ b/addons/account/wizard/account_validate_move_view.xml @@ -18,7 +18,7 @@ - Post Journal Entries + Post entries ir.actions.act_window validate.account.move form @@ -27,6 +27,7 @@ new This wizard will validate all journal entries selected. Once journal entries are validated, you can not update them anymore. + list diff --git a/addons/account_check_printing/data/account_check_printing_data.xml b/addons/account_check_printing/data/account_check_printing_data.xml index d4c3704f4d9..9f3fd4ded03 100644 --- a/addons/account_check_printing/data/account_check_printing_data.xml +++ b/addons/account_check_printing/data/account_check_printing_data.xml @@ -15,6 +15,7 @@ Print Checks + list code if records: