When attempting to process a specific work order I am getting an error.
I am unsure how precision rounding is causing an issue with the work order/manufacturing order. It has been submitted to the Odoo bug team but since they have been quite busy for the last few weeks I thought I would check if anyone here has any tips.
Thanks in advance.
The error can be seen below.
Odoo Server Error Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/src/odoo/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise raise value File "/home/odoo/src/odoo/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/home/odoo/src/odoo/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1326, in call_button action = self._call_kw(model, method, args, kwargs) File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1314, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/home/odoo/src/odoo/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/home/odoo/src/odoo/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "/home/odoo/src/enterprise/mrp_workorder/models/mrp_workorder.py", line 583, in do_finish self.record_production() File "/home/odoo/src/enterprise/mrp_workorder/models/mrp_workorder.py", line 525, in record_production res = super(MrpProductionWorkcenterLine, self).record_production() File "/home/odoo/src/odoo/addons/mrp/models/mrp_workorder.py", line 412, in record_production self._update_finished_move() File "/home/odoo/src/odoo/addons/mrp/models/mrp_abstract_workorder.py", line 273, in _update_finished_move float_round(self.qty_producing, precision_rounding=rounding) File "/home/odoo/src/odoo/odoo/tools/float_utils.py", line 55, in float_round precision_rounding=precision_rounding) File "/home/odoo/src/odoo/odoo/tools/float_utils.py", line 30, in _float_check_precision "precision_rounding must be positive, got %s" % precision_rounding AssertionError: precision_rounding must be positive, got 0.0 |