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

Bug #923645 reported by Jacques-Etienne Baudoux on 2012-01-30
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Committed
OpenERP Publisher's Warranty Team
Therp Backports (Deprecated)
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 Edit Tag help

Related branches

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

Thanks and waiting for reply!

Changed in openobject-server:
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

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

Changed in openobject-server:
status: Incomplete → Expired

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) on 2012-12-18
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  Edit
Everyone can see this information.

Other bug subscribers