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