Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0e796e1
[9.0] [PORT + IMP] pos_require_customer (#74)
legalsylvain Nov 2, 2016
c456d92
OCA Transbot updated translations from Transifex
oca-transbot Dec 17, 2016
8384926
[MIG] pos_customer_required: Migration to 12.0
Jan 31, 2020
8b39bd0
[FIX] Tests and use related field instead of computed
ivantodorovich Jan 31, 2020
cd65b13
Update website
Feb 2, 2020
26fb223
[UPD] Update pos_customer_required.pot
oca-travis Feb 11, 2020
5c9002f
[UPD] README.rst
OCA-git-bot Feb 11, 2020
f6ffd25
Update translation files
oca-transbot Feb 11, 2020
f25f5a8
Added translation using Weblate (Spanish)
CarlesAntoli Feb 12, 2020
242453d
Translated using Weblate (Catalan)
CarlesAntoli Feb 12, 2020
f9b8fd2
Translated using Weblate (Spanish)
CarlesAntoli Feb 12, 2020
be8fb65
[FIX] Fixed @api.constrains issue
krunal267 Jun 11, 2020
6cbe56f
pos_customer_required 12.0.1.0.1
OCA-git-bot Jun 11, 2020
19f43a0
Update translation files
oca-transbot Aug 16, 2020
4ac3708
[IMP] pos_customer_required: black, isort, prettier
KNVx Jan 12, 2022
2e484fb
[MIG] pos_customer_required: Migration to 14.0
KNVx Jan 13, 2022
beb3e0e
[UPD] Update pos_customer_required.pot
Aug 30, 2022
238e616
Added translation using Weblate (Italian)
mymage Mar 16, 2023
e66a2af
Translated using Weblate (Italian)
mymage Mar 16, 2023
7f7f291
[UPD] README.rst
OCA-git-bot Sep 3, 2023
8d3d3c4
Update translation files
weblate Oct 9, 2023
cd53baa
Translated using Weblate (Spanish)
Ivorra78 Mar 22, 2024
de455e3
[IMP] pos_customer_required: pre-commit auto fixes
P-H-Phuc Jul 10, 2025
a116ae5
[MIG] pos_customer_required: Migration to 18.0
P-H-Phuc Jul 10, 2025
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
142 changes: 142 additions & 0 deletions pos_customer_required/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
==============================
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/18.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-18-0/pos-18-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=18.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|

.. |image| 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
=====

|Try me on Runbot|

.. |Try me on Runbot| image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
: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:%2018.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 <Jos.DeGraeve@apertoso.be>
- Sylvain LE GAL
<`https://twitter.com/legalsylvain\\> <https://twitter.com/legalsylvain\>>`__
- Pedro M. Baeza <pedro.baeza@gmail.com> ( reviews & feedback )
- Druidoo <`https://www.druidoo.io\\> <https://www.druidoo.io\>>`__
- Eric Antones <eantones@nuobit.com>
- Kilian Niubo <kniubo@nuobit.com>
- `Trobz <https://www.trobz.com>`__

- Phan Hong Phuc <phucph@trobz.com>

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/18.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
30 changes: 30 additions & 0 deletions pos_customer_required/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2004 apertoso NV - Jos DE GRAEVE <Jos.DeGraeve@apertoso.be>
# Copyright 2016 La Louve - Sylvain LE GAL <https://twitter.com/legalsylvain>
# Copyright 2019 Druidoo - (https://www.druidoo.io)
# Copyright 2022 NuoBiT - Eric Antones <eantones@nuobit.com>
# Copyright 2022 NuoBiT - Kilian Niubo <kniubo@nuobit.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

{
"name": "Point of Sale Require Customer",
"version": "18.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",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_customer_required/static/src/js/payment_screen.esm.js",
"pos_customer_required/static/src/js/product_screen.esm.js",
]
},
"installable": True,
}
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 <mtbochaca@gmail.com>, 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 <carlesantoli@hotmail.com>\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
Loading