Commit af2a1afb authored by Sebastien Robin's avatar Sebastien Robin

use target quantities


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05c76d67
...@@ -819,7 +819,7 @@ class ERP5ShopOrderConduit(ERP5Conduit): ...@@ -819,7 +819,7 @@ class ERP5ShopOrderConduit(ERP5Conduit):
opt_order_line_object.setQuantityUnit('unit') opt_order_line_object.setQuantityUnit('unit')
opt_order_line_object.setPrice(opt_prod_price) opt_order_line_object.setPrice(opt_prod_price)
# There is the same quantity of the base product # There is the same quantity of the base product
opt_order_line_object.setQuantity(kw['quantity']) opt_order_line_object.setTargetQuantity(kw['quantity'])
# Link the Order Line with the product # Link the Order Line with the product
opt_order_line_object.setResource("product/" + opt_prod_id) opt_order_line_object.setResource("product/" + opt_prod_id)
...@@ -836,7 +836,7 @@ class ERP5ShopOrderConduit(ERP5Conduit): ...@@ -836,7 +836,7 @@ class ERP5ShopOrderConduit(ERP5Conduit):
# break # break
# Migrate the line informations # Migrate the line informations
object.setQuantity(kw['quantity']) object.setTargetQuantity(kw['quantity'])
object.setDescription(kw['title']) object.setDescription(kw['title'])
object.setQuantityUnit('unit') object.setQuantityUnit('unit')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment