Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
4629 Visualizzazioni

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'

Avatar
Abbandona
Risposta migliore

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

Now part of the Entreprise edition

Avatar
Abbandona
Risposta migliore

I'm having the same bug, any solution ?

Avatar
Abbandona
Autore Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
feb 18
4300
2
lug 25
4683
1
apr 25
1317
2
dic 24
7804
2
nov 24
28592