Commit 8f968b87 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: allow to archive Open Sale Order, even if the item is still valid

parent 3070f8af
...@@ -19,7 +19,7 @@ for open_order_line in open_sale_order.contentValues( ...@@ -19,7 +19,7 @@ for open_order_line in open_sale_order.contentValues(
if item is None: if item is None:
raise AssertionError('No matching item on: %s' % open_order_cell.getRelativeUrl()) raise AssertionError('No matching item on: %s' % open_order_cell.getRelativeUrl())
if item.getValidationState() not in ['invalidated', 'archived']: if check_unused_item and (item.getValidationState() not in ['invalidated', 'archived']):
# Do not touch if the item is not clean yet # Do not touch if the item is not clean yet
return return
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>check_unused_item=True</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
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