Commit c87fddb5 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_base: Include getSpecialisedAggregatedAmountList in Tax List of Delivery Data Dict

parent d00c7a79
......@@ -88,6 +88,9 @@ def getTaxLineList(order):
tax_line_list = [line for line in
order.contentValues(portal_type=order.getPortalTaxMovementTypeList())
if line.getTotalPrice()]
for line in order.Base_getSpecialisedAggregatedAmountList():
if line.getTradePhase() == "trade/tax":
tax_line_list.append(line)
tax_line_list.sort(key=lambda line:line.getTitle())
return tax_line_list
......
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