diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-09-02 13:23:43 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-09-02 16:14:26 +0200 |
| commit | 11812b0b9e82b2b1b9041d8250ce01e7b4a5f7ee (patch) | |
| tree | 25e21b589d2bf45d2fdd2d4c65d94a707b00cc45 /addons/hr_gamification/security | |
| parent | e5f05074f8110b3282c558b6108fdc88b41d7522 (diff) | |
[FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:
- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
translated
The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).
Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).
This commit correct all the external ids tagged as from base or other incorrect
modules.
Diffstat (limited to 'addons/hr_gamification/security')
| -rw-r--r-- | addons/hr_gamification/security/gamification_security.xml | 2 | ||||
| -rw-r--r-- | addons/hr_gamification/security/ir.model.access.csv | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/hr_gamification/security/gamification_security.xml b/addons/hr_gamification/security/gamification_security.xml index 86671336c63..f1de6b6d1e7 100644 --- a/addons/hr_gamification/security/gamification_security.xml +++ b/addons/hr_gamification/security/gamification_security.xml @@ -3,7 +3,7 @@ <data noupdate="1"> <record id="gamification.goal_gamification_manager_visibility" model="ir.rule"> - <field name="groups" eval="[(4, ref('base.group_hr_user'))]"/> + <field name="groups" eval="[(4, ref('hr.group_hr_user'))]"/> </record> </data> diff --git a/addons/hr_gamification/security/ir.model.access.csv b/addons/hr_gamification/security/ir.model.access.csv index b89db7cd104..3cbe77aa6fa 100644 --- a/addons/hr_gamification/security/ir.model.access.csv +++ b/addons/hr_gamification/security/ir.model.access.csv @@ -1,5 +1,5 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -challenge_officer,"Challenge Officer",gamification.model_gamification_challenge,base.group_hr_user,1,1,1,1 -challenge_line_officer,"Challenge Line Officer",gamification.model_gamification_challenge_line,base.group_hr_user,1,1,1,1 -badge_officer,"Badge Officer",gamification.model_gamification_badge,base.group_hr_user,1,1,1,1 -badge_user_officer,"Badge-user Officer",gamification.model_gamification_badge_user,base.group_hr_user,1,1,1,1
\ No newline at end of file +challenge_officer,"Challenge Officer",gamification.model_gamification_challenge,hr.group_hr_user,1,1,1,1 +challenge_line_officer,"Challenge Line Officer",gamification.model_gamification_challenge_line,hr.group_hr_user,1,1,1,1 +badge_officer,"Badge Officer",gamification.model_gamification_badge,hr.group_hr_user,1,1,1,1 +badge_user_officer,"Badge-user Officer",gamification.model_gamification_badge_user,hr.group_hr_user,1,1,1,1
\ No newline at end of file |
