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 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <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 portal = context.getPortalObject()\n
\n \n
try:\n try:\n
...@@ -61,7 +61,7 @@ except ValueError:\n ...@@ -61,7 +61,7 @@ except ValueError:\n
result = []\n result = []\n
\n \n
for i in range(count):\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 result.append(obj)\n
\n \n
return result\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