Commit e2e53544 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_invoicing: Invoice Transaction Simulation Rule can also expand from Pay...

erp5_invoicing: Invoice Transaction Simulation Rule can also expand from Pay Sheet Rule (which is basically an invoice)
parent 5bd3a15f
......@@ -7,7 +7,8 @@ if parent.getPortalType() != 'Applied Rule':
parent_rule = parent.getSpecialiseValue()
if parent_rule.getPortalType() not in ('Invoice Root Simulation Rule',
'Invoice Simulation Rule',
'Trade Model Simulation Rule'):
'Trade Model Simulation Rule',
'Pay Sheet Root Simulation Rule'):
return False
delivery_movement = movement.getDeliveryValue()
......
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