Commit 2d956a53 authored by Jérome Perrin's avatar Jérome Perrin

If corresponding slice is not defined on this model, it should not be fatal,...

If corresponding slice is not defined on this model, it should not be fatal, otherwise the matrixbox is not defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a96416a5
...@@ -80,7 +80,8 @@ def framing(cell, name):\n ...@@ -80,7 +80,8 @@ def framing(cell, name):\n
if cell is None:\n if cell is None:\n
# This error happens when the cell is not found in the parent model or any\n # This error happens when the cell is not found in the parent model or any\n
# inherited model.\n # inherited model.\n
raise ValueError, "PaySheetModelLine_asCellRange: cell is None for %s" % name\n return "%s (slice not defined)" % name\n
\n
return \'%s <= %s < %s\' % (cell.getQuantityRangeMin(),\n return \'%s <= %s < %s\' % (cell.getQuantityRangeMin(),\n
name,\n name,\n
cell.getQuantityRangeMax())\n cell.getQuantityRangeMax())\n
...@@ -214,6 +215,12 @@ else:\n ...@@ -214,6 +215,12 @@ else:\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>PaySheetModelLine_asCellRange</string> </value> <value> <string>PaySheetModelLine_asCellRange</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
308 309
\ No newline at end of file \ 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