Bank statements crashes when confirmed if partner not defined

Bug #760412 reported by Jon Wilson (Willow IT)
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

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

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-760412-pso
Rev-no: <email address hidden>
Rev-Id: 4644

It will be merged soon with Addons branch.

Thanks for reporting.

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
Revision history for this message
qdp (OpenERP) (qdp) wrote :

merge proposal in need fixing

Changed in openobject-addons:
status: Fix Committed → Confirmed
Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in trunk at revision 5030 revid:<email address hidden>
Thanks for reporting!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.