File "/home/odoo/src/enterprise/mrp_account_enterprise/reports/mrp_cost_structure.py", line 31, in get_lines total_cost_operations = self._compute_mo_operation_cost(currency_table, Workorders, total_cost_by_mo, operation_cost_by_mo, total_cost_operations, operations) File "/home/odoo/src/enterprise/mrp_workorder_hr_account/report/mrp_cost_structure.py", line 74, in _compute_mo_operation_cost total_cost_by_mo[mo_id] += cost + employee_total_cost TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'
Denna fråga har flaggats
1
Besvara
1453
Vyer
Hi,
The issue occurs when the value of employee_total_cost may be None, Addition is supported for data with same datatype, that's why the error occurs please check the value of 'employee_total_cost'
Hope it helps.
I'll read your posts more often, I swear. Please join me in playing the game https://pokemonshowdown.online that I just recently discovered if you have any free time. Thank you for giving this crucial knowledge.
Njuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig