audit trail one2many error

Bug #1012931 reported by tp
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

        I installed the modules hr、hr_expense and auddittrail,then made audit rule for hr_expense order and hr_expense.line object for create,write and unlink method. Also I have subscribed both rules.
        And I have made a hr_expense order with 2 lines of expense.line in it,then saved the expense.line its completed,when I save the hr_expense order have some error:
        “” Traceback (most recent call last):
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\.\openerp\osv\osv.py", line 121, in wrapper
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\.\openerp\osv\osv.py", line 176, in execute
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\openerp\addons\audittrail\audittrail.py", line 493, in execute_cr
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\openerp\addons\audittrail\audittrail.py", line 300, in log_fct
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\openerp\addons\audittrail\audittrail.py", line 440, in process_data
  File "C:\Program Files\OpenERP 6.2dev-20120612-230101\Server\server\openerp\addons\audittrail\audittrail.py", line 407, in prepare_audittrail_log_line
KeyError: 'id'
2012-06-14 09:17:06,108 992 ERROR None openerp.netsvc: id
2012-06-14 09:17:06,140 992 INFO None werkzeug: 127.0.0.1 - - [14/Jun/2012 09:17:06] "POST /web/dataset/call_kw HTTP/1.1" 200 -“”
      its bug?!help me pls!

Related branches

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Kuldeep Joshi(OpenERP) (kjo-openerp) wrote :

Hello, Thanks For Reporting.
It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1012931-kjo
revision-id: <email address hidden>
revno: 6911

It will be available in trunk soon.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

The bug is also valid on 6.1.

Revision history for this message
Arnaud Pineux (OpenERP) (api-openerp) wrote :

This bug doesn't exist anymore in the trunk. The bug is therefore rejected.

Arnaud Pineux (API)

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.