← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 807366] [NEW] Invoice Creation is not possible from SO.

 

Public bug reported:

When I try to create invoice from created sale order I have faced
following traceback :

Environment Information :
System : Linux-2.6.32-21-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-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.1-dev
Last revision No. & ID :1917 launchpad_translations_on_behalf_of_openerp-20110707044105-p558ofqyib5v0pwd
Traceback (most recent call last):
  File "/home/vra/workspace/trunk/server/openerp/netsvc.py", line 440, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/vra/workspace/trunk/server/openerp/service/web_services.py", line 588, in dispatch
    res = fn(db, uid, *params)
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/vra/workspace/trunk/addons/sale/sale.py", line 444, in manual_invoice
    wf_service.trg_validate(uid, 'sale.order', id, 'manual_invoice', cr)
  File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_service.py", line 80, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/vra/workspace/trunk/server/openerp/workflow/instance.py", line 48, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 61, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 174, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 182, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 41, in create
    process(cr, res, ident, stack=stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 53, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 126, in _execute
    id_new = wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/home/vra/workspace/trunk/server/openerp/tools/safe_eval.py", line 285, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 322, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/vra/workspace/trunk/addons/sale/sale.py", line 478, in action_invoice_create
    set_company = tools.get_and_sort_by_field(cr, uid, obj=self, ids=ids, field='company_id', context=context)
AttributeError: 'module' object has no attribute 'get_and_sort_by_field'

Rucha is already mention this problem in following bug:

https://bugs.launchpad.net/openobject-addons/+bug/807350

So this also blocks to create Invoice from SO.

Thanks.

** Affects: openobject-addons
     Importance: Medium
     Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3)
         Status: Confirmed

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

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

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

** Description changed:

- When I try to create invoice from creates sale order I have faced
+ When I try to create invoice from created sale order I have faced
  following traceback :
  
- 
- Environment Information : 
+ Environment Information :
  System : Linux-2.6.32-21-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-21-generic
  Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
  Operating System Architecture : 32bit
  Operating System Locale : en_IN.ISO8859-1
  Python Version : 2.6.5
  OpenERP-Client Version : 6.1-dev
  Last revision No. & ID :1917 launchpad_translations_on_behalf_of_openerp-20110707044105-p558ofqyib5v0pwd
  Traceback (most recent call last):
-   File "/home/vra/workspace/trunk/server/openerp/netsvc.py", line 440, in dispatch
-     result = ExportService.getService(service_name).dispatch(method, auth, params)
-   File "/home/vra/workspace/trunk/server/openerp/service/web_services.py", line 588, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/vra/workspace/trunk/addons/sale/sale.py", line 444, in manual_invoice
-     wf_service.trg_validate(uid, 'sale.order', id, 'manual_invoice', cr)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_service.py", line 80, in trg_validate
-     res2 = instance.validate(cr, id, ident, signal)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/instance.py", line 48, in validate
-     workitem.process(cr, witem, ident, signal, force_running, stack=stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 61, in process
-     ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 174, in _split_test
-     _join_test(cr, t[0], t[1], ident, stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 182, in _join_test
-     create(cr,[activity], inst_id, ident, stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 41, in create
-     process(cr, res, ident, stack=stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 53, in process
-     result = _execute(cr, workitem, activity, ident, stack)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 126, in _execute
-     id_new = wkf_expr.execute(cr, ident, workitem, activity)
-   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 68, in execute
-     return _eval_expr(cr, ident, workitem, activity['action'])
-   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
-     ret = eval(line, env, nocopy=True)
-   File "/home/vra/workspace/trunk/server/openerp/tools/safe_eval.py", line 285, in safe_eval
-     return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
-   File "", line 1, in <module>
-   File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 322, in <lambda>
-     return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
-   File "/home/vra/workspace/trunk/addons/sale/sale.py", line 478, in action_invoice_create
-     set_company = tools.get_and_sort_by_field(cr, uid, obj=self, ids=ids, field='company_id', context=context)
+   File "/home/vra/workspace/trunk/server/openerp/netsvc.py", line 440, in dispatch
+     result = ExportService.getService(service_name).dispatch(method, auth, params)
+   File "/home/vra/workspace/trunk/server/openerp/service/web_services.py", line 588, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/vra/workspace/trunk/addons/sale/sale.py", line 444, in manual_invoice
+     wf_service.trg_validate(uid, 'sale.order', id, 'manual_invoice', cr)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_service.py", line 80, in trg_validate
+     res2 = instance.validate(cr, id, ident, signal)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/instance.py", line 48, in validate
+     workitem.process(cr, witem, ident, signal, force_running, stack=stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 61, in process
+     ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 174, in _split_test
+     _join_test(cr, t[0], t[1], ident, stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 182, in _join_test
+     create(cr,[activity], inst_id, ident, stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 41, in create
+     process(cr, res, ident, stack=stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 53, in process
+     result = _execute(cr, workitem, activity, ident, stack)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 126, in _execute
+     id_new = wkf_expr.execute(cr, ident, workitem, activity)
+   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 68, in execute
+     return _eval_expr(cr, ident, workitem, activity['action'])
+   File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
+     ret = eval(line, env, nocopy=True)
+   File "/home/vra/workspace/trunk/server/openerp/tools/safe_eval.py", line 285, in safe_eval
+     return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
+   File "", line 1, in <module>
+   File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 322, in <lambda>
+     return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
+   File "/home/vra/workspace/trunk/addons/sale/sale.py", line 478, in action_invoice_create
+     set_company = tools.get_and_sort_by_field(cr, uid, obj=self, ids=ids, field='company_id', context=context)
  AttributeError: 'module' object has no attribute 'get_and_sort_by_field'
  
  Rucha is already mention this problem in following bug:
  
  https://bugs.launchpad.net/openobject-addons/+bug/807350
  
  So this also blocks to create Invoice from SO.
  
  Thanks.

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

Title:
  Invoice Creation is not possible from SO.

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  When I try to create invoice from created sale order I have faced
  following traceback :

  Environment Information :
  System : Linux-2.6.32-21-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-21-generic
  Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
  Operating System Architecture : 32bit
  Operating System Locale : en_IN.ISO8859-1
  Python Version : 2.6.5
  OpenERP-Client Version : 6.1-dev
  Last revision No. & ID :1917 launchpad_translations_on_behalf_of_openerp-20110707044105-p558ofqyib5v0pwd
  Traceback (most recent call last):
    File "/home/vra/workspace/trunk/server/openerp/netsvc.py", line 440, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/vra/workspace/trunk/server/openerp/service/web_services.py", line 588, in dispatch
      res = fn(db, uid, *params)
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/vra/workspace/trunk/addons/sale/sale.py", line 444, in manual_invoice
      wf_service.trg_validate(uid, 'sale.order', id, 'manual_invoice', cr)
    File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_service.py", line 80, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/home/vra/workspace/trunk/server/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/home/vra/workspace/trunk/server/openerp/workflow/workitem.py", line 126, in _execute
      id_new = wkf_expr.execute(cr, ident, workitem, activity)
    File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/home/vra/workspace/trunk/server/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/home/vra/workspace/trunk/server/openerp/tools/safe_eval.py", line 285, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 322, in <lambda>
      return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
    File "/home/vra/workspace/trunk/addons/sale/sale.py", line 478, in action_invoice_create
      set_company = tools.get_and_sort_by_field(cr, uid, obj=self, ids=ids, field='company_id', context=context)
  AttributeError: 'module' object has no attribute 'get_and_sort_by_field'

  Rucha is already mention this problem in following bug:

  https://bugs.launchpad.net/openobject-addons/+bug/807350

  So this also blocks to create Invoice from SO.

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/807366/+subscriptions


Follow ups

References