mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[11.0][MIG] mrp_production_putaway_strategy
This commit is contained in:
committed by
Joan Mateu Jordi
parent
410f72a811
commit
f08a4a1ad8
@@ -1,80 +0,0 @@
|
||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
|
||||
===============================
|
||||
MRP Production Putaway Strategy
|
||||
===============================
|
||||
|
||||
This module allows to apply putaway strategies to the products resulting from
|
||||
the manufacturing orders.
|
||||
|
||||
The finished products will be placed in the location designated by the putaway
|
||||
strategy (if they do not have another destination move), based on the
|
||||
finished products location that was defined in the manufacturing order.
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
To configure a putaway strategy follow the next steps:
|
||||
|
||||
#. Go to 'Inventory / Settings' and activate the option 'Advanced routing of
|
||||
products using rules'.
|
||||
#. Define a putaway strategy in the location zone where the finished products
|
||||
are supposed to be placed, and indicate the specific sub-location/bin
|
||||
where the products should be placed.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module proceed as follows:
|
||||
|
||||
#. Create a manufacturing order and indicate the product and the finished
|
||||
products location zone.
|
||||
#. Confirm the manufacturing order.
|
||||
#. You will notice that the finished products location has changed to the
|
||||
putaway location, and the chatter shows a message indicating that the
|
||||
putaway strategy was applied.
|
||||
|
||||
.. 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
|
||||
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/manufacture/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.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Images
|
||||
------
|
||||
|
||||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Jordi Ballester <jordi.ballester@eficent.com>
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
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.
|
||||
|
||||
To contribute to this module, please visit https://odoo-community.org.
|
||||
@@ -1,4 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "MRP Production Putaway Strategy",
|
||||
"summary": "Applies putaway strategies to manufacturing orders for "
|
||||
"finished products.",
|
||||
"version": "10.0.1.0.0",
|
||||
"version": "11.0.1.0.0",
|
||||
"author": "Eficent, "
|
||||
"Odoo Community Association (OCA)",
|
||||
"website": "http://www.eficent.com",
|
||||
"website": "https://github.com/OCA/manufacture",
|
||||
"category": "Manufacture",
|
||||
"depends": ["mrp"],
|
||||
"license": "AGPL-3",
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import mrp_production
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017-18 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2017-18 Eficent Business and IT Consulting Services S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, models, _
|
||||
@@ -15,7 +14,7 @@ class MrpProduction(models.Model):
|
||||
product = self.env['product.product'].browse(vals.get('product_id'))
|
||||
location_id = location_dest.get_putaway_strategy(product)
|
||||
if location_id:
|
||||
vals['location_dest_id'] = location_id
|
||||
vals['location_dest_id'] = location_id.id
|
||||
mo = super(MrpProduction, self).create(vals)
|
||||
if location_id:
|
||||
message = _(
|
||||
|
||||
9
mrp_production_putaway_strategy/readme/CONFIGURE.rst
Normal file
9
mrp_production_putaway_strategy/readme/CONFIGURE.rst
Normal file
@@ -0,0 +1,9 @@
|
||||
To configure a putaway strategy follow the next steps:
|
||||
|
||||
#. Go to 'Inventory / Settings'. Activate the option 'Multi-Step Routes' and
|
||||
save.
|
||||
#. Go again to 'Inventory / Settings' and press
|
||||
'Set Putaway Strategies on Locations'. Then define a putaway strategy in
|
||||
the location zone where the finished products are supposed to be placed,
|
||||
and indicate the specific sub-location/bin where the products should
|
||||
be placed.
|
||||
2
mrp_production_putaway_strategy/readme/CONTRIBUTORS.rst
Normal file
2
mrp_production_putaway_strategy/readme/CONTRIBUTORS.rst
Normal file
@@ -0,0 +1,2 @@
|
||||
* Jordi Ballester <jordi.ballester@eficent.com>
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
6
mrp_production_putaway_strategy/readme/DESCRIPTION.rst
Normal file
6
mrp_production_putaway_strategy/readme/DESCRIPTION.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
This module allows to apply putaway strategies to the products resulting from
|
||||
the manufacturing orders.
|
||||
|
||||
The finished products will be placed in the location designated by the putaway
|
||||
strategy (if they do not have another destination move), based on the
|
||||
finished products location that was defined in the manufacturing order.
|
||||
8
mrp_production_putaway_strategy/readme/USAGE.rst
Normal file
8
mrp_production_putaway_strategy/readme/USAGE.rst
Normal file
@@ -0,0 +1,8 @@
|
||||
To use this module proceed as follows:
|
||||
|
||||
#. Create a manufacturing order and indicate the product and the finished
|
||||
products location zone.
|
||||
#. Confirm the manufacturing order.
|
||||
#. You will notice that the finished products location has changed to the
|
||||
putaway location, and the chatter shows a message indicating that the
|
||||
putaway strategy was applied.
|
||||
@@ -1,5 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017 Eficent Business and IT Consulting Services S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import test_mrp_production
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2017-18 Eficent Business and IT Consulting Services S.L.
|
||||
# Copyright 2017-18 Eficent Business and IT Consulting Services S.L.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
Reference in New Issue
Block a user