[11.0][MIG] mrp_auto_assign

This commit is contained in:
Lois Rilo
2018-05-02 11:26:45 +02:00
committed by JordiMForgeFlow
parent 6e8ffdd0f6
commit ae98d6dda9
8 changed files with 5 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ To use this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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 Bug Tracker
=========== ===========

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models from . import models

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com> # @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -7,9 +6,9 @@
"name": "Mrp Auto Assign", "name": "Mrp Auto Assign",
"summary": "Make MO automatically reserve raw material moves at creation", "summary": "Make MO automatically reserve raw material moves at creation",
"author": "Akretion, Odoo Community Association (OCA)", "author": "Akretion, Odoo Community Association (OCA)",
"website": "https://akretion.com/", "website": "https://github.com/OCA/manufacture",
"category": "Manufacturing", "category": "Manufacturing",
"version": "10.0.1.0.0", "version": "11.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
"installable": True, "installable": True,

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import mrp_production from . import mrp_production

View File

@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com> # @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models from odoo import api, models
import logging
_logger = logging.getLogger(__name__)
class MrpProduction(models.Model): class MrpProduction(models.Model):

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_auto_assign from . import test_auto_assign

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved # Copyright (C) 2017 Akretion (http://www.akretion.com). All Rights Reserved
# @author Florian DA COSTA <florian.dacosta@akretion.com> # @author Florian DA COSTA <florian.dacosta@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
@@ -54,11 +53,8 @@ class TestMrpAutoAssign(TransactionCase):
product_qty.change_product_qty() product_qty.change_product_qty()
return product_qty return product_qty
def test_manufacture_with_forecast_stock(self): def test_01_manufacture_auto_assign(self):
""" """Test if Manufacturing order is auto-assigned."""
Test Manufacture mto with stock based on forecast quantity
and no link between sub assemblies MO's and Main MO raw material
"""
production = self.production_model.create({ production = self.production_model.create({
'product_id': self.product_manuf.id, 'product_id': self.product_manuf.id,