Search 1.9 billion lines of Odoo code on GitHub

attachment_delete_restrict

Author: Quartile Limited, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: aaltinisik/server-tools
Dependencies: base
Languages: HTML (344, 51.8%), PO File (64, 9.6%), Python (128, 19.3%), XML (77, 11.6%), and reStructuredText (51, 7.7%)
Other repositories: AITIC/server-tools, Change2improve/server-tools, Digital5-Odoo/server-tools, ERPLibre/server-tools, ForgeFlow/server-tools, Jarsa/server-tools, LevelPrime/server-tools, OCA/server-tools, Rad0van/server-tools, StefanRijnhart/server-tools, Tecnativa/server-tools, Vauxoo/server-tools, acsone/server-tools, akretion/server-tools, anhvu-sg/server-tools, aurestic/server-tools, brain-tec/server-tools, camptocamp/server-tools, coopiteasy/server-tools, grindtildeath/server-tools, gurneyalex/server-tools, kmee/server-tools, legalsylvain/server-tools, modoolar/server-tools, petrus-v/server-tools, sunflowerit/server-tools, tegin/server-tools, tirma-sa/server-tools, trevi-software/server-tools, ypapouin/server-tools, and zarumaru/server-tools

<h1 class="title">Restrict Deletion of Attachments</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/OCA/server-tools/tree/12.0/attachment_delete_restrict"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-attachment_delete_restrict"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module provides the ability to restrict the deletion of the attachments to certain groups or users per related model.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <ol class="arabic simple"> <li>Go to <em>Settings &gt; Techinical &gt; Database Structure &gt; Models</em>.</li> <li>Open a model for which attachment deletion should be restricted.</li> <li>Select 'Restrict Attachment Deletion', and assign 'Attachment Deletion Groups' and/or 'Attachment Deletion Users' as necessary (if no assignment, no one can delete the attachments of this model).</li> </ol> <p>For assigning 'Attachment Deletion Groups'/'Attachment Deletion Users' to the model, you can alternatively add the model in the 'Attachment Deletion Models' tab in the respective group/user form.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <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 smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20attachment_delete_restrict%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="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Quartile Limited</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Yoshi Tashiro &lt;<a class="reference external" href="mailto:tashiro&#64;quartile.co">tashiro&#64;quartile.co</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id6">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <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>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>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/12.0/attachment_delete_restrict">OCA/server-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>