← Back to team overview

openerp-india team mailing list archive

[Bug 978390] Re: 'builtin_function_or_method' object has no attribute 'sale_order_line_id'

 

** Changed in: openobject-addons
     Assignee: (unassigned) => Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)

** Changed in: openobject-addons
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/978390

Title:
  'builtin_function_or_method' object has no attribute
  'sale_order_line_id'

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  I have installed the connector and the bundle module, I also have the
  purchase_to_sale module from advanced project management project to
  benefit from the dropship feature.

  I have a sales order already paid (imported from Magento). I confirmed
  it to generate the invoice. I validated the invoice and tried to
  validate the payment. I received this error message:

  Server Traceback (most recent call last):
    File "/Users/openerp/openerp/web/addons/web/common/http.py", line 592, in send
      result = openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/netsvc.py", line 360, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/service/web_services.py", line 586, in dispatch
      res = fn(db, uid, *params)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/osv.py", line 196, in exec_workflow
      res = self.exec_workflow_cr(cr, uid, obj, method, *args)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/osv.py", line 189, in exec_workflow_cr
      return wf_service.trg_validate(uid, obj, args[0], method, cr)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_service.py", line 124, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 107, in _execute
      returned_action = wkf_expr.execute(cr, ident, workitem, activity)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/tools/safe_eval.py", line 241, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/orm.py", line 368, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/Users/openerp/openerp/addons/account_voucher/account_voucher.py", line 760, in proforma_voucher
      self.action_move_line_create(cr, uid, ids, context=context)
    File "/Users/openerp/openerp/addons/account_voucher/account_voucher.py", line 1237, in action_move_line_create
      move_line_pool.reconcile_partial(cr, uid, rec_ids, writeoff_acc_id=voucher.writeoff_acc_id.id, writeoff_period_id=voucher.period_id.id, writeoff_journal_id=voucher.journal_id.id)
    File "/Users/openerp/openerp/addons/account/account_move_line.py", line 772, in reconcile_partial
      res = self.reconcile(cr, uid, merges+unmerge, context=context, writeoff_acc_id=writeoff_acc_id, writeoff_period_id=writeoff_period_id, writeoff_journal_id=writeoff_journal_id)
    File "/Users/openerp/openerp/addons/account/account_move_line.py", line 908, in reconcile
      wf_service.trg_trigger(uid, 'account.move.line', id, cr)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_service.py", line 78, in trg_trigger
      instance.update(cr, instance_id, ident)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/instance.py", line 57, in update
      workitem.process(cr, witem, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 145, in _execute
      instance.validate(cr, t[0], t[1], t[2], force_running=True)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 107, in _execute
      returned_action = wkf_expr.execute(cr, ident, workitem, activity)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/tools/safe_eval.py", line 241, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/orm.py", line 368, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/Users/openerp/openerp/addons/sale/sale.py", line 862, in action_ship_create
      self._create_pickings_and_procurements(cr, uid, order, order.order_line, None, context=context)
    File "/Users/openerp/openerp/advanced-project-management/purchase_to_sale/sale.py", line 90, in _create_pickings_and_procurements
      wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_confirm', cr)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_service.py", line 124, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 176, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 184, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/workitem.py", line 128, in _execute
      id_new = wkf_expr.execute(cr, ident, workitem, activity)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/tools/safe_eval.py", line 241, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/Users/openerp/openerp-virt/lib/python2.6/site-packages/openerp-6.1-py2.6.egg/openerp/osv/orm.py", line 368, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/Users/openerp/openerp/addons/purchase/purchase.py", line 824, in action_po_assign
      res = self.make_po(cr, uid, ids, context=context)
    File "/Users/openerp/openerp/addons/purchase/purchase.py", line 936, in make_po
      res[procurement.id] = self.create_procurement_purchase_order(cr, uid, procurement, po_vals, line_vals, context=context)
    File "/Users/openerp/openerp/on-change-support-extra-addons/sale_bundle_product/procurement.py", line 33, in create_procurement_purchase_order
      return super(procurement_order, self).create_procurement_purchase_order(cr, uid, id, po_vals, line, context=context)
    File "/Users/openerp/openerp/advanced-project-management/purchase_to_sale/sale.py", line 106, in create_procurement_purchase_order
      if procurement.sale_order_line_id:
  AttributeError: 'builtin_function_or_method' object has no attribute 'sale_order_line_id'

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