Commit 30df4cfd authored by Jérome Perrin's avatar Jérome Perrin

If the line has a description, don't show product description

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22713 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 793828ca
......@@ -79,14 +79,11 @@ def getFieldAsLineList(field):\n
return [x for x in text_list if x]\n
\n
def getProductAndLineDesc(prod_desc, line_desc):\n
if prod_desc and line_desc and \'\\n\' not in prod_desc and \'\\n\' not in line_desc:\n
return (\' - \'.join([getFieldAsString(prod_desc),\n
getFieldAsString(line_desc)]),)\n
line_list = []\n
if prod_desc:\n
line_list.extend(getFieldAsLineList(prod_desc))\n
if line_desc:\n
line_list.extend(getFieldAsLineList(line_desc))\n
elif prod_desc:\n
line_list.extend(getFieldAsLineList(prod_desc))\n
return line_list\n
\n
def getOneLineAddress(text, region):\n
......
382
\ No newline at end of file
383
\ No newline at end of file
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