From df92eee79d2f74a337a5e180655570abbd298e82 Mon Sep 17 00:00:00 2001 From: chien Date: Fri, 12 Jan 2024 12:18:35 +0700 Subject: [PATCH] [MIG] stock_picking_report_valued: Migration to 17.0 --- stock_picking_report_valued/README.rst | 14 ++++++- stock_picking_report_valued/__manifest__.py | 2 +- .../models/stock_move_line.py | 2 +- .../readme/CONFIGURE.md | 2 +- .../readme/CONTRIBUTORS.md | 2 + stock_picking_report_valued/readme/ROADMAP.md | 5 +++ .../report/stock_picking_report_valued.xml | 42 ++++++------------- .../static/description/index.html | 35 ++++++++++------ .../tests/test_stock_picking_valued.py | 4 +- 9 files changed, 60 insertions(+), 48 deletions(-) diff --git a/stock_picking_report_valued/README.rst b/stock_picking_report_valued/README.rst index 5aa69d1..5ceb38b 100644 --- a/stock_picking_report_valued/README.rst +++ b/stock_picking_report_valued/README.rst @@ -41,7 +41,8 @@ valued with reserved quantity. Configuration ============= -1. Go to *Customers > (select one of your choice) > Sales & Purchases*. +1. Go to *Sales > Orders > Customers > (select one of your choice) > + Sales & Purchases*. 2. Set *Valued picking* field on. Usage @@ -60,6 +61,13 @@ Known issues / Roadmap - If the picking is not reserved, values aren't computed. +Changelog +========= + +This module includes the features from the module +*stock_picking_report_valued_delivery*: +https://github.com/OCA/stock-logistics-reporting/pull/285 + Bug Tracker =========== @@ -107,6 +115,10 @@ Contributors - Miguel Gandia +- `Trobz `__: + + - Nguyen Minh Chien + Maintainers ----------- diff --git a/stock_picking_report_valued/__manifest__.py b/stock_picking_report_valued/__manifest__.py index 0b18232..ecaa50e 100644 --- a/stock_picking_report_valued/__manifest__.py +++ b/stock_picking_report_valued/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Valued Picking Report", "summary": "Adding Valued Picking on Delivery Slip report", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-reporting", "category": "Warehouse Management", diff --git a/stock_picking_report_valued/models/stock_move_line.py b/stock_picking_report_valued/models/stock_move_line.py index 0540c0f..ab16e75 100644 --- a/stock_picking_report_valued/models/stock_move_line.py +++ b/stock_picking_report_valued/models/stock_move_line.py @@ -45,7 +45,7 @@ class StockMoveLine(models.Model): ) def _get_report_valued_quantity(self): - return self.qty_done or self.reserved_qty + return self.quantity or self.reserved_qty def _compute_sale_order_line_fields(self): """This is computed with sudo for avoiding problems if you don't have diff --git a/stock_picking_report_valued/readme/CONFIGURE.md b/stock_picking_report_valued/readme/CONFIGURE.md index cbb0b08..fa9ebf3 100644 --- a/stock_picking_report_valued/readme/CONFIGURE.md +++ b/stock_picking_report_valued/readme/CONFIGURE.md @@ -1,3 +1,3 @@ -1. Go to *Customers \> (select one of your choice) \> Sales & +1. Go to *Sales \> Orders \> Customers \> (select one of your choice) \> Sales & Purchases*. 2. Set *Valued picking* field on. diff --git a/stock_picking_report_valued/readme/CONTRIBUTORS.md b/stock_picking_report_valued/readme/CONTRIBUTORS.md index 814bbf6..cc6209a 100644 --- a/stock_picking_report_valued/readme/CONTRIBUTORS.md +++ b/stock_picking_report_valued/readme/CONTRIBUTORS.md @@ -14,3 +14,5 @@ - Aritz Olea \<\> - [Studio73](https://www.studio73.es): - Miguel Gandia \<\> +- [Trobz](https://trobz.com): + - Nguyen Minh Chien \<\> diff --git a/stock_picking_report_valued/readme/ROADMAP.md b/stock_picking_report_valued/readme/ROADMAP.md index 0d45cbd..655fd24 100644 --- a/stock_picking_report_valued/readme/ROADMAP.md +++ b/stock_picking_report_valued/readme/ROADMAP.md @@ -1 +1,6 @@ - If the picking is not reserved, values aren't computed. + +Changelog +========= + +This module includes the features from the module *stock_picking_report_valued_delivery*: https://github.com/OCA/stock-logistics-reporting/pull/285 diff --git a/stock_picking_report_valued/report/stock_picking_report_valued.xml b/stock_picking_report_valued/report/stock_picking_report_valued.xml index 7fa49a9..dfdc238 100644 --- a/stock_picking_report_valued/report/stock_picking_report_valued.xml +++ b/stock_picking_report_valued/report/stock_picking_report_valued.xml @@ -1,18 +1,16 @@ -