[FIX] sale_management: fix print of SO

9671ccb509 was forward ported but the field options was renamed in saas-11.5

PR: #27293
task-1889346
This commit is contained in:
Sébastien Theys
2018-09-28 14:36:26 +02:00
parent 3c516eeb6d
commit f19ad9d7b7
@@ -3,7 +3,7 @@
<template id="report_saleorder_document_inherit_sale_management" inherit_id="sale.report_saleorder_document">
<xpath expr="//div[hasclass('page')]/p[@id='fiscal_position_remark']" position="after">
<div t-if="doc.sale_order_option_ids and doc.state in ['draft', 'sent']">
<t t-set="has_option_discount" t-value="any(doc.options.filtered(lambda o: o.discount != 0.0))" />
<t t-set="has_option_discount" t-value="any(doc.sale_order_option_ids.filtered(lambda o: o.discount != 0.0))" />
<h4>
<span>Optional Products</span>
</h4>