diff --git a/mrp_auto_assign/README.rst b/mrp_auto_assign/README.rst index 0a40a6417..16a7e41fc 100644 --- a/mrp_auto_assign/README.rst +++ b/mrp_auto_assign/README.rst @@ -18,7 +18,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/129/10.0 + :target: https://runbot.odoo-community.org/runbot/129/11.0 Bug Tracker =========== diff --git a/mrp_auto_assign/__init__.py b/mrp_auto_assign/__init__.py index 5a87084f5..69f7babdf 100644 --- a/mrp_auto_assign/__init__.py +++ b/mrp_auto_assign/__init__.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved -# @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/mrp_auto_assign/__manifest__.py b/mrp_auto_assign/__manifest__.py index aab7dc886..9670f7e3c 100644 --- a/mrp_auto_assign/__manifest__.py +++ b/mrp_auto_assign/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -7,9 +6,9 @@ "name": "Mrp Auto Assign", "summary": "Make MO automatically reserve raw material moves at creation", "author": "Akretion, Odoo Community Association (OCA)", - "website": "https://akretion.com/", + "website": "https://github.com/OCA/manufacture", "category": "Manufacturing", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "license": "AGPL-3", "application": False, "installable": True, diff --git a/mrp_auto_assign/models/__init__.py b/mrp_auto_assign/models/__init__.py index 8aff8a46c..abc677d10 100644 --- a/mrp_auto_assign/models/__init__.py +++ b/mrp_auto_assign/models/__init__.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved -# @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import mrp_production diff --git a/mrp_auto_assign/models/mrp_production.py b/mrp_auto_assign/models/mrp_production.py index cd0134202..f3f32eca6 100644 --- a/mrp_auto_assign/models/mrp_production.py +++ b/mrp_auto_assign/models/mrp_production.py @@ -1,11 +1,8 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import api, models -import logging -_logger = logging.getLogger(__name__) class MrpProduction(models.Model): diff --git a/mrp_auto_assign/static/description/icon.png b/mrp_auto_assign/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_auto_assign/static/description/icon.png differ diff --git a/mrp_auto_assign/tests/__init__.py b/mrp_auto_assign/tests/__init__.py index 639926f7d..b85a432bc 100644 --- a/mrp_auto_assign/tests/__init__.py +++ b/mrp_auto_assign/tests/__init__.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved -# @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_auto_assign diff --git a/mrp_auto_assign/tests/test_auto_assign.py b/mrp_auto_assign/tests/test_auto_assign.py index 02c7453f2..9e3a8a0a5 100644 --- a/mrp_auto_assign/tests/test_auto_assign.py +++ b/mrp_auto_assign/tests/test_auto_assign.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # @author Florian DA COSTA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -54,11 +53,8 @@ class TestMrpAutoAssign(TransactionCase): product_qty.change_product_qty() return product_qty - def test_manufacture_with_forecast_stock(self): - """ - Test Manufacture mto with stock based on forecast quantity - and no link between sub assemblies MO's and Main MO raw material - """ + def test_01_manufacture_auto_assign(self): + """Test if Manufacturing order is auto-assigned.""" production = self.production_model.create({ 'product_id': self.product_manuf.id,