Commit d6f08712 authored by Sebastien Robin's avatar Sebastien Robin

item: use temp delivery line to allow edition of quantities on create item fast input

parent 90897d05
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ERP5Type.Document import newTempBase\n
<value> <string>from Products.ERP5Type.Document import newTempDeliveryLine\n
portal = context.getPortalObject()\n
\n
try:\n
......@@ -61,7 +61,7 @@ except ValueError:\n
result = []\n
\n
for i in range(count):\n
obj = newTempBase(portal, id="tmp_item_%s" % i, uid="new_item_%s" % i)\n
obj = newTempDeliveryLine(portal, id="tmp_item_%s" % i, uid="new_item_%s" % i)\n
result.append(obj)\n
\n
return result\n
......
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