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

 

** Project changed: openobject-server => openobject-addons

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

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

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

Status in OpenERP Addons (modules):
  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-addons/+bug/923645/+subscriptions


References