diff --git a/procurement_auto_create_group/README.rst b/procurement_auto_create_group/README.rst index d9422ff9c..691a28885 100644 --- a/procurement_auto_create_group/README.rst +++ b/procurement_auto_create_group/README.rst @@ -23,7 +23,7 @@ Procurement Auto Create Group :target: https://runbot.odoo-community.org/runbot/153/12.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module allows the system to propose automatically new procurement groups during the procurement run. @@ -76,13 +76,13 @@ Credits Authors ~~~~~~~ -* Eficent +* ForgeFlow Contributors ~~~~~~~~~~~~ -* Jordi Ballester -* Lois Rilo +* Jordi Ballester +* Lois Rilo Maintainers ~~~~~~~~~~~ diff --git a/procurement_auto_create_group/__manifest__.py b/procurement_auto_create_group/__manifest__.py index 210e1ce35..b920f9b0b 100644 --- a/procurement_auto_create_group/__manifest__.py +++ b/procurement_auto_create_group/__manifest__.py @@ -1,13 +1,13 @@ -# Copyright 2017 Eficent Business and IT Consulting Services, S.L. +# Copyright 2017-2020 ForgeFlow, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Procurement Auto Create Group", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "development_status": "Production/Stable", "license": "AGPL-3", "summary": "Allows to configure the system to propose automatically new " "procurement groups during the procurement run.", - "author": "Eficent," "Odoo Community Association (OCA)", + "author": "ForgeFlow," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "category": "Warehouse", "depends": ["stock"], diff --git a/procurement_auto_create_group/models/procurement_group.py b/procurement_auto_create_group/models/procurement_group.py index ce9ef72f3..57e9f957d 100644 --- a/procurement_auto_create_group/models/procurement_group.py +++ b/procurement_auto_create_group/models/procurement_group.py @@ -1,4 +1,4 @@ -# Copyright 2017 Eficent Business and IT Consulting Services, S.L. +# Copyright 2017-2020 ForgeFlow, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, models diff --git a/procurement_auto_create_group/models/stock_rule.py b/procurement_auto_create_group/models/stock_rule.py index d974912f5..1bea0e51c 100644 --- a/procurement_auto_create_group/models/stock_rule.py +++ b/procurement_auto_create_group/models/stock_rule.py @@ -1,4 +1,4 @@ -# Copyright 2017 Eficent Business and IT Consulting Services, S.L. +# Copyright 2017-2020 ForgeFlow, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models diff --git a/procurement_auto_create_group/readme/CONTRIBUTORS.rst b/procurement_auto_create_group/readme/CONTRIBUTORS.rst index 6df2be2f8..297b31618 100644 --- a/procurement_auto_create_group/readme/CONTRIBUTORS.rst +++ b/procurement_auto_create_group/readme/CONTRIBUTORS.rst @@ -1,2 +1,3 @@ -* Jordi Ballester -* Lois Rilo +* Jordi Ballester +* Lois Rilo +* Héctor Villarreal Ortega diff --git a/procurement_auto_create_group/static/description/index.html b/procurement_auto_create_group/static/description/index.html index 3d7515ec9..45f9ed5a6 100644 --- a/procurement_auto_create_group/static/description/index.html +++ b/procurement_auto_create_group/static/description/index.html @@ -424,14 +424,14 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Authors

    -
  • Eficent
  • +
  • ForgeFlow
diff --git a/procurement_auto_create_group/tests/test_auto_create.py b/procurement_auto_create_group/tests/test_auto_create.py index 8b751f41b..4f8c1d9d2 100644 --- a/procurement_auto_create_group/tests/test_auto_create.py +++ b/procurement_auto_create_group/tests/test_auto_create.py @@ -1,4 +1,4 @@ -# Copyright 2017 Eficent Business and IT Consulting Services S.L. +# Copyright 2017-2020 ForgeFlow, S.L. # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import TransactionCase @@ -65,7 +65,18 @@ class TestProcurementAutoCreateGroup(TransactionCase): def _procure(self, product): values = {} self.group_obj.run( - product, 5.0, product.uom_id, self.location, "TEST", "odoo tests", values, + [ + self.env["procurement.group"].Procurement( + product, + 5.0, + product.uom_id, + self.location, + "TEST", + "odoo tests", + self.env.company, + values, + ) + ] ) return True