Commit ea68362a authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_production_planning: set default value to 0

parent cb0c489d
......@@ -275,7 +275,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: "error" if (cell and (not cell.getSpecialise() or (cell.getSpecialiseValue().getQuantity() != cell.getQuantity()))) else ""</string> </value>
<value> <string>python: "error" if (cell and ((not cell.getSpecialise() and cell.getQuantity()) or (cell.getSpecialiseValue().getQuantity() != cell.getQuantity()))) else ""</string> </value>
</item>
</dictionary>
</pickle>
......@@ -288,7 +288,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: cell.getQuantity() or 0 if cell else \'\'</string> </value>
<value> <string>python: cell.getQuantity() or 0 if cell else 0</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -18,7 +18,7 @@ for cell_keys in production_planning.getCellKeys():
production_order_line,
"edit_action",
comment='Modified by production planning %s' % production_planning.getRelativeUrl())
else:
elif cell.getQuantity():
# It's a new cell, create producton order&production order line
[resource_uid,start_date] = cell_keys
# Check if it existes a production order for the date
......
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