Hi, I am trying to compute prices on products from its Bom´s. I Have installed product_extended and set up work centers and routings. Clicking the Compute from Bom button on product view, I get this error. Anyone encountered this and made a fix?
Traceback (most recent call last):
Traceback (most recent call last):
File "/odoo10/odoo10-server/odoo/http.py", line 638, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/odoo10/odoo10-server/odoo/http.py", line 675, in dispatch result = self._call_function(**self.params) File "/odoo10/odoo10-server/odoo/http.py", line 331, in _call_function return checked_call(self.db, *args, **kwargs) File "/odoo10/odoo10-server/odoo/service/model.py", line 119, in wrapper return f(dbname, *args, **kwargs) File "/odoo10/odoo10-server/odoo/http.py", line 324, in checked_call result = self.endpoint(*a, **kw) File "/odoo10/odoo10-server/odoo/http.py", line 933, in __call__ return self.method(*args, **kw) File "/odoo10/odoo10-server/odoo/http.py", line 504, in response_wrap response = f(*args, **kw) File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 866, in call_button action = self._call_kw(model, method, args, {}) File "/odoo10/odoo10-server/addons/web/controllers/main.py", line 854, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/odoo10/odoo10-server/odoo/api.py", line 681, in call_kw return call_kw_multi(method, model, args, kwargs) File "/odoo10/odoo10-server/odoo/api.py", line 672, in call_kw_multi result = method(recs, *args, **kwargs) File "/odoo10/odoo10-server/addons/product_extended/models/product.py", line 15, in compute_price return template.product_variant_id.compute_price() File "/odoo10/odoo10-server/addons/product_extended/models/product.py", line 29, in compute_price price = product._calc_price(bom) File "/odoo10/odoo10-server/addons/product_extended/models/product.py", line 47, in _calc_price total_cost += (order.time_cycle_manual/60) * order.workcenter_id.costs_hourAttributeError: 'mrp.workcenter' object has no attribute 'costs_hour'