Metadata-Version: 2.1
Name: odoo-addon-website_sale_product_attachment
Version: 15.0.1.0.0.4
Summary: Let visitors download attachments from a product page
Home-page: https://github.com/OCA/e-commerce
Author: Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: LGPL-3
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 15.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.8
Requires-Dist: odoo<15.1dev,>=15.0a

=============================
eCommerce product attachments
=============================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:d7081bb133bba3d4ef9990fbfff0345dd632a38b91a286ca978c925c976db831
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
    :target: https://github.com/OCA/e-commerce/tree/15.0/website_sale_product_attachment
    :alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_attachment
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=15.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module lets you publish downloadable attachments in a product page.

This is useful if you want to publish firmwares, manuals, specs, warranties,
or whatever document related to the product.

**Table of contents**

.. contents::
   :local:

Configuration
=============

Instead of configuring attachments per product, to configure products per attachment:

#. You need permissions to access system settings.
#. Go to *Settings > Dashboard > Activate the developer mode*.
#. Go to *Settings > Technical > Database Structure > Attachments*.
#. Pick or create one.
#. Enable *Attached To > Is public document*.
#. Use the field *Attached in products* to choose the products.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/backend-attachment.png
   :alt: Attachments view in backend

To be able to filter attachments per website:

#. Go to *Website > Configuration > Settings > Website*.
#. Create more than one.
#. Go to *Settings > Technical > Database Structure > Attachments*
#. Pick or create one.
#. Select a website.
#. Save

To toggle attachment icons in the website:

#. Go to any product in your eCommerce.
#. Toggle *Customize > Product downloads > Download icons*.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/frontend-icons.png
   :alt: Toggle icons in frontend

Usage
=====

To add publicly downloadable attachments to a product template:

#. Go to a *Website > Products > Products* in backend.
#. Pick or create one.
#. Go to the *eCommerce* tab > *Website Attachments*.
#. Add any downloadable attachments you want there. They can exist before or be new.
   They must be public.
#. Save.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/backend-product.png
   :alt: Products view in backend

Once you set up the product attachments, public users will be able to download them:

#. Go to the product eCommerce page.
#. Below the product price and description, you will find a dropdown labeled as *Product downloads*. Click it.
#. Users will download those attachments from there.
#. Attachments will appear in name order.

.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_attachment/static/description/frontend-download.gif
   :alt: Attachments view in backend

Known issues / Roadmap
======================

- Make translatable the name of the attachment in the e-commerce. This will
  mean to deal with the sorting of the translated terms.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <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**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`_:

  * Jairo Llopis
  * Víctor Martínez


* `Sygel <https://www.sygel.es>`_:

  * Ángel García de la Chica Herrera

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-Yajo| image:: https://github.com/Yajo.png?size=40px
    :target: https://github.com/Yajo
    :alt: Yajo

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Yajo| 

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/15.0/website_sale_product_attachment>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
