Skip to content

Commit

Permalink
Merge PR #633 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed May 8, 2021
2 parents bca46fa + 14c4163 commit 0b48a9d
Show file tree
Hide file tree
Showing 16 changed files with 730 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pos_require_product_quantity/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
===============================
Require Product Quantity in POS
===============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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:/OCA/pos/tree/12.0/pos_require_product_quantity
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_require_product_quantity
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/12.0
:alt: Try me on Runbot

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

This module forbids adding empty order lines on POS orders.

When clicking on the "Payment" button in the Point of Sale,
a popup is shown if product quantity for one or more order
lines is set to 0.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https:/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:/OCA/pos/issues/new?body=module:%20pos_require_product_quantity%0Aversion:%2012.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
~~~~~~~

* Coop IT Easy SCRLfs

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

* Robin Keunen <[email protected]>
* Iván Todorovich <[email protected]>
* Foram Shah <[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.

This module is part of the `OCA/pos <https:/OCA/pos/tree/12.0/pos_require_product_quantity>`_ 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 pos_require_product_quantity/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions pos_require_product_quantity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019-2020 Coop IT Easy SCRLfs
# Robin Keunen <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Require Product Quantity in POS",
"version": "14.0.1.0.0",
"author": "Coop IT Easy SCRLfs, Odoo Community Association (OCA)",
"website": "https:/OCA/pos",
"license": "AGPL-3",
"category": "Point of Sale",
"summary": """
A popup is shown if product quantity is set to 0 for one or more order
lines when clicking on "Payment" button.
""",
"depends": [
"point_of_sale",
],
"data": [
"views/pos_config.xml",
"views/assets.xml",
],
"installable": True,
}
50 changes: 50 additions & 0 deletions pos_require_product_quantity/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_require_product_quantity
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-07-27 11:19+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\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: pos_require_product_quantity
#. openerp-web
#: code:addons/pos_require_product_quantity/static/src/js/screens.js:30
#, python-format
msgid "Missing quantities"
msgstr "Cantidades faltantes"

#. module: pos_require_product_quantity
#. openerp-web
#: code:addons/pos_require_product_quantity/static/src/js/screens.js:32
#, python-format
msgid "No quantity set for products:"
msgstr "No hay cantidad establecida para productos:"

#. module: pos_require_product_quantity
#: model:ir.model,name:pos_require_product_quantity.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del punto de venta"

#. module: pos_require_product_quantity
#: model:ir.model.fields,field_description:pos_require_product_quantity.field_pos_config__require_product_quantity
msgid "Require product quantity in POS"
msgstr "Requerir cantidad de producto en PdV"

#. module: pos_require_product_quantity
#: model_terms:ir.ui.view,arch_db:pos_require_product_quantity.view_pos_config_form
msgid ""
"Show pop-up when product quantity is set to 0 for one or more order lines "
"when clicking on \"Payment\" button."
msgstr ""
"Mostrar ventana emergente cuando la cantidad del producto se establece en 0 "
"para una o más líneas de pedido al hacer clic en el botón \"Pago\"."
44 changes: 44 additions & 0 deletions pos_require_product_quantity/i18n/pos_require_product_quantity.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_require_product_quantity
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.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: pos_require_product_quantity
#. openerp-web
#: code:addons/pos_require_product_quantity/static/src/js/screens.js:30
#, python-format
msgid "Missing quantities"
msgstr ""

#. module: pos_require_product_quantity
#. openerp-web
#: code:addons/pos_require_product_quantity/static/src/js/screens.js:32
#, python-format
msgid "No quantity set for products:"
msgstr ""

#. module: pos_require_product_quantity
#: model:ir.model,name:pos_require_product_quantity.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: pos_require_product_quantity
#: model:ir.model.fields,field_description:pos_require_product_quantity.field_pos_config__require_product_quantity
msgid "Require product quantity in POS"
msgstr ""

#. module: pos_require_product_quantity
#: model_terms:ir.ui.view,arch_db:pos_require_product_quantity.view_pos_config_form
msgid "Show pop-up when product quantity is set to 0 for one or more order lines when clicking on \"Payment\" button."
msgstr ""

1 change: 1 addition & 0 deletions pos_require_product_quantity/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pos_config
10 changes: 10 additions & 0 deletions pos_require_product_quantity/models/pos_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from odoo import fields, models


class PosConfig(models.Model):
_inherit = "pos.config"

require_product_quantity = fields.Boolean(
string="Require product quantity in POS",
default=False,
)
3 changes: 3 additions & 0 deletions pos_require_product_quantity/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Robin Keunen <[email protected]>
* Iván Todorovich <[email protected]>
* Foram Shah <[email protected]>
5 changes: 5 additions & 0 deletions pos_require_product_quantity/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module forbids adding empty order lines on POS orders.

When clicking on the "Payment" button in the Point of Sale,
a popup is shown if product quantity for one or more order
lines is set to 0.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0b48a9d

Please sign in to comment.