From 1c97b75c977cd0cc3a7a6820a8e215e8d9788a71 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Thu, 2 Sep 2021 13:36:33 +0000 Subject: [PATCH] [IMP] mrp,stock: always show product in reception report labels Previously the reception report > "print labels" would only print the picking name (or SO if provided) + delivery address (if provided) when not for a MO. Label has been updated to include the product name. During this update a few other related improvements were made: - make the label based on stock.move (so extending is no longer needed in MRP) - formatting of label is improved so now address will be truncated instead of wrapping (and potentially losing lines at end of address) - line padding is reduced so we can fit more lines in the label - "Print Labels" button at source level will now be enabled when its corresponding "Assign All" button is pushed (previously only the "Print Label"s of each moves' line was enabled. Part of Task: 2632884 X-original-commit: 9774c1ab1d68cf095b64a82b56f100d747fc8a56 Part-of: odoo/odoo#79408 --- addons/mrp/__manifest__.py | 1 - addons/mrp/report/mrp_report_views_main.xml | 1 + addons/mrp/report/report_stock_reception.xml | 1 + .../static/src/js/report_stock_reception.js | 16 ---------------- addons/stock/report/report_stock_reception.xml | 13 ++++++------- addons/stock/report/stock_report_views.xml | 5 ++--- .../static/src/js/report_stock_reception.js | 18 ++++++------------ .../src/scss/report_stock_reception.scss | 4 ++++ 8 files changed, 20 insertions(+), 39 deletions(-) delete mode 100644 addons/mrp/static/src/js/report_stock_reception.js diff --git a/addons/mrp/__manifest__.py b/addons/mrp/__manifest__.py index 08e86466cf4..55d09e1c1de 100644 --- a/addons/mrp/__manifest__.py +++ b/addons/mrp/__manifest__.py @@ -76,7 +76,6 @@ 'mrp/static/src/js/mrp_document_kanban_view.js', 'mrp/static/src/js/mrp_should_consume.js', 'mrp/static/src/js/mrp_field_one2many_with_copy.js', - 'mrp/static/src/js/report_stock_reception.js', ], 'web.qunit_suite_tests': [ 'mrp/static/tests/**/*', diff --git a/addons/mrp/report/mrp_report_views_main.xml b/addons/mrp/report/mrp_report_views_main.xml index 5f947480abd..095d32f8834 100644 --- a/addons/mrp/report/mrp_report_views_main.xml +++ b/addons/mrp/report/mrp_report_views_main.xml @@ -40,6 +40,7 @@ report + Order Label mrp.production diff --git a/addons/mrp/report/report_stock_reception.xml b/addons/mrp/report/report_stock_reception.xml index 1ad4cc4dd47..38e423e05b4 100644 --- a/addons/mrp/report/report_stock_reception.xml +++ b/addons/mrp/report/report_stock_reception.xml @@ -1,6 +1,7 @@ +