mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
Merge pull request #374 from Eficent/11.0-fix-mrp_mto_with_stock-singleton-error
[11.0][FIX] mrp_mto_with_stock: Error singleton
This commit is contained in:
@@ -70,6 +70,7 @@ Contributors
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
* Florian da Costa <florian.dacosta@akretion.com>
|
||||
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||
* Isaac Gallart <igallart@puntsistemes.es>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"author": "John Walsh, Eficent, Odoo Community Association (OCA)",
|
||||
"website": "https://odoo-community.org/",
|
||||
"category": "Manufacturing",
|
||||
"version": "11.0.2.0.0",
|
||||
"version": "11.0.2.0.1",
|
||||
"license": "AGPL-3",
|
||||
"application": False,
|
||||
"installable": True,
|
||||
|
||||
@@ -28,7 +28,7 @@ class MrpProduction(models.Model):
|
||||
for production in self:
|
||||
warehouse = production.location_src_id.get_warehouse()
|
||||
mto_with_no_move_dest_id = warehouse.mrp_mto_mts_forecast_qty
|
||||
move_ids = copy.copy(self.move_raw_ids.ids)
|
||||
move_ids = copy.copy(production.move_raw_ids.ids)
|
||||
for move in move_obj.browse(move_ids):
|
||||
new_move = False
|
||||
qty_to_procure = 0.0
|
||||
|
||||
Reference in New Issue
Block a user