From 898a2d06a4837a0e0bf1d54ee1bd75e659abc8ec Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Tue, 17 Dec 2019 10:04:25 +0100 Subject: [PATCH] [13.0][MIG] stock_warehouse_calendar --- stock_warehouse_calendar/README.rst | 24 +++++----- stock_warehouse_calendar/__manifest__.py | 8 ++-- stock_warehouse_calendar/models/stock_rule.py | 6 +-- .../models/stock_warehouse.py | 2 +- .../readme/CONTRIBUTORS.rst | 4 +- .../static/description/index.html | 16 +++---- stock_warehouse_calendar/tests/__init__.py | 1 - .../tests/test_stock_warehouse_calendar.py | 46 ++++++++++++------- .../views/stock_warehouse_views.xml | 4 +- 9 files changed, 61 insertions(+), 50 deletions(-) diff --git a/stock_warehouse_calendar/README.rst b/stock_warehouse_calendar/README.rst index 41ebbc28f..ba0dbb58f 100644 --- a/stock_warehouse_calendar/README.rst +++ b/stock_warehouse_calendar/README.rst @@ -14,13 +14,13 @@ Stock Warehouse Calendar :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_warehouse_calendar + :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_warehouse_calendar :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_warehouse_calendar + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_warehouse_calendar :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/153/12.0 + :target: https://runbot.odoo-community.org/runbot/153/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -72,7 +72,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. @@ -82,13 +82,13 @@ Credits Authors ~~~~~~~ -* Eficent +* ForgeFlow Contributors ~~~~~~~~~~~~ -* Jordi Ballester -* Lois Rilo +* Jordi Ballester +* Lois Rilo Maintainers ~~~~~~~~~~~ @@ -103,14 +103,14 @@ 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. -.. |maintainer-jbeficent| image:: https://github.com/jbeficent.png?size=40px - :target: https://github.com/jbeficent - :alt: jbeficent +.. |maintainer-JordiBForgeFlow| image:: https://github.com/JordiBForgeFlow.png?size=40px + :target: https://github.com/JordiBForgeFlow + :alt: JordiBForgeFlow Current `maintainer `__: -|maintainer-jbeficent| +|maintainer-JordiBForgeFlow| -This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_warehouse_calendar/__manifest__.py b/stock_warehouse_calendar/__manifest__.py index 7e4d6e114..aa5fe1855 100644 --- a/stock_warehouse_calendar/__manifest__.py +++ b/stock_warehouse_calendar/__manifest__.py @@ -1,17 +1,17 @@ -# Copyright 2017 Eficent Business and IT Consulting Services, S.L. +# Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). { "name": "Stock Warehouse Calendar", "summary": "Adds a calendar to the Warehouse", - "version": "12.0.1.0.1", + "version": "13.0.1.0.0", "license": "LGPL-3", "website": "https://github.com/stock-logistics-warehouse", - "author": "Eficent, " "Odoo Community Association (OCA)", + "author": "ForgeFlow, " "Odoo Community Association (OCA)", "category": "Warehouse Management", "depends": ["stock", "resource"], "data": ["views/stock_warehouse_views.xml"], "installable": True, "development_status": "Beta", - "maintainers": ["jbeficent"], + "maintainers": ["JordiBForgeFlow"], } diff --git a/stock_warehouse_calendar/models/stock_rule.py b/stock_warehouse_calendar/models/stock_rule.py index 366febb3b..baf30d037 100644 --- a/stock_warehouse_calendar/models/stock_rule.py +++ b/stock_warehouse_calendar/models/stock_rule.py @@ -1,4 +1,4 @@ -# Copyright 2018-19 Eficent Business and IT Consulting Services, S.L. +# Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from datetime import datetime @@ -17,8 +17,8 @@ class StockRule(models.Model): location_id, name, origin, + company_id, values, - group_id, ): res = super(StockRule, self)._get_stock_move_values( product_id, @@ -27,8 +27,8 @@ class StockRule(models.Model): location_id, name, origin, + company_id, values, - group_id, ) warehouse = self.propagate_warehouse_id or self.warehouse_id if warehouse.calendar_id and self.delay: diff --git a/stock_warehouse_calendar/models/stock_warehouse.py b/stock_warehouse_calendar/models/stock_warehouse.py index fe85e0ac3..26318c2f6 100644 --- a/stock_warehouse_calendar/models/stock_warehouse.py +++ b/stock_warehouse_calendar/models/stock_warehouse.py @@ -1,4 +1,4 @@ -# Copyright 2018-19 Eficent Business and IT Consulting Services, S.L. +# Copyright 2018-19 ForgeFlow S.L. (https://www.forgeflow.com) # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). from datetime import datetime, timedelta diff --git a/stock_warehouse_calendar/readme/CONTRIBUTORS.rst b/stock_warehouse_calendar/readme/CONTRIBUTORS.rst index 58e705af2..8cc067b15 100644 --- a/stock_warehouse_calendar/readme/CONTRIBUTORS.rst +++ b/stock_warehouse_calendar/readme/CONTRIBUTORS.rst @@ -1,2 +1,2 @@ -* Jordi Ballester -* Lois Rilo +* Jordi Ballester +* Lois Rilo diff --git a/stock_warehouse_calendar/static/description/index.html b/stock_warehouse_calendar/static/description/index.html index 2b6df5b1d..da42a079a 100644 --- a/stock_warehouse_calendar/static/description/index.html +++ b/stock_warehouse_calendar/static/description/index.html @@ -3,7 +3,7 @@ - + Stock Warehouse Calendar