mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] mrp_mto_with_stock: Error singleton
Loop second haven't production, it has self.
This commit is contained in:
@@ -69,6 +69,7 @@ Contributors
|
||||
* John Walsh <John.Walsh@interclean.com>
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
* Florian da Costa <florian.dacosta@akretion.com>
|
||||
* Isaac Gallart <igallart@puntsistemes.es>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"author": "John Walsh, Eficent, Odoo Community Association (OCA)",
|
||||
"website": "https://odoo-community.org/",
|
||||
"category": "Manufacturing",
|
||||
"version": "10.0.1.0.0",
|
||||
"version": "10.0.1.0.1",
|
||||
"license": "AGPL-3",
|
||||
"application": False,
|
||||
"installable": True,
|
||||
|
||||
@@ -29,7 +29,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
|
||||
for move in self.move_raw_ids:
|
||||
for move in production.move_raw_ids:
|
||||
if (move.state == 'confirmed' and move.location_id in
|
||||
move.product_id.mrp_mts_mto_location_ids and not
|
||||
mto_with_no_move_dest_id):
|
||||
|
||||
Reference in New Issue
Block a user