← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 582247] Re: Duplicating product error with c2cmulticost_base due to product margin module

 

as this is not an official addons, I close the bug.
I suggest you to assign to the C2C project or team and reopen the bug.

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
Duplicating product error with c2cmulticost_base due to product margin module
https://bugs.launchpad.net/bugs/582247
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Won't Fix

Bug description:
when duplicating a product I get the following error:

Environment Information : 
System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-22-generic
Operating System Version : #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : fr_FR.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 576, in execute
    res = service.execute(db, uid, object, method, *args)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 58, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/product_variant_multi/product_variant.py", line 191, in copy
    return super(product_product, self).copy(cr, uid, id, default, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/product/product.py", line 546, in copy
    context=context)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 3125, in copy
    data, trans_data = self.copy_data(cr, uid, id, default, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 3066, in copy_data
    data = self.read(cr, uid, [id], context=context)[0]
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2203, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 2327, in _read_flat
    res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/fields.py", line 650, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/product_margin/product_margin.py", line 104, in _product_margin
    cr.execute(sql)
  File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 77, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openerp-server/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column product.list_price does not exist
LINE 30:                         END)* product.list_price) as sale_ex...
                                       ^


disappear with getting rid of Product_margin module