From 2d7fe29135064e925397f444357ea9aba7338aa6 Mon Sep 17 00:00:00 2001 From: dsolanki Date: Tue, 9 May 2023 10:05:38 +0530 Subject: [PATCH] [MIG] stock_card_report: Migration to 16.0 --- stock_card_report/README.rst | 5 +++-- stock_card_report/readme/CONTRIBUTORS.rst | 1 + stock_card_report/reports/stock_card_report.py | 6 +++--- stock_card_report/static/description/index.html | 4 ++-- stock_card_report/tests/test_stock_card_report.py | 4 +++- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/stock_card_report/README.rst b/stock_card_report/README.rst index e2c22f7..e86c91c 100644 --- a/stock_card_report/README.rst +++ b/stock_card_report/README.rst @@ -14,7 +14,7 @@ Stock Card 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/15.0/stock_card_report + :target: https://github.com/OCA/stock-logistics-reporting/tree/16.0/stock_card_report :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-15-0/stock-logistics-reporting-15-0-stock_card_report @@ -65,6 +65,7 @@ Contributors * Pimolnat Suntian * Prapassorn Sornkaew * Emad Shaaban +* Dhara Solanki Maintainers ~~~~~~~~~~~ @@ -79,6 +80,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_card_report/readme/CONTRIBUTORS.rst b/stock_card_report/readme/CONTRIBUTORS.rst index ce4c95f..81316bf 100644 --- a/stock_card_report/readme/CONTRIBUTORS.rst +++ b/stock_card_report/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * Pimolnat Suntian * Prapassorn Sornkaew * Emad Shaaban +* Dhara Solanki diff --git a/stock_card_report/reports/stock_card_report.py b/stock_card_report/reports/stock_card_report.py index 64ff695..3eda0e4 100644 --- a/stock_card_report/reports/stock_card_report.py +++ b/stock_card_report/reports/stock_card_report.py @@ -107,9 +107,9 @@ class StockCardReport(models.TransientModel): report = self.browse(self._context.get("active_id")) if report: rcontext["o"] = report - result["html"] = self.env.ref( - "stock_card_report.report_stock_card_report_html" - )._render(rcontext) + result["html"] = self.env["ir.qweb"]._render( + "stock_card_report.report_stock_card_report_html", rcontext + ) return result @api.model diff --git a/stock_card_report/static/description/index.html b/stock_card_report/static/description/index.html index 9b32048..90db7f8 100644 --- a/stock_card_report/static/description/index.html +++ b/stock_card_report/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

Stock Card Report is the report that display movement (in/out) of a product in a specified location and date range.

Table of contents

@@ -422,7 +422,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_card_report/tests/test_stock_card_report.py b/stock_card_report/tests/test_stock_card_report.py index 02fa0c6..4f41c81 100644 --- a/stock_card_report/tests/test_stock_card_report.py +++ b/stock_card_report/tests/test_stock_card_report.py @@ -5,12 +5,13 @@ import logging import time from datetime import date -from odoo.tests import common +from odoo.tests import common, tagged from odoo.tools import test_reports _logger = logging.getLogger(__name__) +@tagged("post_install", "-at_install") class TestStockCard(common.TransactionCase): def setUp(self): super().setUp() @@ -124,6 +125,7 @@ class TestStockCard(common.TransactionCase): } +@tagged("post_install", "-at_install") class TestStockCardReport(common.TransactionCase): def setUp(self): super().setUp()