Search 1.9 billion lines of Odoo code on GitHub

attachment_attach_non_editable

Author: MONK Software, Odoo Community Association (OCA)
License: AGPL-3
Branch: 10.0
Repository: 5B-github/knowledge
Dependencies: document, and web
Languages: JavaScript (13, 15.9%), Python (17, 20.7%), XML (16, 19.5%), and reStructuredText (36, 43.9%)
Other repositories: Alfa-90/knowledge, Aselcis-Consulting/knowledge, BDO-ES/knowledge, BT-dgoeppner/knowledge, Change2improve/knowledge, ERPLibre/knowledge, Gabinete-Digital/knowledge, Gavin1515/knowledge, Gofekra/knowledge, GrupoAlvamex/knowledge, Guobower/knowledge, Ingeos/knowledge, Jarsa/knowledge, JohnXi001/knowledge, Jonekee/knowledge, MathBenTech/knowledge, NeatNerdPrime/knowledge, OCA-MUK/knowledge, OCA/knowledge, ORETEK/knowledge, Raynor013/knowledge, SSISoftware/knowledge, SalahAdDin/knowledge, SanteLibre/knowledge, Siddhant-Pageni/knowledge, Tonow-c2c/knowledge, VCLS-org/knowledge, VisiionSolucionesTecnologicas/knowledge, acsone/knowledge, adhoc-dev/knowledge, ajinvn2019/knowledge, algiopensource/knowledge, anhvu-sg/knowledge, ansinaesmejor/knowledge, apetbiz/knowledge, arnasan/knowledge, aurestic/knowledge, bishalgit/knowledge, brain-tec/knowledge, bvkl/knowledge, camptocamp/knowledge, cedvict/knowledge, coopiteasy/knowledge, daramousk/knowledge, darshan-odoo/knowledge, ernestotejeda/knowledge, exaap-guillermo/knowledge, exosoftware/oca-knowledge, fayezqandeel/knowledge, flachica/knowledge, forzenboys/knowledge, gaobrian/knowledge-1, gastonfeng/knowledge, gbeuning/knowledge, hbrunn/knowledge, id42sistemas/knowledge, jacky82669513/knowledge, jeroen-vet/knowledge, keecome/knowledge, kmee/knowledge, kos94ok-3D/knowledge, lfreeke/knowledge, lideritjnma/knowledge, lincersolucoes/oca-knowledge, llopez-aitic/knowledge, lonelysun/knowledge, marianoadangelo/knowledge, markrobinson85/knowledge, minhhq09/knowledge, moltisinc/knowledge, monksoftware/knowledge, morganconlan/knowledge, morgs68/knowledge, nguyenductamlhp/knowledge, niulinlnc/knowledge, omarKady/knowledge, onurugur/knowledge, pegonzalezs/knowledge, popsolutions/knowledge, pscloud/knowledge, purple-giraffey/knowledge, pythoner-3k/knowledge, rmorant/knowledge, rousseldenis/knowledge, rsanhasan/knowledge, sanube/knowledge, sendalpegat/knowledge, simahawk/knowledge, takinobori/oca-knowledge, tarteo/knowledge, tegin/knowledge, tonihr/knowledge, ursais/knowledge, vertelab/knowledge, vijayvani/knowledge, westlyou/knowledge, wuhuizhong/knowledge, x0rzkov/odoo-knowledge, xwh123807/knowledge, y2gsmith/knowledge, and z-shabani/knowledge

<a class="reference external image-reference" 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.svg"> </a> <a name="force-enable-attachments-upload"></a> <h2>Force enable attachments upload</h2> <p>In odoo, by default, you can't add attachments to a record if the form view is set as not editable (<code>edit='false'</code> in the form tag)</p> <p>This module adds a new form view attribute, <code>attach=</code>, which lets you enable attachment uploads even in non-editable forms.</p> <p>Keep in mind: users still won't be able to attach documents to records they don't have write access to (according to ACL and record rules); this module does not bypass odoo' security rules!</p> <a name="usage"></a> <h3>Usage</h3> <p>Add the <code>attach=&quot;true&quot;</code> attribute to the form view tag which of uneditable views (normal editable views already allow attaching a document and there is no need for this attribute).</p> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/118/10.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/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 feedback <a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20attachment_force_attach%0Aversion:%2010.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">here</a>.</p> <a name="credits"></a> <h3>Credits</h3> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Leonardo Donelli &#64; MONK Software (<a class="reference external" href="mailto:leonardo.donelli&#64;monksoftware.it">leonardo.donelli&#64;monksoftware.it</a>)</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="http://odoo-community.org">http://odoo-community.org</a>.</p>