[FIX] mrp: traceback while value of variable 'value' is passed as False
While printing the "mo overview" report we get a traceback because in some cases decorator passes as False because of that we can not concatenate with the string value. Applying these changes will resolve this issue. sentry - 4199472992 closes odoo/odoo#128164 X-original-commit: 6dbec317e63db37f787bdc1a3758b2f20a18706f Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
committed by
Om Rabara
parent
3de6048314
commit
3e09bdff0c
@@ -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'] if line.get('receipt', {}).get('decorator') else '' }}" t-out="line['receipt']['display']"/>
|
||||
<span t-if="line.get('receipt')" t-attf-class="{{ 'text-' + line['receipt']['decorator'] if line['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