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'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati