Commit 1740cc1a authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: stop checking specialise ==...

slapos_accounting: stop checking specialise == getPreferredAggregatedSaleTradeCondition. Check ledger instead
parent 0bcaf63d
......@@ -66,7 +66,7 @@
</item>
<item>
<key> <string>test_tales_expression</string> </key>
<value> <string>python: context.getSpecialise() == context.getPortalObject().portal_preferences.getPreferredAggregatedSaleTradeCondition()</string> </value>
<value> <string>python: context.getLedger() == \'automated\'</string> </value>
</item>
</dictionary>
</pickle>
......
invoice = context
specialise = context.getPortalObject().portal_preferences.getPreferredAggregatedSaleTradeCondition()
if invoice.getSpecialise() != specialise:
if invoice.getLedger() != 'automated':
return False
if len(invoice.getCausalityRelatedList(portal_type=['Cloud Contract', 'Subscription Request'])) > 0:
......
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