Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error while editing/creating product in sale module

By
Lan Do
on 4/22/16, 4:34 AM 193 views

 

I got this every time i try creating new product or clicking on existing product in sale module. Also in Sale module, i see that there is an "upgrade" button but it happens nothing when i click on it.

Traceback (most recent call last):
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 539, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 576, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 312, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 309, in checked_call
    return self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 805, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/8.0/openerp/http.py", line 405, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/8.0/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/product/product.py", line 743, in create
    self.create_variant_ids(cr, uid, [product_template_id], context=context)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/addons/product/product.py", line 685, in create_variant_ids
    for variant_id in tmpl_id.attribute_line_ids:
  File "/home/odoo/src/odoo/8.0/openerp/fields.py", line 834, in __get__
    self.determine_value(record)
  File "/home/odoo/src/odoo/8.0/openerp/fields.py", line 927, in determine_value
    record._prefetch_field(self)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/models.py", line 3242, in _prefetch_field
    result = records.read(list(fnames), load='_classic_write')
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/models.py", line 3179, in read
    self._read_from_database(stored, inherited)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/models.py", line 3366, in _read_from_database
    res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
  File "/home/odoo/src/odoo/8.0/openerp/osv/fields.py", line 775, in get
    records = comodel.search(domain, limit=self._limit)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/models.py", line 1646, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/odoo/src/odoo/8.0/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/models.py", line 4691, in _search
    cr.execute(query_str, where_clause_params)
  File "/home/odoo/src/odoo/8.0/openerp/sql_db.py", line 158, in wrapper
    return f(self, *args, **kwargs)
  File "/home/odoo/src/odoo/8.0/openerp/sql_db.py", line 234, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column product_attribute_line.product_tmpl_id does not exist
LINE 1: ...ute_line".id FROM "product_attribute_line" WHERE ("product_a...

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/22/16, 4:34 AM
Seen: 193 times
Last updated: 4/22/16, 4:44 AM