Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
129 changes: 129 additions & 0 deletions pos_customer_required/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
==============================
Point of Sale Require Customer
==============================

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

.. |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_customer_required
: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_customer_required
: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/pos&target_branch=16.0
:alt: Try me on Runboat

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

This module was written to extend the functionality of odoo pos
and allows you to require a customer for each pos order. In the
pos session configuration, you can choose to require the customer for pos
orders.

If a customer is not selected, the pos ui will display an error message.
In the backend the customer field is required when needed.

Two new options are available:

* Customer 'Required before starting the order';
* Customer 'Required before paying';

'Required before starting the order' Option
-------------------------------------------
In the frontend PoS, the default screen is the screen to select customers.

* Users are not allowed to start selling before having selected a customer;
* Users can not 'deselect a customer', only select an other one;

'Required before paying' Option
-------------------------------
In the frontend PoS, the user can start selling, but if the user tries to
make payment and if a customer is not selected, the pos ui will display an
error message.


.. image:: https://raw.githubusercontent.com/pos_customer_required/static/description/frontend_pos_error_message.png

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

* go to point of sale -> configuration -> point of sales
* select the point of sales you want configure
* search for the "Require Customer" and choose between the following values:
* 'Optional'; (this module has no effect on this PoS config)
* 'Required before paying';
* 'Required before starting the order';

Usage
=====

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/184/9.0

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_customer_required%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
~~~~~~~

* Apertoso NV
* La Louve
* NuoBiT

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

* Jos De Graeve <[email protected]>
* Sylvain LE GAL <https://twitter.com/legalsylvain>
* Pedro M. Baeza <[email protected]> ( reviews & feedback )
* Druidoo <https://www.druidoo.io>
* Eric Antones <[email protected]>
* Kilian Niubo <[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://github.com/OCA/pos/tree/16.0/pos_customer_required>`_ 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_customer_required/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions pos_customer_required/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2004 apertoso NV - Jos DE GRAEVE <[email protected]>
# Copyright 2016 La Louve - Sylvain LE GAL <https://twitter.com/legalsylvain>
# Copyright 2019 Druidoo - (https://www.druidoo.io)
# Copyright 2022 NuoBiT - Eric Antones <[email protected]>
# Copyright 2022 NuoBiT - Kilian Niubo <[email protected]>
# Copyright 2025 CoopITEasy - Simon Hick <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Point of Sale Require Customer",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"summary": "Point of Sale Require Customer",
"author": "Apertoso NV, La Louve, NuoBiT, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": [
"point_of_sale",
],
"data": [
"views/pos_config_view.xml",
"views/pos_order_view.xml",
"views/res_config_settings_views.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_customer_required/static/src/js/**/*.js",
"pos_customer_required/static/src/xml/**/*.xml",
],
},
}
127 changes: 127 additions & 0 deletions pos_customer_required/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_required
#
# Translators:
# Marc Tormo i Bochaca <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-28 05:50+0000\n"
"PO-Revision-Date: 2020-02-12 19:13+0000\n"
"Last-Translator: Carles Antoli <[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 3.10\n"

#. module: pos_customer_required
#. openerp-web
#: code:addons/pos_customer_required/static/src/js/PaymentScreen.js:0
#, python-format
msgid "An anonymous order cannot be confirmed"
msgstr "Una comanda anònima no pot ser confirmada"

#. module: pos_customer_required
#: code:addons/pos_customer_required/models/pos_make_payment.py:0
#, python-format
msgid ""
"An anonymous order cannot be confirmed.\n"
"Please select a customer for this order."
msgstr ""
"Una comanda anònima no pot ser confirmada.\n"
"Si us plau seleccioneu un client per a aquesta comanda."

#. module: pos_customer_required
#: code:addons/pos_customer_required/models/pos_order.py:0
#, python-format
msgid "Customer is required for this order and is missing."
msgstr "En necessari que hi hagi un client per a aquesta comanda i no hi és."

#. module: pos_customer_required
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_config__display_name
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_make_payment__display_name
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_order__display_name
msgid "Display Name"
msgstr ""

#. module: pos_customer_required
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_config__id
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_make_payment__id
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_order__id
msgid "ID"
msgstr ""

#. module: pos_customer_required
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_config____last_update
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_make_payment____last_update
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_customer_required
#: model:ir.model.fields.selection,name:pos_customer_required.selection__pos_config__require_customer__no
msgid "Optional"
msgstr "Opcional"

#. module: pos_customer_required
#. openerp-web
#: code:addons/pos_customer_required/static/src/js/PaymentScreen.js:0
#, python-format
msgid "Please select a customer for this order."
msgstr "Si us plau seleccioneu un client per a aquesta comanda."

#. module: pos_customer_required
#: model:ir.model,name:pos_customer_required.model_pos_config
#, fuzzy
msgid "Point of Sale Configuration"
msgstr "Pagament del Punt de Venda "

#. module: pos_customer_required
#: model:ir.model,name:pos_customer_required.model_pos_make_payment
msgid "Point of Sale Make Payment Wizard"
msgstr ""

#. module: pos_customer_required
#: model:ir.model,name:pos_customer_required.model_pos_order
#, fuzzy
msgid "Point of Sale Orders"
msgstr "Punt de Venda "

#. module: pos_customer_required
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_config__require_customer
#: model:ir.model.fields,field_description:pos_customer_required.field_pos_order__require_customer
#: model_terms:ir.ui.view,arch_db:pos_customer_required.view_pos_config_form
msgid "Require Customer"
msgstr "Client requerit"

#. module: pos_customer_required
#: model:ir.model.fields,help:pos_customer_required.field_pos_config__require_customer
#: model:ir.model.fields,help:pos_customer_required.field_pos_order__require_customer
msgid ""
"Require customer for orders in this point of sale:\n"
"* 'Optional' (customer is optional);\n"
"* 'Required before paying';\n"
"* 'Required before starting the order';"
msgstr ""
"Requerir client per a comandes en aquest punt de venda:\n"
"* 'Opcional' (el client és opcional);\n"
"* 'Requerit abans de pagar';\n"
"* 'Requerit abans d'entrar la comanda';"

#. module: pos_customer_required
#: model:ir.model.fields.selection,name:pos_customer_required.selection__pos_config__require_customer__payment
msgid "Required before paying"
msgstr "Requerit abans de pagar"

#. module: pos_customer_required
#: model:ir.model.fields.selection,name:pos_customer_required.selection__pos_config__require_customer__order
msgid "Required before starting the order"
msgstr "Requerit abans d'entrar la comanda"

#~ msgid "Point of Sale Payment"
#~ msgstr "Pagament del Punt de Venda"
Loading