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

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

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

.. |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/17.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-17-0/e-commerce-17-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=17.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:

1. You need permissions to access system settings.
2. Go to *Settings > General Settings > Activate the developer mode*.
3. Go to *Settings > Technical > Database Structure > Attachments*.
4. Pick or create one.
5. Enable *Attached To > Is public document*.
6. Use the field *Attached in products* to choose the products.

|backend-attachment|

To be able to filter attachments per website:

1. Go to *Website > Configuration > Settings > Website*.
2. Create more than one.
3. Go to *Settings > Technical > Database Structure > Attachments*
4. Pick or create one.
5. Select a website.
6. Save

To toggle attachment icons in the website:

1. Go to any product in your eCommerce.
2. In web editor toggle *Customize > Product downloads > Download
   icons*.

|frontend-icons|

.. |backend-attachment| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.0/website_sale_product_attachment/static/description/backend-attachment.png
.. |frontend-icons| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.0/website_sale_product_attachment/static/description/frontend-icons.png

Usage
=====

To add publicly downloadable attachments to a product template:

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

|backend-product|

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

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

|frontend-download|

.. |backend-product| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.0/website_sale_product_attachment/static/description/backend-product.png
.. |frontend-download| image:: https://raw.githubusercontent.com/OCA/e-commerce/17.0/website_sale_product_attachment/static/description/frontend-download.gif

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:%2017.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
  - Pilar Vargas

- `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/17.0/website_sale_product_attachment>`_ project on GitHub.

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