[FIX] mrp: traceback while printing MO Overview Report
Issue ===== A traceback occurs when we print MO Overview Report If the `Receipt` data has no decorator. Steps to reproduce ================= - Create a MO with 0 qty components Availability and set the Scheduled Date in future. - Make a purchase for the MO components with same day Order Deadline, and confirm PO. - Go to the MO Overview Report Click on the PRINT button and you will get the traceback. In this commit, we ignore setting a decorator when the receipt does not have a decorator. TaskID - 3300853 closes odoo/odoo#125009 X-original-commit: f03b22b62427ae8a4bd235c353eaa1ea0bf3ff16 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<t t-if="line.get('quantity_reserved', False) is not False" t-out="line['quantity_reserved']" t-options="{'widget': 'float', 'precision': line['uom_precision']}"/>
|
||||
</td>
|
||||
<td t-if="data['show_receipts']" t-attf-class="text-end {{ 'text-' + line['receipt']['decorator'] if line.get('receipt', {}).get('decorator') else '' }}">
|
||||
<span t-if="line.get('receipt')" t-attf-class="{{ 'text-' + line['receipt']['decorator'] }}" t-out="line['receipt']['display']"/>
|
||||
<span t-if="line.get('receipt')" t-attf-class="{{ 'text-' + line['receipt']['decorator'] if line.get('receipt', {}).get('decorator') else '' }}" t-out="line['receipt']['display']"/>
|
||||
</td>
|
||||
<td t-if="data['show_mo_costs']" t-attf-class="text-end {{ 'text-' + line['mo_cost_decorator'] if line.get('mo_cost_decorator') else '' }}">
|
||||
<t t-out="line['mo_cost']" t-options="{'widget': 'monetary', 'display_currency': line['currency']}"/>
|
||||
|
||||
Reference in New Issue
Block a user