diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-03-20 17:24:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-20 17:24:11 +0100 |
| commit | fd113d48a2379f63fcfeae22fc62a28a0e8e5e90 (patch) | |
| tree | b9dc888b51b0dfd4e78cc8dd02c6d668948520ea /addons/note | |
| parent | 979de450669b9175b4ff78bea15ae14bd455761a (diff) | |
| parent | a3ded9043d34229e4547e16625a86dfbebdbcfaf (diff) | |
[MERGE] *: ir.rule declaration cleanup
* remove global assignation in xml, it is a computed field anyway, let the orm compute it
* put all `ir_rule` definition as noupdate in the xml
closes odoo/odoo#47688
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/note')
| -rw-r--r-- | addons/note/security/note_security.xml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/note/security/note_security.xml b/addons/note/security/note_security.xml index 6463bbfab1b..3b657e48633 100644 --- a/addons/note/security/note_security.xml +++ b/addons/note/security/note_security.xml @@ -1,10 +1,9 @@ <?xml version="1.0"?> -<odoo> +<odoo noupdate="1"> <record id="note_note_rule_global" model="ir.rule"> <field name="name">Only followers can access a sticky notes</field> <field name="model_id" ref="model_note_note"/> <field name="domain_force">['|', ('user_id', '=', user.id), ('message_partner_ids', '=', user.partner_id.id)]</field> - <field name="global" eval="True"/> <field name="perm_create" eval="False"/> <field name="perm_unlink" eval="False"/> </record> @@ -13,7 +12,6 @@ <field name="name">note: create / unlink: responsible</field> <field name="model_id" ref="model_note_note"/> <field name="domain_force">[('user_id', '=', user.id)]</field> - <field name="global" eval="True"/> <field name="perm_write" eval="False"/> <field name="perm_read" eval="False"/> </record> @@ -22,7 +20,6 @@ <field name="name">Each user have his stage name</field> <field name="model_id" ref="model_note_stage"/> <field name="domain_force">['|',('user_id','=',False),('user_id','=',user.id)]</field> - <field name="global" eval="True"/> </record> </odoo> |
