[FIX] sale: correctly show discount in order report
Public users do not belong to "feature" groups, so anonymous users downloading their SO report thanks to the access_token won't ever see the discount column as the user of the request doesn't belong to the "Discount" group. opw-3322583 closes odoo/odoo#129962 X-original-commit: 369d71b9fb013dc87c311da6fbad47692bfcbdaa Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
<th name="th_description" class="text-start">Description</th>
|
||||
<th name="th_quantity" class="text-end">Quantity</th>
|
||||
<th name="th_priceunit" class="text-end">Unit Price</th>
|
||||
<th name="th_discount" t-if="display_discount" class="text-end" groups="product.group_discount_per_so_line">
|
||||
<th name="th_discount" t-if="display_discount" class="text-end">
|
||||
<span>Disc.%</span>
|
||||
</th>
|
||||
<th name="th_taxes" class="text-end">Taxes</th>
|
||||
@@ -108,7 +108,7 @@
|
||||
<td name="td_priceunit" class="text-end">
|
||||
<span t-field="line.price_unit">3</span>
|
||||
</td>
|
||||
<td t-if="display_discount" class="text-end" groups="product.group_discount_per_so_line">
|
||||
<td t-if="display_discount" class="text-end">
|
||||
<span t-field="line.discount">-</span>
|
||||
</td>
|
||||
<td name="td_taxes" class="text-end">
|
||||
|
||||
Reference in New Issue
Block a user