Search 1.9 billion lines of Odoo code on GitHub

technical_partner_access

Author: GRAP
License: AGPL-3
Branch: 12.0
Repository: grap/grap-odoo-business
Dependencies: base, and name_search_reset_res_partner
Languages: PO File (27, 7.6%), Python (236, 66.1%), XML (19, 5.3%), and reStructuredText (75, 21.0%)

<h1 class="title">Technical Partners Access</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/grap/grap-odoo-business/tree/12.0/technical_partner_access"><img alt="grap/grap-odoo-business" src="https://img.shields.io/badge/github-grap%2Fgrap--odoo--business-lightgray.png?logo=github" /></a></p> <p>In Odoo, a user has a partner associated. This feature is great to manage commun fields, but generate some non desired behaviours in some multi company cases:</p> <p>If a user has multi company access, the company of the associated partner will change when the user change company. So the associated partner will be &quot;available or not&quot;, depending of user configuration. This generates error access.</p> <p>With this module:</p> <ul class="simple"> <li>the users partners will not be accessible by default. This will force saler / purchaser to create new partner (if the user is a customer or a supplier too)</li> <li>the users partners will have no company, this will fix all bug access</li> <li>the companies partners will not be accessible by default. This will force saler / purchaser to create new partner (if the cpmpany is a customer or a supplier too)</li> </ul> <p><strong>Technically</strong></p> <p>All partners associated to a user:</p> <ul class="simple"> <li>have <code>company_id</code> empty</li> <li>have a field <code>is_odoo_user</code> checked</li> <li>can be searched, only if <code>show_odoo_user=True</code> is in the context</li> </ul> <p>All partners associated to a company:</p> <ul class="simple"> <li>have a field <code>is_odoo_company</code> checked</li> <li>can be search, only if <code>show_odoo_company=True</code> is in the context</li> </ul> <div class="figure"> <img alt="https://raw.githubusercontent.com/grap/grap-odoo-business/12.0/technical_partner_access/static/description/res_partner_form.png" src="https://raw.githubusercontent.com/grap/grap-odoo-business/12.0/technical_partner_access/static/description/res_partner_form.png" /> </div> <p>Only members of 'Administration / Access Rights' can update those partners.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id2">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id3">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li> </ul> </li> </ul> </div> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id1">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/grap/grap-odoo-business/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 smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/grap/grap-odoo-business/issues/new?body=module:%20technical_partner_access%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id2">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id3">Authors</a></h3> <ul class="simple"> <li>GRAP</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id4">Contributors</a></h3> <ul class="simple"> <li>Sylvain LE GAL (<a class="reference external" href="https://www.twitter.com/legalsylvain">https://www.twitter.com/legalsylvain</a>)</li> <li>Quentin Dupont &lt;<a class="reference external" href="mailto:quentin.dupont&#64;grap.coop">quentin.dupont&#64;grap.coop</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id5">Maintainers</a></h3> <p>This module is part of the <a class="reference external" href="https://github.com/grap/grap-odoo-business/tree/12.0/technical_partner_access">grap/grap-odoo-business</a> project on GitHub.</p> <p>You are welcome to contribute.</p>