diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml index 071a8f6dbd3c61c32509b2e43d7d78dc5c33afc0..c9f3dc28f14e88e824222a8b04b8e8409cccf51c 100644 --- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml +++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/SaleOrderLine_getQuantityUnitItemList.xml @@ -70,7 +70,7 @@ resource_title = request.form.get("field_listbox_title_%s" % context.getUid())\n resource_reference = request.form.get("field_listbox_reference_%s" % context.getUid())\n resource_value = context.getResourceValue()\n result = [(\'\', \'\')]\n -if (resource_title or resource_reference) and resource_value is not None:\n +if (resource_title or resource_reference) or resource_value is not None:\n quantity_unit_list = [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0))\n for x in resource_value.getQuantityUnitValueList()]\n # return the first quantity_unit item of resource\n diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision index 03c4ecbc9364bfb3480a824cafa2db3a0d236f71..ea934dee74ae0fce3ec3a9b5f4004b354cc01e47 100644 --- a/bt5/erp5_trade/bt/revision +++ b/bt5/erp5_trade/bt/revision @@ -1 +1 @@ -1044 \ No newline at end of file +1045 \ No newline at end of file