← Back to team overview

openerp-india team mailing list archive

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

 

** Branch linked: lp:~therp-nl/therp-
backports/server-6.1-lp923645-unlink_timesheet_lines_fails

** Also affects: therp-backports
   Importance: Undecided
       Status: New

** Changed in: therp-backports
       Status: New => Fix Committed

** Changed in: therp-backports
   Importance: Undecided => Low

** Changed in: therp-backports
     Assignee: (unassigned) => Stefan Rijnhart (Therp) (stefan-therp)

** Changed in: therp-backports
    Milestone: None => 6.1-maintenance

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/923645

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

Status in OpenERP Server:
  Fix Committed
Status in Therp Backports:
  Fix Committed

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')

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/923645/+subscriptions


References