modifying Journal entry

Bug #955910 reported by Jad Tabet
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

If you cancel a committed Journal Entry , then try to modify and save any of the journal item you get the following error:

Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1027, in onchange
    result = self.call_common(req, model, method, args, context_id=context_id)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 991, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 572, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/audittrail/audittrail.py", line 495, in execute_cr
    return fct_src(cr, uid, model, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.7/openerp/addons/account/account.py", line 1366, in onchange_line_id
    balance += (line[2]['debit'] or 0.00)- (line[2]['credit'] or 0.00)
KeyError: 'debit'

openerp versoin 6.1-20120313-003216

regards,

Related branches

affects: openobject-server → openerp-web
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Changed in openerp-web:
importance: Low → Medium
Changed in openerp-web:
status: Confirmed → In Progress
Revision history for this message
Bhumi Thakkar (Open ERP) (bth-openerp) wrote :

Hello,

I think this issue has been fixed in addons side code.

I am not sure but attached patch is fixed the solution and it works well in both client (Web & GTK).

Check the attachment and reply here if i am wrong anything with that.

Thanks.

Revision history for this message
Bhumi Thakkar (Open ERP) (bth-openerp) wrote :

As per last comment #1, this fixed patch is for trunk addons branch.

Changed in openerp-web:
status: In Progress → Confirmed
affects: openerp-web → openobject-addons
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Mayur Maheshwari(OpenERP) (mma-openerp) wrote :

Hello ,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-955910-mma
Revision ID: <email address hidden>
Revision num: 6910.

It will be available in trunk soon.

Thanks .
Mayur

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Jad Tabet (jtabet) wrote :

Hello,
Updated to version 20120619-232548
tested the issue, it is still showing a problem , (not the same one).
Object expected
--------------------------------------------------------------------------------

http://192.168.1.72:8069/web/static/src/js/view_list.js?debug=1330994047.0:1435

Revision history for this message
Amit Parik (amit-parik) wrote :

Fixed on trunk with 7365. :-)

Thanks for fix Mayur...

Changed in openobject-addons:
status: Fix Committed → Fix Released
Revision history for this message
Jacara (baskhuujacara) wrote :

Hello

When it will be merged into 6.1 trunk.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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