|
@ -32,7 +32,6 @@ class MrpProduction(models.Model): |
|
|
@api.multi |
|
|
@api.multi |
|
|
def create_mrp_from_pos(self, products): |
|
|
def create_mrp_from_pos(self, products): |
|
|
product_ids = [] |
|
|
product_ids = [] |
|
|
print "products", products |
|
|
|
|
|
if products: |
|
|
if products: |
|
|
for product in products: |
|
|
for product in products: |
|
|
flag = 1 |
|
|
flag = 1 |
|
@ -57,7 +56,6 @@ class MrpProduction(models.Model): |
|
|
bom = bom_temp[0] |
|
|
bom = bom_temp[0] |
|
|
else: |
|
|
else: |
|
|
bom = [] |
|
|
bom = [] |
|
|
print "This product variants have no exact BOM" |
|
|
|
|
|
if bom: |
|
|
if bom: |
|
|
vals = { |
|
|
vals = { |
|
|
'origin': 'POS-' + prod['pos_reference'], |
|
|
'origin': 'POS-' + prod['pos_reference'], |
|
|