跳至内容
菜单
此问题已终结
4 回复
4597 查看

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'

形象
丢弃
最佳答案

Corrected here => \https://github.com/odoo/odoo/issues/16269

Now part of the Entreprise edition

形象
丢弃
最佳答案

I'm having the same bug, any solution ?

形象
丢弃
编写者 最佳答案

Yeah, but it should be, should it not? Suggested solution?

形象
丢弃
最佳答案

You use field The Model 'costs_hour' and this field not in 'mrp.workcenter' coulmns

形象
丢弃
相关帖文 回复 查看 活动
0
2月 18
4242
2
7月 25
4615
1
4月 25
1292
2
12月 24
7768
2
11月 24
28531