← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 701906] [NEW] bug in purchase requisition

 

Public bug reported:

trunk, request for quotation

create a request for quotation as purchase manager (groups : employee,
partner manager, purchase user and purchase manager)or as purchase user
(groups : employee, partner manager, purchase user) => bug

TinyError: Traceback (most recent call last):
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 2917, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3037, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/fields.py", line 471, in get
    ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 1733, in search
    return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3966, in _search
    cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 129, in execute
    res = self._obj.execute(query, params)
ProgrammingError: column purchase_order_line.company_id does not exist
LINE 1: ...rchase_order_line.order_id in (22,8,2,1))))  OR  (purchase_o...

** Affects: openobject-addons
     Importance: High
     Assignee: OpenERP R&D Addons Team 2 (openerp-dev-addons2)
         Status: Confirmed

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
   Importance: Undecided => High

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 2 (openerp-dev-addons2)

** Description changed:

- trunk, purchase requisitions
+ trunk, request for quotation
  
- create a purchase requisition as purchase manager (groups : employee,
- partner manager, purchase user and purchase manager) => bug
+ create a request for quotation as purchase manager (groups : employee,
+ partner manager, purchase user and purchase manager)or as purchase user
+ (groups : employee, partner manager, purchase user) => bug
  
  TinyError: Traceback (most recent call last):
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/netsvc.py", line 489, in dispatch
-     result = ExportService.getService(service_name).dispatch(method, auth, params)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/service/web_services.py", line 599, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 122, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 176, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 167, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 2917, in read
-     result = self._read_flat(cr, user, select, fields, context, load)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3037, in _read_flat
-     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/fields.py", line 471, in get
-     ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 1733, in search
-     return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3966, in _search
-     cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 76, in wrapper
-     return f(self, *args, **kwargs)
-   File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 129, in execute
-     res = self._obj.execute(query, params)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/netsvc.py", line 489, in dispatch
+     result = ExportService.getService(service_name).dispatch(method, auth, params)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/service/web_services.py", line 599, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 122, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 176, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 167, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 2917, in read
+     result = self._read_flat(cr, user, select, fields, context, load)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3037, in _read_flat
+     res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/fields.py", line 471, in get
+     ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 1733, in search
+     return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3966, in _search
+     cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 76, in wrapper
+     return f(self, *args, **kwargs)
+   File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 129, in execute
+     res = self._obj.execute(query, params)
  ProgrammingError: column purchase_order_line.company_id does not exist
  LINE 1: ...rchase_order_line.order_id in (22,8,2,1))))  OR  (purchase_o...

-- 
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/701906

Title:
  bug in purchase requisition

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  trunk, request for quotation

  create a request for quotation as purchase manager (groups : employee,
  partner manager, purchase user and purchase manager)or as purchase
  user (groups : employee, partner manager, purchase user) => bug

  TinyError: Traceback (most recent call last):
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 2917, in read
      result = self._read_flat(cr, user, select, fields, context, load)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3037, in _read_flat
      res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/fields.py", line 471, in get
      ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 1733, in search
      return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/osv/orm.py", line 3966, in _search
      cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 76, in wrapper
      return f(self, *args, **kwargs)
    File "/home/amigrave/openerp/bazaar/server-trunk/bin/sql_db.py", line 129, in execute
      res = self._obj.execute(query, params)
  ProgrammingError: column purchase_order_line.company_id does not exist
  LINE 1: ...rchase_order_line.order_id in (22,8,2,1))))  OR  (purchase_o...





Follow ups

References