Security overwrite manual settings when update base
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm using: Last stable branch of openerp server, addons and extra-addons (lp/*/5.0/, just extra-addons is trunk). I'm sure the problem is also in the trunk branch...
I do the following:
1. Allow the group "Human Ressources / User" to delete account analytic lines (via Administration -> Security -> Access control -> Access control list) and save.
2. Make an update of base module from client side, via the menu "Administration -> Module management -> ..." (for any kind of reason, I did it for updating instance from base source code)
3. Return to "Administration -> Security -> Access control -> Access control list" and the group "Human Ressources / User" don't have the right to delete account analytic line anymore !!!
This is why:
The group "Human Ressources / User" has no right for that in the "ir.model.
"access_
AND the file is in the "update" part of the related __terp__.py file...
Anyway : OpenERP should not replace the manual settings made by the administrator by the default settings !!!!!!!!!! Otherwise, you will just reset every manual settings on each update => you cannot work with that...
I don't really know how is the best way to fix it, but please, let's have a discussion and find a solution quickly !
Regards,
Joël
Hi Joel
It's not a bug, it's a feature :)
If you made a mistake with access right, update = all must restore the original value.
the best way to resolve this issue is to create a profil module whom depend to account, and add the original line to your security/ ir.model. access. csv profile and replace the last 0 by 1 as
"access_ hr_account_ analytic_ line"," account. account. analytic. line"," account. model_account_ analytic_ line"," hr.group_ hr_user" ,1,1,1, 1
in the first columns, don't forget to prefix the value with the module name as access_ hr_account_ analytic_ line", ....
"account.
because original lines are in the account module
Regards,
Christophe.