[trunk 6.1] Record rule for unlink fails with inherits (hr.analytic.timesheet)

Bug #923645 reported by Jacques-Etienne Baudoux
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Undecided
OpenERP Publisher's Warranty Team
Therp Backports (Deprecated)
Fix Released
Low
Stefan Rijnhart (Opener)

Bug Description

OpenERP doesn't evaluate properly the record rule in the case of unlink operation on objects with inherits.
Example : hr.analytic.timesheet
Record rule is evaluated on inherited object. Objects are deleted. Record rule is tested on object. FAILED
Ojects should be deleted after the record rule is tested on inherited object and on the object itself.

[2012-01-30 09:00:06,864][?] DEBUG_SQL:db.cursor:query: SELECT account_analytic_line.id FROM "account_analytic_line" WHERE account_analytic_line.id IN (33) and (account_analytic_line."company_id" IS NULL OR (account_analytic_line."company_id" in (1)))
[2012-01-30 09:00:18,619][?] DEBUG_SQL:db.cursor:query: delete from account_analytic_line where id IN (33)
(...)
[2012-01-30 09:00:18,627][?] DEBUG_SQL:db.cursor:query: SELECT hr_analytic_timesheet.id FROM "hr_analytic_timesheet","account_analytic_line" WHERE hr_analytic_timesheet.id IN (37) and (account_analytic_line."id"=hr_analytic_timesheet."line_id") AND (account_analytic_line."state" != E'approved')

Tags: mso

Related branches

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Jacques-Etienne Baudoux ,

I have checked this issue with trunk as well as stable 6.1.
But I did not face any problems like yours so would you please
check this again and provide more information regarding this
issue.

Thanks and waiting for reply!

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenERP Server because there has been no activity for 60 days.]

Changed in openobject-server:
status: Incomplete → Expired
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

I believe this is the same issue as OPW 580642

Changed in openobject-server:
status: Expired → Fix Committed
Changed in therp-backports:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Stefan Rijnhart (Therp) (stefan-therp)
milestone: none → 6.1-maintenance
Amit Parik (amit-parik)
affects: openobject-server → openobject-addons
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in therp-backports:
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.