Public bug reported:
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')
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: mso
--
You received this bug notification because you are a member of OpenERP
Framework Experts, 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:
New
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/~credativ
Post to : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help : https://help.launchpad.net/ListHelp