[FIX] sale: customized invoices

In Sale settings, enable "Personalize the sales orders and invoice
report..." and also "Show line subtotals with taxes included (B2C)".
Print an invoice ==> traceback.

This is because the field `price_total` doesn't exist on an invoice
line. Note that this field exists on a SO line.

opw-694438
This commit is contained in:
Nicolas Martinelli
2016-11-22 14:05:43 +01:00
parent 457a705bf0
commit b1dfce904a
@@ -15,7 +15,6 @@
<th t-if="display_discount" class="text-right" groups="sale.group_discount_per_so_line">Disc.(%)</th>
<th class="text-right">Taxes</th>
<th class="text-right" groups="sale.group_show_price_subtotal">Price</th>
<th class="text-right price_tax_included" groups="sale.group_show_price_total">Total Price</th>
</tr>
</thead>
<tbody class="invoice_tbody">
@@ -50,10 +49,6 @@
<span t-field="l.price_subtotal"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
<td class="text-right" groups="sale.group_show_price_total">
<span t-field="l.price_total"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</t>