Bank statements crashes when confirmed if partner not defined
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/
account_id = inv.partner_
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
- qdp (OpenERP): Needs Fixing
- Mustufa Rangwala (Open ERP) (community): Approve
- Priyesh (OpenERP) (community): Needs Resubmitting
-
Diff: 191 lines (+49/-49)1 file modifiedaccount_voucher/account_voucher.py (+49/-49)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Changed in openobject-addons: | |
status: | Confirmed → Fix Released |
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.