openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #16995
[Bug 1070884] [NEW] ir_rule should apply to the result of a Model.write()
Public bug reported:
Currently in OpenERP 6.1 and trunk the record rules are applied at write
time only before the resource is written. This is inconsistent with
creating resources, as in that case the record rules are applied at the
results.
For instance, we have applied a record rule that restricts HR officers
from writing their own record (or their contracts). Under the current
behaviour, they can still create a new employee with their own user
associated with it (but they cannot delete it).
I think that the rule should apply to the resources before modification
as well as after the modification.
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/1070884
Title:
ir_rule should apply to the result of a Model.write()
Status in OpenERP Server:
New
Bug description:
Currently in OpenERP 6.1 and trunk the record rules are applied at
write time only before the resource is written. This is inconsistent
with creating resources, as in that case the record rules are applied
at the results.
For instance, we have applied a record rule that restricts HR officers
from writing their own record (or their contracts). Under the current
behaviour, they can still create a new employee with their own user
associated with it (but they cannot delete it).
I think that the rule should apply to the resources before
modification as well as after the modification.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1070884/+subscriptions
Follow ups
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write() in some cases
From: Lara Freeke (Therp), 2013-01-23
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write() in some cases
From: Stefan Rijnhart (Therp), 2012-10-25
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write() in some cases
From: Olivier Dony (OpenERP), 2012-10-25
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Olivier Dony (OpenERP), 2012-10-25
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Daniel Reis (SECURITAS SA), 2012-10-25
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Stefan Rijnhart (Therp), 2012-10-25
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Daniel Reis (SECURITAS SA), 2012-10-24
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Stefan Rijnhart (Therp), 2012-10-24
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Daniel Reis (SECURITAS SA), 2012-10-24
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Launchpad Bug Tracker, 2012-10-24
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Stefan Rijnhart (Therp), 2012-10-24
-
[Bug 1070884] Re: ir_rule should apply to the result of a Model.write()
From: Launchpad Bug Tracker, 2012-10-24
-
[Bug 1070884] [NEW] ir_rule should apply to the result of a Model.write()
From: Stefan Rijnhart (Therp), 2012-10-24
References