Menu

Error adding products

2014-10-16
2014-11-05
  • Odoo8Consultant

    Odoo8Consultant - 2014-10-16

    Clean install of just PLM... We are using SolidWorks 2014... link is fine and we can even push products into Odoo. However, now when we add a product to Odoo we receive the error below.

    Any suggestions? This looks like a great package and if you have some consulting time you could provide to us to fine tune the installation... we are interested.

    OpenERP Server Error
    Traceback (most recent call last):
    File "/opt/odoo/odoo/openerp/http.py", line 500, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File "/opt/odoo/odoo/openerp/http.py", line 517, in dispatch
    result = self._call_function(self.params)
    File "/opt/odoo/odoo/openerp/http.py", line 283, in _call_function
    return checked_call(self.db, *args,
    kwargs)
    File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, args, kwargs)
    File "/opt/odoo/odoo/openerp/http.py", line 280, in checked_call
    return self.endpoint(*a,
    kw)
    File "/opt/odoo/odoo/openerp/http.py", line 733, in call
    return self.method(
    args, kw)
    File "/opt/odoo/odoo/openerp/http.py", line 376, in response_wrap
    response = f(*args,
    kw)
    File "/opt/odoo/odoo/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
    File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, args, kwargs)
    File "/opt/odoo/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args,
    kwargs)
    File "/opt/odoo/odoo/addons/product/product.py", line 685, in create
    self.create_variant_ids(cr, uid, [product_template_id], context=context)
    File "/opt/odoo/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self,
    args, kwargs)
    File "/opt/odoo/odoo/addons/product/product.py", line 668, in create_variant_ids
    id = product_obj.create(cr, uid, values, context=ctx)
    File "/opt/odoo/odoo/openerp/api.py", line 237, in wrapper
    return old_api(self, *args,
    kwargs)
    File "/opt/odoo/odoo/addons/plm/install/plm_component.py", line 507, in create
    existingIDs=self.search(cr, uid, [('name','=',vals['name'])], order = 'engineering_revision', context=context)
    KeyError: 'name'

     
  • Fabio Colognesi

    Fabio Colognesi - 2014-10-17

    Hello Greg,
    I suppose we can improve quality of our module... It seems you tried to create a new Product without assigning name (field isn't marked as mandatory, it's strange), In our code there was a little bug that try to evaluate if a Product exists with that name... So we have corrected server code. You can find it update on Odoo Apps, we will provide on SourceForge at the end of the week.
    Thanks a lot for your contribute.

    Please, contact us at sales@omniasolutions.eu to have a free quotation for our support. Our business model is based on consultancy and usually we provide training, support, customizations (User Manual is part of training).

    Regards
    Fabio

     
  • pieter-jan

    pieter-jan - 2014-11-04

    Hi Fabio,

    I was able to reproduce the same error by adding variants to a product that was generated by odooPLM. To be more specific:

    I created a variant "include option A or B" and added 2 possible variants "option A" and "option B" that were linked on their turn to a related BOM of the main product (with the idea to relate the bom to the option, and enabling the BOM with a specific variant selection).

    Regards,
    Pieter-Jan

    Regards,
    Pieter-Jan

     
  • Fabio Colognesi

    Fabio Colognesi - 2014-11-05

    Hello Pieter-Jan,
    Sorry, we didn't update SourceForge repository yet. You can find our server updated, on Odoo portal : "https://www.odoo.com/apps/trunk/plm/"

    Please, let us know if it solves this issue.
    Regards
    Fabio

     

Log in to post a comment.