Can any of you please see where I am going wrong here?
Advanced Properties | |
Related Field | |
Dependencies | x_studio_float_field_M5fIj,x_studio_project_value,x_studio_target_leads |
for record in self:
record['x_studio_float_field_M5fIj'] = record.x_studio_project_value / record.x_studio_target_leads
I am getting no error but if I try to change the numbers in the project value field I get an error and as it stands the calculation field shows 0.00 which it should not be
Traceback (most recent call last): File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/saas-15.2/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: : "unsupported operand type(s) for /: 'str' and 'str'" while evaluating "for record in self:\n record['x_studio_float_field_M5fIj'] = record.x_studio_project_value / record.x_studio_target_leads"