This question has been flagged
1 Reply
275 Views

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'



Avatar
Discard
Best Answer

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.

Avatar
Discard

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.