Skip to Content

Contributors

Modules for read only User Groups

Hello!

I remember seeing some modules, or at least some discussion, to provide 
User Groups with read only access.
But I'm not able to find anything.

Does anyone remember this or knows how to point me in the right direction?

Thanks
Daniel reis

by Daniel Reis <dgreis@sapo.pt> - 11:01 - 11 May 2020

Follow-Ups

  • Re: Modules for read only User Groups
    If you want a user with readonly for all models, you can create a group "readonly" and inherit the "ir_model_access.check" method to check if the user has this group so the permission is just read.

    Something like this:

    You can use the current groups way to enable menus and models permissions, but if you assign the new readonly group so, this user only will can read (not write, create, unlink) even if the original groups allow.

    I hope this can be helpful for you.
    Feel free to contribute it to OCA if you think that it is helpful

    Disclaimer1: It is only a POC without a depth analysis.
    Disclaimer2: Readonly group apply for all models. Maybe, it could be configurable making a few changes.


    El mar., 12 may. 2020 a las 5:22, Pedro M. Baeza (Tecnativa) (<pedro.baeza@tecnativa.com>) escribió:
    For me the good OCA module is one that allows this as a general switch, not having to create an specific module for each area (and leaving out possible specific modules). I think this can be done at ORM level overriding write/create or even lower layers, or _check_access.

    Regards.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Moisés López Calderón
    Mobile: (+521) 477-752-22-30
    Twitter: @moylop260
    hangout: moylop260@vauxoo.com
    http://www.vauxoo.com - Odoo Gold Partner
    Twitter: @vauxoo

    by Moisés López Calderón - 10:10 - 18 May 2020
  • Re: Modules for read only User Groups
    For me the good OCA module is one that allows this as a general switch, not having to create an specific module for each area (and leaving out possible specific modules). I think this can be done at ORM level overriding write/create or even lower layers, or _check_access.

    Regards.

    by Pedro M. Baeza - 12:21 - 12 May 2020
  • Re: Modules for read only User Groups
    Le mar. 12 mai 2020 à 11:22, Daniel Reis <dreis@opensourceintegrators.com> a écrit :
    I wonder if it could make sense to have this under the OCA.

    Yes, why not !
     
    Maybe that discussion already happened in the past.

    No, it hasn't been discussed in the past. I feel that these modules never received any attention from the community (or maybe some people use it, but I never got any feedback because it "just works"). But I find them very useful.

    Alexis

    by Alexis de Lattre - 12:16 - 12 May 2020
  • Re: Modules for read only User Groups
    Thank you Alexis.
    I wonder if it could make sense to have this under the OCA.
    Maybe that discussion already happened in the past.
    
    /Daniel
    
    On 12/05/2020 10:16, Alexis de Lattre wrote:
    
    > I confirm that I continue to maintain my viewer-groups modules in this 
    
    > Akretion project : https://github.com/akretion/odoo-viewer-groups
    
    > It is only available on v8, v10 and v12, according to Akretion's 
    
    > policy to work on even versions of Odoo.
    
    > I use those modules on almost all my deployments ; I find it very 
    
    > useful. I'll certainly port these module to Odoo v14.
    
    >
    

    by Daniel Reis - 11:21 - 12 May 2020
  • Re: Modules for read only User Groups
    I confirm that I continue to maintain my viewer-groups modules in this Akretion project : https://github.com/akretion/odoo-viewer-groups
    It is only available on v8, v10 and v12, according to Akretion's policy to work on even versions of Odoo.
    I use those modules on almost all my deployments ; I find it very useful. I'll certainly port these module to Odoo v14.

    --
    Alexis de Lattre
    Akretion France - 27 rue Henri Rolland - 69100 Villeurbanne - France
    Mail : alexis.delattre@akretion.com

    Le lun. 11 mai 2020 à 11:37, David Beal <david.beal@akretion.com> a écrit :
    Hi Daniel,

    probably here


    Bonne journée


    David BEAL - akretion.com
    Chef de projet
    Odoo Développement / Intégration


    Le lun. 11 mai 2020 à 11:11, Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com> a écrit :
    AFAIK, nothing has reached OCA repositories yet about that.

    Regards.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe





    by Alexis de Lattre - 11:15 - 12 May 2020