Nonconformity user permissions

Asked by Simon Buckmaster

Hello,

I am running OpenERP 7 on a clean Ubuntu 12.04 LTS installation. The management System module is (for the time being) the only module I need to use, but I am unable to attribute permissions to non-admin users to enable them to create nonconformities.

Admin has a red button to create nonconformity, all other users (regardless of Management System group settings) have no button.

Is this a bug or is there something funky* in my installation?

Thanks in advance

Simon

(*not in the good way…)

Question information

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#1

Hello Simon,

When you install the Management System modules, you have new groups being created ("Management System / User", etc.). Add users to those groups and they will inherit their permissions.

Have a look at the end of this blueprint for some documentation:
https://blueprints.launchpad.net/openerp-mgmtsystem/+spec/nc-extend

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#2

Should I be adding users to the necessary groups elsewhere than in the user settings?

http://cl.ly/image/1d2c3c2R1F2D

If so, where?

Merci d'avance…

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#3

No, user setting is the right place.

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#4

No matter the Management System groups I attribute to users, only admin can create NCs.

http://cl.ly/image/0W38212V1Q1G <-- no button for 'Créer' for non-admin user in *all* Management System groups.

Sorry to be posting this in the development area, if there is a more appropriate place for me to post this please let me know.

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#5

Don't be sorry. This is the right place.

I will check on my side and report here.

Thanks for your patience.

Revision history for this message
Best Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#6

This was a bug. 2 access list rule were having the same id.

I have committed the fix. It should be released soon.

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#7

Simon,

Fix has been released. Please update and confirm a "Management System / User" can now create a NC.

Thanks for reporting this issue.

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#8

Hi Maxime,

That was fast! How should I update? I installed manually from a zip file (7.0.0.2) which is the same version on Launchpad - do I need to download a development version?

Thanks again for your help.

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#9

Thanks Maxime Chambreuil (http://www.savoirfairelinux.com), that solved my question.

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#10

OK, I manually patched the .csv file and reinstalled the module, it seems to be working!

Is there a better way for me to be installing modules that would allow me to update them? Is Bazaar the recommended way of installing extra modules or is that mostly for development?

Thanks again for your help with this issue.

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) said :
#11

As there is no apps.openerp.com for version 7.0 modules, you can do as you did or install bzr and download the branch using:
bzr branch lp:openerp-mgmtsystem

and updating it within the newly-created openerp-mgmtsystem directory with:
bzr pull

Please refer to bzr documentation for more details.

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#12

Thanks Maxime.

I have uninstalled my previously installed modules, checked out the branch with bzr into my 'addons' folder and nuked my old database.

In the new database I can't get the mgmtsystem modules to show up - maybe because they are in a subfolder of 'addons'? Are you able to help?

Thanks again for taking the time to help out an OpenERP beginner…

Cheers

Simon

Revision history for this message
Simon Buckmaster (sbuckmaster) said :
#13

I have manually moved the modules and the bzr files into the root of my 'addons' folder.

They show up in OpenERP and bzr pull still works.