diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.xml index 0a2c4b17154401ee3d996d48f6964739d03cab56..e8f7ab229766f1c85ec8711730757300744e12f4 100644 --- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.xml +++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item_trade/DeliveryLine_createItemList.xml @@ -89,15 +89,14 @@ for line in kw.get(\'listbox\'):\n mapping={\'line_id\': line[\'listbox_key\']})\n return context.Base_redirect(form_id,\n keep_items=dict(portal_status_message=msg))\n - else:\n - module = context.getDefaultModule(item_portal_type)\n - item = module.newContent(portal_type=item_portal_type,\n - title=line[\'title\'],\n - reference=item_reference,\n - quantity=line.get(\'quantity\'),\n - quantity_unit=context.getQuantityUnit(),\n - **item_property_dict)\n - \n + module = context.getDefaultModule(item_portal_type)\n + item = module.newContent(portal_type=item_portal_type,\n + title=line[\'title\'],\n + reference=item_reference,\n + quantity=line.get(\'quantity\'),\n + quantity_unit=context.getQuantityUnit(),\n + **item_property_dict)\n +\n line_variation_category_list = []\n for variation in (\n line.get(\'line_variation_category_list\'),\n @@ -122,7 +121,6 @@ for line in kw.get(\'listbox\'):\n variation_category_list.append(variation)\n context.setVariationCategoryList(variation_category_list)\n movement_to_update = context.newCell(base_id=\'movement\',\n - portal_type=cell_portal_type,\n *line_variation_category_list)\n movement_to_update.edit(mapped_value_property_list=(\'quantity\', \'price\'),\n variation_category_list=line_variation_category_list)\n diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision index 8bc94cb760413754f1d334f731fb0318bd2cc365..c6876402f55fcc4178060d4f0b5d16a8e23a5c96 100644 --- a/bt5/erp5_item/bt/revision +++ b/bt5/erp5_item/bt/revision @@ -1 +1 @@ -276 \ No newline at end of file +278 \ No newline at end of file