openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09585
[Bug 923645] Re: [trunk 6.1] Record rule for unlink fails with inherits (hr.analytic.timesheet)
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
--
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:
Incomplete
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