← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 760412] Re: Bank statements crashes when confirmed if partner not defined

 

The fix has landed in trunk at revision 5030 revid:fp@xxxxxxxxxxx-20110917115457-plm7fpndamsynpx5
Thanks for reporting!

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

Title:
  Bank statements crashes when confirmed if partner not defined

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  TO REPRODUCE:
  1) Enter a journal which debits receivables and credit sales but don't attach a partner to the transaction, a general journal transaction. Accounting=>Journal Entries=>Journal Entries
  2) Create a bank statement (using say the cash journal) and select the receivables transaction created in step (1) to reconcile. Accounting=>Bank and Cash=>Bank Statements
  3) Click the confirm button: 

  RESULT:
  following error is displayed: 

  File "/home/openerp/development/openerp-server/bin/addons/account_voucher/account_voucher.py", line 760, in action_move_line_create
      account_id = inv.partner_id.property_account_receivable.id
  AttributeError: 'NoneType' object has no attribute 'id'

  If a partner was associated with the transaction no error would have
  been produced but there is no requirement for a partner to be
  associated so it should not cause an error.

  EXPECTED RESULT:
  Reconciliation to be confirmed without errors

  PLATFORM:
  OpenERP 6.02 build 3388

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


References