Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
4623 Vizualizări

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'

Imagine profil
Abandonează
Cel mai bun răspuns

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

Now part of the Entreprise edition

Imagine profil
Abandonează
Cel mai bun răspuns

I'm having the same bug, any solution ?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
feb. 18
4295
2
iul. 25
4670
1
apr. 25
1310
2
dec. 24
7798
2
nov. 24
28578