From 29bb709844dbb21735b7394f88b2fea2c6c8f471 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 9 May 2019 11:34:42 +0000 Subject: [PATCH 01/18] [IMP] sms: set action menu 'Send SMS' only for list view Set action menu 'Send SMS' only for list view of 'res.partner' model. Linked to task 1984526 Related to PR #33720 --- addons/sms/wizard/sms_composer_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sms/wizard/sms_composer_views.xml b/addons/sms/wizard/sms_composer_views.xml index 413cf62b386..4b6651a00cb 100644 --- a/addons/sms/wizard/sms_composer_views.xml +++ b/addons/sms/wizard/sms_composer_views.xml @@ -34,6 +34,7 @@ name="Send SMS" binding_model="res.partner" res_model="sms.composer" + binding_views="list" view_mode="form" target="new"/> From 6f30fcec145db8c2b50330044903e809ee4b51f1 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 9 May 2019 11:35:51 +0000 Subject: [PATCH 02/18] [IMP] base: rename action menu 'Merge Contacts' by 'Merge' Rename the action menu 'Merge Contacts' by 'Merge' for the 'res.partner' model. Linked to task 1984526 Related to PR #33720 --- odoo/addons/base/wizard/base_partner_merge_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/wizard/base_partner_merge_views.xml b/odoo/addons/base/wizard/base_partner_merge_views.xml index f03e69f1773..ca44481b0c8 100644 --- a/odoo/addons/base/wizard/base_partner_merge_views.xml +++ b/odoo/addons/base/wizard/base_partner_merge_views.xml @@ -105,5 +105,5 @@ binding_views="list" target="new" view_mode="form" - name="Merge Contacts"/> + name="Merge"/> From b366c554e6de720badabc80de64563cdf0896d19 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 9 May 2019 11:41:32 +0000 Subject: [PATCH 03/18] [IMP] mail: rename action menu 'Send Email' by 'Send email' Rename the action menu 'Send Email' by 'Send email' for the 'res.partner' model. Linked to task 1984526 Related to PR #33720 --- addons/mail/views/res_partner_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/views/res_partner_views.xml b/addons/mail/views/res_partner_views.xml index 0f900dc7e9e..f6e7173ba67 100644 --- a/addons/mail/views/res_partner_views.xml +++ b/addons/mail/views/res_partner_views.xml @@ -101,7 +101,7 @@ - Date: Thu, 9 May 2019 11:49:08 +0000 Subject: [PATCH 04/18] [IMP] membership: remove the action menu 'Invoice Membership' Remove the action menu 'Invoice Membership' from the model 'res.partner' Linked to task 1984526 Related to PR #33720 --- addons/membership/wizard/membership_invoice_views.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/membership/wizard/membership_invoice_views.xml b/addons/membership/wizard/membership_invoice_views.xml index 187d1ed5abe..392850976bf 100644 --- a/addons/membership/wizard/membership_invoice_views.xml +++ b/addons/membership/wizard/membership_invoice_views.xml @@ -26,11 +26,4 @@ new - - From 69cf2c0f827397057e9477b9445f8398c524f1ba Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 9 May 2019 12:21:22 +0000 Subject: [PATCH 05/18] [IMP] portal: rename the action menu 'Grant Portal Access' Rename the action menu 'Grant Portal Access' by 'Grant portal access' for the model 'res.partner'. Linked to task 1984526 Related to PR #33720 --- addons/portal/wizard/portal_wizard_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal/wizard/portal_wizard_views.xml b/addons/portal/wizard/portal_wizard_views.xml index 04085d17d86..05cf6714d3b 100644 --- a/addons/portal/wizard/portal_wizard_views.xml +++ b/addons/portal/wizard/portal_wizard_views.xml @@ -2,7 +2,7 @@ Date: Wed, 15 May 2019 11:53:03 +0000 Subject: [PATCH 06/18] [IMP] crm, website_crm_partner_assign: clean the controlpanel actions For the model 'crm.lead' - Rename the action menu 'Send an email' by 'Send email'. - Remove the action menu 'Mark Late Activities as Done' and 'Mark All Activities as Done'. - Set 'Mark as lost' menu action only for the list view. - Remove the action menu 'Assign salesman of assigned partner'. - Rename the action menu 'Forward to Partner' by 'Forward to partner' and set it for both form and list view. For the model 'res.partner', remove the actions menu 'Meetings'. Linked to task 1984526 Related to PR #33720 --- addons/crm/views/crm_lead_views.xml | 31 ++----------------- addons/crm/views/res_partner_views.xml | 9 ------ .../views/crm_lead_views.xml | 12 ------- .../wizard/crm_forward_to_partner_view.xml | 4 +-- 4 files changed, 4 insertions(+), 52 deletions(-) diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index 9c468a22142..60fa2182336 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -860,7 +860,7 @@ - Mark as lost + list code if record: @@ -898,34 +899,6 @@ if record: - - - Mark Late Activities as Done - - - code - -for rec in records: - rec.activity_ids.filtered(lambda a: a.state == 'overdue').action_feedback(feedback='Closed automatically in batch') - - - - - - Mark All Activities as Done - - - code - -for rec in records: - rec.activity_ids.action_feedback(feedback='Closed automatically in batch') - - - diff --git a/addons/crm/views/res_partner_views.xml b/addons/crm/views/res_partner_views.xml index 4d00e041a5c..3dc0d8ed8cd 100644 --- a/addons/crm/views/res_partner_views.xml +++ b/addons/crm/views/res_partner_views.xml @@ -1,15 +1,6 @@ - - - Meetings - - calendar.event - calendar,tree,form - {'default_partner_ids': [active_id], 'search_default_partner_ids': [active_id]} - - Opportunities diff --git a/addons/website_crm_partner_assign/views/crm_lead_views.xml b/addons/website_crm_partner_assign/views/crm_lead_views.xml index 3f47c1dbf7e..8d07457cfa8 100644 --- a/addons/website_crm_partner_assign/views/crm_lead_views.xml +++ b/addons/website_crm_partner_assign/views/crm_lead_views.xml @@ -121,16 +121,4 @@ - - Assign salesman of assigned partner - - - code - -if env.context.get('active_domain'): - records = model.search(env.context['active_domain']) -records.assign_salesman_of_assigned_partner() - - - diff --git a/addons/website_crm_partner_assign/wizard/crm_forward_to_partner_view.xml b/addons/website_crm_partner_assign/wizard/crm_forward_to_partner_view.xml index 9e92493601e..f0b2b00f4d4 100644 --- a/addons/website_crm_partner_assign/wizard/crm_forward_to_partner_view.xml +++ b/addons/website_crm_partner_assign/wizard/crm_forward_to_partner_view.xml @@ -45,8 +45,8 @@ From 9df284f5b5549fec311fedff3eaa1da6fae93ce8 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Wed, 15 May 2019 12:06:28 +0000 Subject: [PATCH 07/18] [IMP] (website_)sale: clean the controlpanel actions For the model 'sale.order' - Set the action menu 'Share' only for the form view of model. - Rename the action menu 'Invoice Order' by 'Create invoices' and set only for the list view. - Rename the action menu 'Send a Cart Recovery Email' by 'Send cart recovery email' and set it only for the list view. Also improved tour 'shop_cart_recovery' as now action menu only available on the list view. Linked to task 1984526 Related to PR #33720 --- addons/sale/data/sale_data.xml | 1 + .../wizard/sale_make_invoice_advance_views.xml | 3 ++- .../tours/website_sale_shop_cart_recovery.js | 17 +++++++++++++---- addons/website_sale/views/sale_order_views.xml | 1 + 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/addons/sale/data/sale_data.xml b/addons/sale/data/sale_data.xml index c326950d0e5..0f3abd5937b 100644 --- a/addons/sale/data/sale_data.xml +++ b/addons/sale/data/sale_data.xml @@ -6,6 +6,7 @@ Share + form code action = records.action_share() diff --git a/addons/sale/wizard/sale_make_invoice_advance_views.xml b/addons/sale/wizard/sale_make_invoice_advance_views.xml index 976155fe788..c2b6a1e2445 100644 --- a/addons/sale/wizard/sale_make_invoice_advance_views.xml +++ b/addons/sale/wizard/sale_make_invoice_advance_views.xml @@ -46,7 +46,7 @@ - Invoice Order + Create invoices ir.actions.act_window sale.advance.payment.inv form @@ -54,6 +54,7 @@ + list diff --git a/addons/website_sale/static/tests/tours/website_sale_shop_cart_recovery.js b/addons/website_sale/static/tests/tours/website_sale_shop_cart_recovery.js index 319a470ab6d..007ad6a24b7 100644 --- a/addons/website_sale/static/tests/tours/website_sale_shop_cart_recovery.js +++ b/addons/website_sale/static/tests/tours/website_sale_shop_cart_recovery.js @@ -31,8 +31,6 @@ tour.register('shop_cart_recovery', { 'method': 'sale_get_order', 'args': [[$('html').data('website-id')]], }).then(function (data) { - var orderId = parseInt(data.match(/sale\.order\((\d+),\)/)[1]); - localStorage.setItem(orderIdKey, orderId); window.location.href = "/web/session/logout?redirect=/web/login"; }); }, @@ -41,8 +39,7 @@ tour.register('shop_cart_recovery', { content: "login as admin and go to the SO (backend)", trigger: '.oe_login_form', run: function () { - var orderId = localStorage.getItem(orderIdKey); - var url = "/web#action=sale.action_orders&view_type=form&id=" + orderId; + var url = "/web#action=website_sale.action_orders_ecommerce&view_type=list"; var $loginForm = $('.oe_login_form'); $loginForm.find('input[name="login"]').val("admin"); $loginForm.find('input[name="password"]').val("admin"); @@ -50,6 +47,14 @@ tour.register('shop_cart_recovery', { $loginForm.submit(); }, }, + { + content: "remove filter Confirmed Orders", + trigger: '.o_searchview_input_container .o_searchview_facet:first .o_facet_remove' + }, + { + content: "select the order", + trigger: 'tbody tr:first .o_list_record_selector input[type="checkbox"]', + }, { content: "click action", trigger: '.btn:containsExact("Action")', @@ -62,6 +67,10 @@ tour.register('shop_cart_recovery', { content: "click Send email", trigger: '.btn[name="action_send_mail"]', }, + { + content: "click on the order", + trigger: '.o_data_row:first', + }, { content: "check the mail is sent, grab the recovery link, and logout", trigger: '.o_thread_message_content a:containsExact("Resume order")', diff --git a/addons/website_sale/views/sale_order_views.xml b/addons/website_sale/views/sale_order_views.xml index 16eb7615119..0d87cabfb0d 100644 --- a/addons/website_sale/views/sale_order_views.xml +++ b/addons/website_sale/views/sale_order_views.xml @@ -140,6 +140,7 @@ action = records.action_recovery_email_send() + list From c2bc4ee7cde6b61d2105dc96dd6e60b8a2f891fa Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Wed, 15 May 2019 12:54:30 +0000 Subject: [PATCH 08/18] [IMP] point_of_sale: clean the controlpanel actions menu For the model 'pos.session' - Remove the actions menu 'Put Money In', 'Take Money Out' and 'Orders' from the controlpanel actions menu. For the model 'pos.config', remove 'Sessions' action menu. Linked to task 1984526 Related to PR #33720 --- addons/point_of_sale/views/pos_config_view.xml | 8 -------- addons/point_of_sale/views/pos_session_view.xml | 8 -------- addons/point_of_sale/wizard/pos_box.xml | 2 -- 3 files changed, 18 deletions(-) diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index 9daba7542c2..fd90cb2ff38 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -518,14 +518,6 @@ - - Point of Sale ir.actions.act_window diff --git a/addons/point_of_sale/views/pos_session_view.xml b/addons/point_of_sale/views/pos_session_view.xml index 5d93243e575..d0e1235666b 100644 --- a/addons/point_of_sale/views/pos_session_view.xml +++ b/addons/point_of_sale/views/pos_session_view.xml @@ -1,13 +1,5 @@ - - pos.session.form.view pos.session diff --git a/addons/point_of_sale/wizard/pos_box.xml b/addons/point_of_sale/wizard/pos_box.xml index 65a8205a41b..ae1aec6d997 100644 --- a/addons/point_of_sale/wizard/pos_box.xml +++ b/addons/point_of_sale/wizard/pos_box.xml @@ -4,7 +4,6 @@ id="action_pos_box_in" name="Put Money In" res_model="cash.box.in" - binding_model="pos.session" view_mode="form" target="new"/> @@ -12,7 +11,6 @@ id="action_pos_box_out" name="Take Money Out" res_model="cash.box.out" - binding_model="pos.session" view_mode="form" target="new"/> From 1574861e48637953f9e166f63f7178dc0f6535f9 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Wed, 15 May 2019 13:02:39 +0000 Subject: [PATCH 09/18] [IMP] stock(_picking_batch): clean the controlpanel actions For the model 'stock.picking' - Rename the action menu 'Assign a Responsible' by 'Assign responsible' and set it for the list view only. - Rename the action menu 'Add to Batch' by 'Add to batch' For the model 'stock.warehouse', remove the action menu 'Reordering Rules' Linked to task 1984526 Related to PR #33720 --- addons/stock/views/stock_picking_views.xml | 1 + addons/stock/views/stock_warehouse_views.xml | 9 --------- .../wizard/stock_picking_to_batch_views.xml | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 32dca9c4242..60c4d8173fa 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -422,6 +422,7 @@ Assign a Responsible + list code action_values = env.ref('stock.stock_assign_responsible_action').read()[0] diff --git a/addons/stock/views/stock_warehouse_views.xml b/addons/stock/views/stock_warehouse_views.xml index d7dbdae8826..66f62654fe9 100644 --- a/addons/stock/views/stock_warehouse_views.xml +++ b/addons/stock/views/stock_warehouse_views.xml @@ -266,13 +266,4 @@ action="action_orderpoint_form" name="Reordering Rules" parent="menu_stock_inventory_control" sequence="10"/> - - diff --git a/addons/stock_picking_batch/wizard/stock_picking_to_batch_views.xml b/addons/stock_picking_batch/wizard/stock_picking_to_batch_views.xml index bd6fcb3ddec..5997a49c80a 100644 --- a/addons/stock_picking_batch/wizard/stock_picking_to_batch_views.xml +++ b/addons/stock_picking_batch/wizard/stock_picking_to_batch_views.xml @@ -27,7 +27,7 @@ Date: Wed, 15 May 2019 13:08:29 +0000 Subject: [PATCH 10/18] [IMP] mrp(_account): clean the controlpanel action menu For model 'mrp.production', rename the action menu 'Mrp: Plan Production Orders' by 'Plan orders' and set it for the list view only. For the model 'product.template' and 'product.product', rename the menu 'Compute Price from BoM' by 'Compute cost from BoM' and set it for the list view only. Linked to task 1984526 Related to PR #33720 --- addons/mrp/views/mrp_production_views.xml | 1 + addons/mrp_account/views/product_views.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 6fa48400dda..507aa9ab1e1 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -26,6 +26,7 @@ Mrp: Plan Production Orders + list code records.button_plan() diff --git a/addons/mrp_account/views/product_views.xml b/addons/mrp_account/views/product_views.xml index 262a6675198..a17af573ebd 100644 --- a/addons/mrp_account/views/product_views.xml +++ b/addons/mrp_account/views/product_views.xml @@ -58,6 +58,7 @@ Compute Price from BoM + list code if records: @@ -69,6 +70,7 @@ Compute Price from BoM + list code if records: From 2456f673de3e5b4a188bbc3fdbe329d88f04e960 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 11:25:02 +0000 Subject: [PATCH 11/18] [IMP] purchase: set the action menu 'Share' only for form view For the model 'purchase.order', set the action menu 'Share' only for the form view. Linked to task 1984526 Related to PR #33720 --- addons/purchase/data/purchase_data.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/purchase/data/purchase_data.xml b/addons/purchase/data/purchase_data.xml index 85953c0f1e0..6fe3b76c656 100644 --- a/addons/purchase/data/purchase_data.xml +++ b/addons/purchase/data/purchase_data.xml @@ -32,6 +32,7 @@ Share + form code action = records.action_share() From cba58475b2fd8fe011a943dc7aa2091fdf91604e Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 11:37:25 +0000 Subject: [PATCH 12/18] [IMP] repair: rename the action menu 'Create Invoice' Rename the action menu 'Create Invoice' by 'Create invoices' for the model 'repair.order'. Linked to task 1984526 Related to PR #33720 --- addons/repair/wizard/repair_make_invoice_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/repair/wizard/repair_make_invoice_views.xml b/addons/repair/wizard/repair_make_invoice_views.xml index ef197c6e322..6013da374f2 100644 --- a/addons/repair/wizard/repair_make_invoice_views.xml +++ b/addons/repair/wizard/repair_make_invoice_views.xml @@ -20,7 +20,7 @@ - Date: Thu, 16 May 2019 12:58:37 +0000 Subject: [PATCH 13/18] [IMP] hr_timesheet: remove the action menu 'Timesheet Entries' For the model 'project.task', remove the action menu 'Timesheet Entries' Linked to task 1984526 Related to PR #33720 --- addons/hr_timesheet/views/project_views.xml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/addons/hr_timesheet/views/project_views.xml b/addons/hr_timesheet/views/project_views.xml index 715fc7a11ac..f0d5bcfd817 100644 --- a/addons/hr_timesheet/views/project_views.xml +++ b/addons/hr_timesheet/views/project_views.xml @@ -199,18 +199,5 @@ - - From 5a2c3286ea0dc40fcef7392b8e911cbd22bed395 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 13:21:29 +0000 Subject: [PATCH 14/18] [IMP] hr_expense: clean the controlpanel action menu For the model 'hr.expense', rename the action menu 'Submit Report' by 'Submit report' and set it only for the list view. Linked to task 1984526 Related to PR #33720 --- addons/hr_expense/views/hr_expense_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index bddd441bd24..a9a8fd285b3 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -834,6 +834,7 @@ ir.actions.server + list code if records: From 6eef0ea0b79fc34ac8aa6f8cd140ea88eadad175 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 13:49:25 +0000 Subject: [PATCH 15/18] [IMP] lunch: clean the controlpanel actions - For the model 'lunch.order', rename the actions menu 'Lunch: Receive meals' by 'Mark as received' and 'Lunch: Cancel meals' by 'Cancel'. - For the model 'lunch.product', remove the action menu 'Lunch: Archive/Restore products' Linked to task 1984526 Related to PR #33720 --- addons/lunch/data/lunch_data.xml | 2 ++ addons/lunch/views/lunch_views.xml | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/addons/lunch/data/lunch_data.xml b/addons/lunch/data/lunch_data.xml index 30b3ce4b53c..eaebd47d2e0 100644 --- a/addons/lunch/data/lunch_data.xml +++ b/addons/lunch/data/lunch_data.xml @@ -5,6 +5,7 @@ Lunch: Receive meals + list code records.action_confirm() @@ -13,6 +14,7 @@ Lunch: Cancel meals + list code records.action_cancel() diff --git a/addons/lunch/views/lunch_views.xml b/addons/lunch/views/lunch_views.xml index 69fda39e04c..88e5d61a280 100644 --- a/addons/lunch/views/lunch_views.xml +++ b/addons/lunch/views/lunch_views.xml @@ -22,13 +22,4 @@ - - - Lunch: Archive/Restore products - ir.actions.server - - - code - records.toggle_active() - From 2b7d899124fdea32c05d833ca49478b1b4f99a22 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Thu, 16 May 2019 13:51:37 +0000 Subject: [PATCH 16/18] [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: From b7c8cf1b60ef5503ad922070e57022052faf1380 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Mon, 20 May 2019 12:09:43 +0000 Subject: [PATCH 17/18] [IMP] hr(_*), website_hr: replace actions menu by stat button * attendance, contract, fleet, holidays, maintenance, presence, timesheet. For the model 'hr.employee', replace the actions menu 'Archive/Restore' by the stat button. That's why adapted changes regarding xpath. Also rename the actions menu 'Time Off' by 'Time off'. Linked to task 1984526 Related to PR #33720 --- addons/hr/views/hr_employee_views.xml | 26 +++---------------- .../hr_attendance/views/hr_employee_view.xml | 4 +-- .../hr_contract/views/hr_contract_views.xml | 2 +- addons/hr_fleet/views/employee_views.xml | 2 +- .../hr_holidays/report/hr_leave_reports.xml | 2 +- addons/hr_holidays/views/hr_views.xml | 2 +- addons/hr_maintenance/views/hr_views.xml | 2 +- .../hr_presence/views/hr_employee_views.xml | 2 +- addons/hr_timesheet/views/hr_views.xml | 2 +- 9 files changed, 11 insertions(+), 33 deletions(-) diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index 97a05228ea2..e9068d785ec 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -46,7 +46,9 @@
- +
@@ -309,28 +311,6 @@ - - - Subordinate Hierarchy - ir.actions.act_window - hr.employee - ['|', ('id','in',active_ids), ('parent_id', 'in', active_ids)] - tree,form - - - - - - Archive/Restore - - - code - - if records: - records.toggle_active() - - - Employees hr.employee diff --git a/addons/hr_attendance/views/hr_employee_view.xml b/addons/hr_attendance/views/hr_employee_view.xml index 7603422ef4b..08892208390 100644 --- a/addons/hr_attendance/views/hr_employee_view.xml +++ b/addons/hr_attendance/views/hr_employee_view.xml @@ -7,7 +7,7 @@ 10 - +
- -