Cannot cancel invoice BUG

Bug #691810 reported by Jacara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

When I click Cancel Button in Account Invoice Form then getting errors:

File "/home/jacara/Pydev-workspace/monoserp/osv/orm.py", line 179, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/jacara/Pydev-workspace/monoserp/addons/account/invoice.py", line 1037, in action_cancel
    account_move_obj.unlink(cr, uid, [i['move_id'][0]])
  File "/home/jacara/Pydev-workspace/monoserp/addons/account/account.py", line 1286, in unlink
    context['journal_id'] = move.journal_id.id
TypeError: 'NoneType' object does not support item assignment

-----------------

My suggest :

if context is None :
    context = {}

Related branches

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

Hello,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/pso-dev-addons3.
Rev-id: <email address hidden>
Rev-no: 4614

It will be merged soon with Addons3 branch.

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.0-rc2
status: Fix Committed → Fix Released
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.