Search 1.9 billion lines of Odoo code on GitHub

website_sale_product_attachment

Author: Tecnativa, Odoo Community Association (OCA)
License: LGPL-3
Branch: 15.0
Repository: brain-tec/e-commerce
Dependencies: website, and website_sale
Languages: HTML (408, 40.8%), JavaScript (20, 2.0%), PO File (240, 24.0%), Python (86, 8.6%), XML (132, 13.2%), and reStructuredText (113, 11.3%)
Other branches: 12.0, 12.0-ocabot-merge-pr-449-by-dreispt-bump-nobump, 13.0, 13.0-ocabot-merge-pr-435-by-dreispt-bump-nobump, 13.0-ocabot-merge-pr-483-by-dreispt-bump-minor, 13.0-ocabot-merge-pr-524-by-pedrobaeza-bump-nobump, 13.0-ocabot-merge-pr-617-by-pedrobaeza-bump-minor, and 14.0
Other repositories: AITIC/e-commerce, Change2improve/e-commerce, Comunitea/e-commerce, ERPLibre/e-commerce, ForgeFlow/e-commerce, Gabinete-Digital/e-commerce, Ingeos/e-commerce, LeaMartinek/e-commerce, LevelPrime/e-commerce, NeatNerdPrime/e-commerce, NextERP-Romania/e-commerce, Nitrokey/odoo-e-commerce, OCA-MUK/e-commerce, OCA/e-commerce, Spearhead-Odoo/e-commerce, Strusovsky/e-commerce, TDu/e-commerce, TRESCLOUD/e-commerce, Tecnativa/e-commerce, Vauxoo/e-commerce, acsone/e-commerce, adhoc-dev/e-commerce, agrista/odoo-e-commerce, akretion/e-commerce, anhvu-sg/e-commerce, bacgroup/e-commerce, camptocamp/e-commerce, celm1990/e-commerce, coopiteasy/e-commerce, eLBati/e-commerce, fallewi/e-commerce, fcayre/e-commerce, gurneyalex/e-commerce, jctrey/e-commerce, jromeroarg/e-commerce, killvis/e-commerce, lfreeke/e-commerce, lideritjnma/e-commerce, mFlayyan/e-commerce, mamcode/e-commerce, moltisinc/e-commerce, myceliandre/e-commerce, noorealam96/e-commerce, samsagaz/e-commerce, sendalpegat/e-commerce, tarteo/e-commerce, versada/e-commerce, wahello/e-commerce, wtaferner/e-commerce, and zeroheure/e-commerce

<h1 class="title">eCommerce product 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/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/e-commerce/tree/15.0/website_sale_product_attachment"><img alt="OCA/e-commerce" src="https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_attachment"><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/113/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module lets you publish downloadable attachments in a product page.</p> <p>This is useful if you want to publish firmwares, manuals, specs, warranties, or whatever document related to the product.</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="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>Instead of configuring attachments per product, to configure products per attachment:</p> <ol class="arabic simple"> <li>You need permissions to access system settings.</li> <li>Go to <em>Settings &gt; Dashboard &gt; Activate the developer mode</em>.</li> <li>Go to <em>Settings &gt; Technical &gt; Database Structure &gt; Attachments</em>.</li> <li>Pick or create one.</li> <li>Enable <em>Attached To &gt; Is public document</em>.</li> <li>Use the field <em>Attached in products</em> to choose the products.</li> </ol> <div class="figure"> <img alt="Attachments view in backend" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/backend-attachment.png" /> </div> <p>To be able to filter attachments per website:</p> <ol class="arabic simple"> <li>Go to <em>Website &gt; Configuration &gt; Settings &gt; Website</em>.</li> <li>Create more than one.</li> <li>Go to <em>Settings &gt; Technical &gt; Database Structure &gt; Attachments</em></li> <li>Pick or create one.</li> <li>Select a website.</li> <li>Save</li> </ol> <p>To toggle attachment icons in the website:</p> <ol class="arabic simple"> <li>Go to any product in your eCommerce.</li> <li>Toggle <em>Customize &gt; Product downloads &gt; Download icons</em>.</li> </ol> <div class="figure"> <img alt="Toggle icons in frontend" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/frontend-icons.png" /> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>To add publicly downloadable attachments to a product template:</p> <ol class="arabic simple"> <li>Go to a <em>Website &gt; Products &gt; Products</em> in backend.</li> <li>Pick or create one.</li> <li>Go to the <em>eCommerce</em> tab &gt; <em>Website Attachments</em>.</li> <li>Add any downloadable attachments you want there. They can exist before or be new. They must be public.</li> <li>Save.</li> </ol> <div class="figure"> <img alt="Products view in backend" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/backend-product.png" /> </div> <p>Once you set up the product attachments, public users will be able to download them:</p> <ol class="arabic simple"> <li>Go to the product eCommerce page.</li> <li>Below the product price and description, you will find a dropdown labeled as <em>Product downloads</em>. Click it.</li> <li>Users will download those attachments from there.</li> <li>Attachments will appear in name order.</li> </ol> <div class="figure"> <img alt="Attachments view in backend" src="https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/frontend-download.gif" /> </div> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2> <ul class="simple"> <li>Make translatable the name of the attachment in the e-commerce. This will mean to deal with the sorting of the translated terms.</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/e-commerce/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/e-commerce/issues/new?body=module:%20website_sale_product_attachment%0Aversion:%2015.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="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>Tecnativa</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> <li>Jairo Llopis</li> <li>Víctor Martínez</li> </ul> </li> <li><a class="reference external" href="https://www.sygel.es">Sygel</a>:<ul> <li>Ángel García de la Chica Herrera</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">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>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/Yajo"><img alt="Yajo" src="https://github.com/Yajo.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/e-commerce/tree/15.0/website_sale_product_attachment">OCA/e-commerce</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>