Commit d45504a3 authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_real_time_inventory_accounting: Do not rely on 'delivery' category (6a7d73f9).

parent ca202f89
......@@ -109,7 +109,7 @@ class InventoryAssetPriceAccountingRuleMovementGenerator(InvoiceTransactionRuleM
self,
input_movement)
if input_movement.getDeliveryValue().getPortalType().startswith('Purchase Packing List'):
if input_movement.getRootAppliedRule().getCausalityValue().getPortalType().startswith('Purchase'):
update_property_dict['source_section'] = input_movement.getDestinationSection()
return update_property_dict
......
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