← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 693730] [NEW] create a product with new supplier : bug

 

Public bug reported:

in web client, trunk (tested on firefox)

bug while you create a product and add it a supplier.

- create a new product 
- add a supplier in Suppliers tab
- Save
-> bug 

[2010-12-23 11:01:39,072][trunk_test2] ERROR:db.cursor:Programming error: ERREUR:  la colonne « company_id » est de type integer mais l'expression est de type text[]
LIGNE 1 : ...e_ok"=E'True',"product_manager"=NULL,"company_id"=ARRAY[E'1'...
                                                               ^
ASTUCE : Vous devez réécrire l'expression ou lui appliquer une transformation de type.
, in query update product_template set "warranty"=%s,"supply_method"=%s,"uos_id"=%s,"list_price"=%s,"weight"=%s,"standard_price"=%s,"mes_type"=%s,"uom_id"=%s,"description_purchase"=%s,"uos_coeff"=%s,"sale_ok"=%s,"purchase_ok"=%s,"product_manager"=%s,"company_id"=%s,"state"=%s,"loc_rack"=%s,"uom_po_id"=%s,"type"=%s,"description"=%s,"weight_net"=%s,"volume"=%s,"procure_method"=%s,"cost_method"=%s,"loc_row"=%s,"name"=%s,"sale_delay"=%s,"loc_case"=%s,"description_sale"=%s,"categ_id"=%s,"produce_delay"=%s,write_uid=%s,write_date=now() where id IN %s
[2010-12-23 11:01:39,073][trunk_test2] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 3545, in write
    self.pool.get(table).write(cr, user, nids, v, context)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 3502, in write
    'where id IN %s', upd1 + [sub_ids])
  File "/home/aline/openerp/trunk/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR:  la colonne « company_id » est de type integer mais l'expression est de type text[]
LIGNE 1 : ...e_ok"=E'True',"product_manager"=NULL,"company_id"=ARRAY[E'1'...
                                                               ^
ASTUCE : Vous devez réécrire l'expression ou lui appliquer une transformation de type.

** Affects: openobject-client-web
     Importance: High
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

** Changed in: openobject-client-web
   Importance: Undecided => High

** Changed in: openobject-client-web
       Status: New => Confirmed

** Changed in: openobject-client-web
     Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/693730

Title:
  create a product with new supplier : bug

Status in OpenObject Web Client:
  Confirmed

Bug description:
  in web client, trunk (tested on firefox)

bug while you create a product and add it a supplier. 

- create a new product 
- add a supplier in Suppliers tab
- Save
-> bug 

[2010-12-23 11:01:39,072][trunk_test2] ERROR:db.cursor:Programming error: ERREUR:  la colonne « company_id » est de type integer mais l'expression est de type text[]
LIGNE 1 : ...e_ok"=E'True',"product_manager"=NULL,"company_id"=ARRAY[E'1'...
                                                               ^
ASTUCE : Vous devez réécrire l'expression ou lui appliquer une transformation de type.
, in query update product_template set "warranty"=%s,"supply_method"=%s,"uos_id"=%s,"list_price"=%s,"weight"=%s,"standard_price"=%s,"mes_type"=%s,"uom_id"=%s,"description_purchase"=%s,"uos_coeff"=%s,"sale_ok"=%s,"purchase_ok"=%s,"product_manager"=%s,"company_id"=%s,"state"=%s,"loc_rack"=%s,"uom_po_id"=%s,"type"=%s,"description"=%s,"weight_net"=%s,"volume"=%s,"procure_method"=%s,"cost_method"=%s,"loc_row"=%s,"name"=%s,"sale_delay"=%s,"loc_case"=%s,"description_sale"=%s,"categ_id"=%s,"produce_delay"=%s,write_uid=%s,write_date=now() where id IN %s
[2010-12-23 11:01:39,073][trunk_test2] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 3545, in write
    self.pool.get(table).write(cr, user, nids, v, context)
  File "/home/aline/openerp/trunk/server/bin/osv/orm.py", line 3502, in write
    'where id IN %s', upd1 + [sub_ids])
  File "/home/aline/openerp/trunk/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR:  la colonne « company_id » est de type integer mais l'expression est de type text[]
LIGNE 1 : ...e_ok"=E'True',"product_manager"=NULL,"company_id"=ARRAY[E'1'...
                                                               ^
ASTUCE : Vous devez réécrire l'expression ou lui appliquer une transformation de type.





Follow ups

References