Skip to content

Commit

Permalink
[16.0][ADD] pos_disable_product_variant
Browse files Browse the repository at this point in the history
New module for excluding specific variants from Point of Sale.
  • Loading branch information
ecino authored and OCA-git-bot committed Jul 3, 2024
1 parent 00a2e3c commit 2e88f6b
Show file tree
Hide file tree
Showing 44 changed files with 2,245 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ addon | version | maintainers | summary
[pos_customer_comment](pos_customer_comment/) | 16.0.1.0.2 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Display Customer comment in the PoS front office and allow to edit and save it by the cashier
[pos_daily_sales_reports_category_only](pos_daily_sales_reports_category_only/) | 16.0.1.0.0 | | Show Sales Reports by Category
[pos_default_partner](pos_default_partner/) | 16.0.1.0.0 | | Add a default customer in pos order
[pos_disable_product_variant](pos_disable_product_variant/) | 16.0.1.0.0 | [![ecino](https://github.com/ecino.png?size=30px)](https://github.com/ecino) | Allows to selectively enable or disable product variants in POS
[pos_discount_all](pos_discount_all/) | 16.0.1.0.1 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Display discount amount on PoS cashier screen and print it on ticketcalculated from the difference between a sale with default pricelist
[pos_edit_order_line](pos_edit_order_line/) | 16.0.1.0.1 | | POS Edit Order Line
[pos_escpos_status](pos_escpos_status/) | 16.0.1.0.1 | | Point of sale: fetch status for 'escpos' driver
Expand Down
82 changes: 82 additions & 0 deletions pos_disable_product_variant/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
========================================
Point Of Sale - Disable Product Variants
========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-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%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_disable_product_variant
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_disable_product_variant
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/pos&target_branch=16.0
:alt: Try me on Runboat

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

This module allows to handle inclusion/exclusion of products
in Point of Sale at the variant level.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
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 <https://github.com/OCA/pos/issues/new?body=module:%20pos_disable_product_variant%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
~~~~~~~

* Emanuel Cino

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

* Emanuel Cino <[email protected]>

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-ecino| image:: https://github.com/ecino.png?size=40px
:target: https://github.com/ecino
:alt: ecino

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

|maintainer-ecino|

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_disable_product_variant>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions pos_disable_product_variant/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2016 Sergio Teruel <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
from .hooks import set_pos_availability_on_variant
18 changes: 18 additions & 0 deletions pos_disable_product_variant/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2023 Emanuel Cino <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Point Of Sale - Disable Product Variants",
"summary": "Allows to selectively enable or disable product variants in POS",
"version": "16.0.1.0.0",
"category": "Point of Sale",
"website": "https://github.com/OCA/pos",
"development_status": "Beta",
"author": "Emanuel Cino, " "Odoo Community Association (OCA)",
"maintainers": ["ecino"],
"license": "AGPL-3",
"installable": True,
"depends": ["point_of_sale"],
"data": ["views/product_views.xml"],
"post_init_hook": "set_pos_availability_on_variant",
}
11 changes: 11 additions & 0 deletions pos_disable_product_variant/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html


def set_pos_availability_on_variant(cr, registry):
sql = """
UPDATE product_product pp
SET available_in_pos = pt.available_in_pos
FROM product_template pt
WHERE pt.id = pp.product_tmpl_id
"""
cr.execute(sql)
55 changes: 55 additions & 0 deletions pos_disable_product_variant/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_variant_sale_price
#
# Translators:
# Carles Antoli <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-14 05:29+0000\n"
"PO-Revision-Date: 2022-04-13 14:05+0000\n"
"Last-Translator: Noel estudillo <[email protected]>\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\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: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price
msgid "Fix Price"
msgstr "Preu fix"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price
msgid "List Price"
msgstr "Preu de llista"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_product
msgid "Product"
msgstr "Producte"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_template
msgid "Product Template"
msgstr "Plantilla del producte"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price
msgid "Sale Price"
msgstr "Preu de venta"

#. module: product_variant_sale_price
#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price
msgid ""
"The sale price is managed from the product template. Click on the 'Configure "
"Variants' button to set the extra attribute prices."
msgstr ""
"El preu de venda es gestiona des de la plantilla del producte. Feu clic al "
"botó \"Configura les variants\" per establir els preus dels atributs "
"addicionals."
52 changes: 52 additions & 0 deletions pos_disable_product_variant/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_variant_sale_price
#
# Translators:
# OCA Transbot <[email protected]>, 2016
# Niki Waibel <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-11 03:45+0000\n"
"PO-Revision-Date: 2016-11-11 03:45+0000\n"
"Last-Translator: Niki Waibel <[email protected]>, 2016\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price
msgid "Fix Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price
msgid "List Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_product
msgid "Product"
msgstr "Produkt"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_template
msgid "Product Template"
msgstr "Produktvorlage"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price
msgid "Sale Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price
msgid ""
"The sale price is managed from the product template. Click on the 'Configure "
"Variants' button to set the extra attribute prices."
msgstr ""
52 changes: 52 additions & 0 deletions pos_disable_product_variant/i18n/el_GR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_variant_sale_price
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-18 05:12+0000\n"
"PO-Revision-Date: 2017-02-18 05:12+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\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"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price
msgid "Fix Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price
msgid "List Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_product
msgid "Product"
msgstr "Προϊόν"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_template
msgid "Product Template"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price
msgid "Sale Price"
msgstr ""

#. module: product_variant_sale_price
#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price
msgid ""
"The sale price is managed from the product template. Click on the 'Configure "
"Variants' button to set the extra attribute prices."
msgstr ""
67 changes: 67 additions & 0 deletions pos_disable_product_variant/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_variant_sale_price
#
# Translators:
# Pedro M. Baeza <[email protected]>, 2016
# OCA Transbot <[email protected]>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-11 03:45+0000\n"
"PO-Revision-Date: 2016-11-11 03:45+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2016\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price
msgid "Fix Price"
msgstr "Precio fijo"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price
#, fuzzy
#| msgid "Fix Price"
msgid "List Price"
msgstr "Precio fijo"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_product
msgid "Product"
msgstr "Producto"

#. module: product_variant_sale_price
#: model:ir.model,name:product_variant_sale_price.model_product_template
msgid "Product Template"
msgstr "Plantilla de producto"

#. module: product_variant_sale_price
#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price
#, fuzzy
#| msgid "Fix Price"
msgid "Sale Price"
msgstr "Precio fijo"

#. module: product_variant_sale_price
#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price
msgid ""
"The sale price is managed from the product template. Click on the 'Configure "
"Variants' button to set the extra attribute prices."
msgstr ""

#~ msgid ""
#~ "{'invisible': [\n"
#~ " ('product_variant_count', "
#~ "'>', 1)\n"
#~ " ]}"
#~ msgstr ""
#~ "{'invisible': [\n"
#~ " ('product_variant_count', "
#~ "'>', 1)\n"
#~ " ]}"
Loading

0 comments on commit 2e88f6b

Please sign in to comment.