Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fab4ffc
Adding website_sale_cart_selectable (#134)
mikevhe18 Oct 14, 2016
f488bbe
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
af830e5
[MIG] website_sale_cart_selectable: Migration to 10.0
chienandalu Jul 13, 2017
c557d65
OCA Transbot updated translations from Transifex
oca-transbot Jul 29, 2017
92e2755
[FIX+IMP] website_sale_cart_selectable: Changed + better selectors
pedrobaeza Oct 11, 2017
3fee320
OCA Transbot updated translations from Transifex
oca-transbot Dec 16, 2017
788fa9c
Update translation files
oca-transbot Nov 28, 2018
8f43feb
[MIG] website_sale_cart_selectable: Migration to 12.0
chafique-delli Jul 10, 2020
eef0722
[FIX] remove unnecessary utf8 coding in __init__.py
chafique-delli Jul 13, 2020
e18403f
[FIX] line too long in __manifest__.py
chafique-delli Jul 13, 2020
df56f21
[UPD] Update website_sale_cart_selectable.pot
oca-travis Jul 19, 2020
0c6c6c0
[UPD] README.rst
OCA-git-bot Jul 19, 2020
8d4908c
[ADD] setup.py
OCA-git-bot Jul 19, 2020
d00cc0c
Added translation using Weblate (Spanish)
claudiagn Nov 3, 2020
da6cc8a
Translated using Weblate (Spanish)
claudiagn Nov 3, 2020
98ec655
Added translation using Weblate (French)
ypapouin Nov 23, 2020
cba8100
Translated using Weblate (French)
ypapouin Nov 23, 2020
e708846
Added translation using Weblate (Catalan)
claudiagn Jan 20, 2021
baddffa
Translated using Weblate (Catalan)
claudiagn Jan 20, 2021
dd19c04
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d9d2d1f
[MIG] website_sale_cart_selectable: Migration to 13.0
carmenbianca Oct 22, 2024
077b260
[MIG] website_sale_cart_selectable: Migration to 14.0
carmenbianca Oct 22, 2024
82b514c
[MIG] website_sale_cart_selectable: Migration to 15.0
carmenbianca Oct 22, 2024
f96750b
[MIG] website_sale_cart_selectable: Migration to 16.0
carmenbianca Oct 22, 2024
d29370f
[IMP] website_sale_cart_selectable: Improve documentation
carmenbianca Oct 22, 2024
d84ee50
[FIX] fix compatibility with website_sale_stock
huguesdk Feb 6, 2025
3796b14
[IMP] use double quotes for "add to cart"
huguesdk Feb 6, 2025
b23b1a6
Merge PR #977 into 16.0
OCA-git-bot Jun 5, 2026
b0f0563
[UPD] Update website_sale_cart_selectable.pot
Jun 5, 2026
4797c5a
[BOT] post-merge updates
OCA-git-bot Jun 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ addon | version | maintainers | summary
[website_sale_attribute_filter_form_submit](website_sale_attribute_filter_form_submit/) | 16.0.1.0.0 | | Allow to apply manually the filters on the e-commerce
[website_sale_attribute_filter_multiselect](website_sale_attribute_filter_multiselect/) | 16.0.1.0.0 | | Add multiselect display type for product and new filter for it
[website_sale_cart_expire](website_sale_cart_expire/) | 16.0.1.0.3 | <a href='https://github.com/ivantodorovich'><img src='https://github.com/ivantodorovich.png' width='32' height='32' style='border-radius:50%;' alt='ivantodorovich'/></a> | Cancel carts without activity after a configurable time
[website_sale_cart_selectable](website_sale_cart_selectable/) | 16.0.1.0.0 | | Add a toggle to products for enabling "Add to Cart" functionality in the e-commerce.
[website_sale_category_breadcrumb](website_sale_category_breadcrumb/) | 16.0.1.0.0 | <a href='https://github.com/Rad0van'><img src='https://github.com/Rad0van.png' width='32' height='32' style='border-radius:50%;' alt='Rad0van'/></a> | Displays Product Category Breadcrumb(s) in eCommerce
[website_sale_checkout_skip_payment](website_sale_checkout_skip_payment/) | 16.0.1.2.2 | | Skip payment for logged users in checkout process
[website_sale_comparison_hide_price](website_sale_comparison_hide_price/) | 16.0.1.0.0 | | Hide product prices on the shop
Expand Down
2 changes: 1 addition & 1 deletion setup/_metapackage/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.0.20251006.0
16.0.20260605.0
1 change: 1 addition & 0 deletions setup/_metapackage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'odoo-addon-website_sale_attribute_filter_form_submit>=16.0dev,<16.1dev',
'odoo-addon-website_sale_attribute_filter_multiselect>=16.0dev,<16.1dev',
'odoo-addon-website_sale_cart_expire>=16.0dev,<16.1dev',
'odoo-addon-website_sale_cart_selectable>=16.0dev,<16.1dev',
'odoo-addon-website_sale_category_breadcrumb>=16.0dev,<16.1dev',
'odoo-addon-website_sale_checkout_skip_payment>=16.0dev,<16.1dev',
'odoo-addon-website_sale_comparison_hide_price>=16.0dev,<16.1dev',
Expand Down
6 changes: 6 additions & 0 deletions setup/website_sale_cart_selectable/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
110 changes: 110 additions & 0 deletions website_sale_cart_selectable/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============================
Website Sale Cart Selectable
============================

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

.. |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/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/16.0/website_sale_cart_selectable
: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-16-0/e-commerce-16-0-website_sale_cart_selectable
: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=16.0
:alt: Try me on Runboat

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

This module allows you to enable or disable the "Add to cart" button in the
e-commerce on a per-product basis.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

Odoo allows you to set products as unpublished, effectively disallowing people
from buying these products. However, a company may want to publish a product
online to allow a customer to view the product, but NOT allow the customer to
purchase the product.

This module addresses that need by adding a toggle for the display of the "Add
to cart" button.

Usage
=====

To use this module, you need to:

#. Go to menu *Website -> Products -> Products*
#. Edit or create one.
#. Within the *eCommerce* tab, there will be a new field named *Display "Add
to Cart" Button*
#. Set it or unset it to enable or disable the *Add To Cart* button in that
product.

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_cart_selectable%0Aversion:%2016.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
~~~~~~~

* OpenSynergy Indonesia
* Tecnativa
* Akretion
* Coop IT Easy SC

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

* Michael Viriyananda <viriyananda.michael@gmail.com>
* David Vidal <david.vidal@tecnativa.com>
* Chafique Delli <chafique.delli@akretion.com>
* Carmen Bianca BAKKER <carmen@coopiteasy.be>

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions website_sale_cart_selectable/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions website_sale_cart_selectable/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2017 Tecnativa
# Copyright 2020 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Website Sale Cart Selectable",
"summary": 'Add a toggle to products for enabling "Add to Cart"'
" functionality in the e-commerce.",
"version": "16.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "OpenSynergy Indonesia, Tecnativa,"
" Akretion, Coop IT Easy SC, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["website_sale"],
"data": [
"views/product_view.xml",
"views/website_sale_template.xml",
],
"installable": True,
}
28 changes: 28 additions & 0 deletions website_sale_cart_selectable/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_cart_selectable
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-01-20 17:44+0000\n"
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: website_sale_cart_selectable
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_product__website_btn_addtocart_published
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_template__website_btn_addtocart_published
msgid "Button Add To Cart"
msgstr "Botó afegir a la cistella"

#. module: website_sale_cart_selectable
#: model:ir.model,name:website_sale_cart_selectable.model_product_template
msgid "Product Template"
msgstr "Plantilla de producte"
28 changes: 28 additions & 0 deletions website_sale_cart_selectable/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_cart_selectable
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-11-03 13:08+0000\n"
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: website_sale_cart_selectable
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_product__website_btn_addtocart_published
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_template__website_btn_addtocart_published
msgid "Button Add To Cart"
msgstr "Botón Añadir a la cesta"

#. module: website_sale_cart_selectable
#: model:ir.model,name:website_sale_cart_selectable.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"
28 changes: 28 additions & 0 deletions website_sale_cart_selectable/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_cart_selectable
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-11-23 15:55+0000\n"
"Last-Translator: Yann Papouin <y.papouin@dec-industrie.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: website_sale_cart_selectable
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_product__website_btn_addtocart_published
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_template__website_btn_addtocart_published
msgid "Button Add To Cart"
msgstr "Bouton Ajouter au panier"

#. module: website_sale_cart_selectable
#: model:ir.model,name:website_sale_cart_selectable.model_product_template
msgid "Product Template"
msgstr "Modèle d'article"
25 changes: 25 additions & 0 deletions website_sale_cart_selectable/i18n/website_sale_cart_selectable.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_cart_selectable
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: website_sale_cart_selectable
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_product__website_btn_addtocart_published
#: model:ir.model.fields,field_description:website_sale_cart_selectable.field_product_template__website_btn_addtocart_published
msgid "Display \"Add to Cart\" Button"
msgstr ""

#. module: website_sale_cart_selectable
#: model:ir.model,name:website_sale_cart_selectable.model_product_template
msgid "Product"
msgstr ""
1 change: 1 addition & 0 deletions website_sale_cart_selectable/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product
12 changes: 12 additions & 0 deletions website_sale_cart_selectable/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class ProductTemplate(models.Model):
_inherit = "product.template"

website_btn_addtocart_published = fields.Boolean(
string='Display "Add to Cart" Button', copy=False, default=True
)
7 changes: 7 additions & 0 deletions website_sale_cart_selectable/readme/CONTEXT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Odoo allows you to set products as unpublished, effectively disallowing people
from buying these products. However, a company may want to publish a product
online to allow a customer to view the product, but NOT allow the customer to
purchase the product.

This module addresses that need by adding a toggle for the display of the "Add
to cart" button.
4 changes: 4 additions & 0 deletions website_sale_cart_selectable/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Michael Viriyananda <viriyananda.michael@gmail.com>
* David Vidal <david.vidal@tecnativa.com>
* Chafique Delli <chafique.delli@akretion.com>
* Carmen Bianca BAKKER <carmen@coopiteasy.be>
2 changes: 2 additions & 0 deletions website_sale_cart_selectable/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows you to enable or disable the "Add to cart" button in the
e-commerce on a per-product basis.
8 changes: 8 additions & 0 deletions website_sale_cart_selectable/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
To use this module, you need to:

#. Go to menu *Website -> Products -> Products*
#. Edit or create one.
#. Within the *eCommerce* tab, there will be a new field named *Display "Add
to Cart" Button*
#. Set it or unset it to enable or disable the *Add To Cart* button in that
product.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading