Search 1.9 billion lines of Odoo code on GitHub

base_bypass_record_rules

Author: innoviĆ¹ Srl, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0-mig-base_bypass_record_rules
Repository: SimoRubi/server-tools
Dependencies: base
Languages: Python (86, 55.8%), XML (13, 8.4%), and reStructuredText (55, 35.7%)

<a class="reference external image-reference" href="https://www.gnu.org/licenses/agpl"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="bypass-record-rules"></a> <h2>Bypass Record Rules</h2> <p>This module allows to bypass record rule permissions on relational fields visibility.</p> <p>For example in a multi-company environment it allows to see the records of company B for a user of company A, even if the user has no visibility on these records (i.e. B is not an allowed company).</p> <a name="installation"></a> <h3>Installation</h3> <p>No specific requirements.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>Check the flag 'Can be bypassed' in the record rule form. In a model view, edit the context property for the desired field: add the 'can_bypass_record_rules' key set to a list of groups that should be able to bypass the record rule permissions.</p> <p>If the user is in any of the listed groups, he will be able to bypass the flagged record rule.</p> <p>For example:</p> <dl class="docutils"> <dt>&lt;field name=&quot;my_field&quot;</dt> <dd>context=&quot;{'can_bypass_record_rules': ['base.group_user']}&quot;&gt;</dd> </dl> <a name="usage"></a> <h3>Usage</h3> <p>No specific requirements.</p> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/149/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <p>No known issues.</p> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Roberto Onnis &lt;<a class="reference external" href="mailto:roberto.onnis&#64;innoviu.com">roberto.onnis&#64;innoviu.com</a>&gt;</li> <li>Simone Rubino &lt;<a class="reference external" href="mailto:simone.rubino&#64;agilebg.com">simone.rubino&#64;agilebg.com</a>&gt;</li> </ul> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="funders"></a> <h4>Funders</h4> <p>The development of this module has been financially supported by:</p> <ul class="simple"> <li>Agile Business Group Sagl</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>