From ac70392152a13a0b23e2417aa7af33e10716e8d5 Mon Sep 17 00:00:00 2001 From: Sergio Teruel Date: Thu, 20 Feb 2020 19:35:44 +0100 Subject: [PATCH] [MIG] stock_picking_report_valued: Migration to v13.0 --- stock_picking_report_valued/README.rst | 11 ++++++----- stock_picking_report_valued/__manifest__.py | 4 ++-- stock_picking_report_valued/models/stock_move_line.py | 3 +-- stock_picking_report_valued/models/stock_picking.py | 6 ++---- stock_picking_report_valued/readme/CONTRIBUTORS.rst | 1 + .../report/stock_picking_report_valued.xml | 6 +++--- .../static/description/index.html | 7 ++++--- .../views/res_partner_view.xml | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/stock_picking_report_valued/README.rst b/stock_picking_report_valued/README.rst index 3705229..587b935 100644 --- a/stock_picking_report_valued/README.rst +++ b/stock_picking_report_valued/README.rst @@ -14,13 +14,13 @@ Valued Picking Report :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-reporting/tree/12.0/stock_picking_report_valued + :target: https://github.com/OCA/stock-logistics-reporting/tree/13.0/stock_picking_report_valued :alt: OCA/stock-logistics-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-12-0/stock-logistics-reporting-12-0-stock_picking_report_valued + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-13-0/stock-logistics-reporting-13-0-stock_picking_report_valued :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/151/12.0 + :target: https://runbot.odoo-community.org/runbot/151/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -63,7 +63,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -90,6 +90,7 @@ Contributors * David Vidal * Luis M. Ontalba * Ernesto Tejeda + * Sergio Teruel Maintainers ~~~~~~~~~~~ @@ -104,6 +105,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. +This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_report_valued/__manifest__.py b/stock_picking_report_valued/__manifest__.py index 4ff2683..484364e 100644 --- a/stock_picking_report_valued/__manifest__.py +++ b/stock_picking_report_valued/__manifest__.py @@ -8,8 +8,8 @@ { "name": "Valued Picking Report", "summary": "Adding Valued Picking on Delivery Slip report", - "version": "12.0.1.0.0", - "author": "Tecnativa, " "Odoo Community Association (OCA)", + "version": "13.0.1.0.0", + "author": "Tecnativa, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-reporting", "category": "Warehouse Management", "license": "AGPL-3", diff --git a/stock_picking_report_valued/models/stock_move_line.py b/stock_picking_report_valued/models/stock_move_line.py index 0fa7db6..aa51c2f 100644 --- a/stock_picking_report_valued/models/stock_move_line.py +++ b/stock_picking_report_valued/models/stock_move_line.py @@ -4,7 +4,7 @@ # Copyright 2016-2018 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import fields, models class StockMoveLine(models.Model): @@ -42,7 +42,6 @@ class StockMoveLine(models.Model): compute="_compute_sale_order_line_fields", string="Total", compute_sudo=True ) - @api.multi def _compute_sale_order_line_fields(self): """This is computed with sudo for avoiding problems if you don't have access to sales orders (stricter warehouse users, inter-company diff --git a/stock_picking_report_valued/models/stock_picking.py b/stock_picking_report_valued/models/stock_picking.py index 49d8c84..8466c15 100644 --- a/stock_picking_report_valued/models/stock_picking.py +++ b/stock_picking_report_valued/models/stock_picking.py @@ -4,7 +4,7 @@ # Copyright 2016 Luis M. Ontalba - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import fields, models class StockPicking(models.Model): @@ -29,7 +29,6 @@ class StockPicking(models.Model): compute="_compute_amount_all", string="Total", compute_sudo=True ) - @api.multi def _compute_amount_all(self): """This is computed with sudo for avoiding problems if you don't have access to sales orders (stricter warehouse users, inter-company @@ -38,7 +37,7 @@ class StockPicking(models.Model): for pick in self: round_curr = pick.sale_id.currency_id.round amount_tax = 0.0 - for tax_id, tax_group in pick.get_taxes_values().items(): + for tax_group in pick.get_taxes_values().values(): amount_tax += round_curr(tax_group["amount"]) amount_untaxed = sum(l.sale_price_subtotal for l in pick.move_line_ids) pick.update( @@ -49,7 +48,6 @@ class StockPicking(models.Model): } ) - @api.multi def get_taxes_values(self): tax_grouped = {} for line in self.move_line_ids: diff --git a/stock_picking_report_valued/readme/CONTRIBUTORS.rst b/stock_picking_report_valued/readme/CONTRIBUTORS.rst index dcbbe9f..e88945d 100644 --- a/stock_picking_report_valued/readme/CONTRIBUTORS.rst +++ b/stock_picking_report_valued/readme/CONTRIBUTORS.rst @@ -10,3 +10,4 @@ * David Vidal * Luis M. Ontalba * Ernesto Tejeda + * Sergio Teruel 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 449eb03..ef19b0d 100644 --- a/stock_picking_report_valued/report/stock_picking_report_valued.xml +++ b/stock_picking_report_valued/report/stock_picking_report_valued.xml @@ -9,7 +9,7 @@ Qty Reserved Unit Price - + Discount Subtotal @@ -25,7 +25,7 @@ - + - +
diff --git a/stock_picking_report_valued/static/description/index.html b/stock_picking_report_valued/static/description/index.html index 3c61765..149dfcf 100644 --- a/stock_picking_report_valued/static/description/index.html +++ b/stock_picking_report_valued/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runbot

Add amount information to Delivery Slip report. You can select at partner level if picking list report must be valued or not. If the picking is done it’s valued with quantity done, otherwise the picking @@ -416,7 +416,7 @@ customer.

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -441,6 +441,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • David Vidal
  • Luis M. Ontalba
  • Ernesto Tejeda
  • +
  • Sergio Teruel
  • @@ -452,7 +453,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/stock-logistics-reporting project on GitHub.

    +

    This module is part of the OCA/stock-logistics-reporting project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    diff --git a/stock_picking_report_valued/views/res_partner_view.xml b/stock_picking_report_valued/views/res_partner_view.xml index f2a5200..e716dc3 100644 --- a/stock_picking_report_valued/views/res_partner_view.xml +++ b/stock_picking_report_valued/views/res_partner_view.xml @@ -7,8 +7,8 @@ - + +
    Untaxed Amount