I believe this is the same issue as  OPW 580642

** Changed in: openobject-server
       Status: Expired => Fix Committed

** Branch linked: lp:~openerp-dev/openobject-addons/6.1-opw-580642-cbi

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

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

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to