Skip to content

Commit

Permalink
Merge b595701 into 790a6dc
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBinsfeld committed Apr 25, 2019
2 parents 790a6dc + b595701 commit 52bbcfc
Show file tree
Hide file tree
Showing 72 changed files with 2,245 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -21,6 +21,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
*.eggs

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
103 changes: 103 additions & 0 deletions pos_restricted_customer_list/README.rst
@@ -0,0 +1,103 @@
=============================
POS: restricted customer list
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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/9.0/pos_restricted_customer_list
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-9-0/pos-9-0-pos_restricted_customer_list
: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/9.0
:alt: Try me on Runbot

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

In the point of sale, many installations work with cash registers with
anonymous customers. In that case, loading thousands, or even tens of
thousands of customers to each cash register is completely useless, and also
a huge danger for leaking privacy sensible data.

This module will limit the download of customer data to only those customers
where this has been specifically requested.

**Table of contents**

.. contents::
:local:

Usage
=====

To allow a customer to be displayed in the PoS, just check the 'Available in POS' field.

Development
===========

The module will add a flag 'available_in_pos' to res.partner. It will override
to domain of customers downloaded with pos to only download the partners
where this flag has been set.

Known issues / Roadmap
======================

I see two obvious extensions to the functionality already developed:
1. Add back on demand customer lookup (only when online);
2. Make customers available to pos, dependent on the pos session or user.
In pos.config or res.users (or both) there could be a selection field customer_loading with values:

- 'no_one': disable customer loading (usefull for self service pos, without customer feature)
- 'selection': the feature now implemented (load only checked customers) (default value)
- 'all': for super cashier, (after sale PoS), etc.

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_restricted_customer_list%0Aversion:%209.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
~~~~~~~

* Therp BV

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

* Ronald Portier <ronald@therp.nl>

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/9.0/pos_restricted_customer_list>`_ 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_restricted_customer_list/__init__.py
@@ -0,0 +1 @@
from . import models
24 changes: 24 additions & 0 deletions pos_restricted_customer_list/__openerp__.py
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Copyright 2017-2019 Therp BV <https://therp.nl>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
'name': "POS: restricted customer list",
'version': '9.0.1.0.0',
'development_status': "Production/Stable",
'category': "Point Of Sale"'',
'summary': "This module will limit the download of customer data to "
"only those customers where this has been specifically "
"requested.",
'author': "Therp BV, Odoo Community Association (OCA)",
'website': "https://github.com/OCA/pos/tree/9.0/"
"pos_restricted_customer_list",
'license': "AGPL-3",
'depends': [
'point_of_sale',
],
'data': [
'views/assets_backend.xml',
'views/res_partner.xml',
],
}
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/am.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\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: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "ተባባሪ"
30 changes: 30 additions & 0 deletions pos_restricted_customer_list/i18n/ar.po
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "الشريك"
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/bg.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\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: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Партньор"
30 changes: 30 additions & 0 deletions pos_restricted_customer_list/i18n/bs.po
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n"
"Language: bs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Partner"
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/ca.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\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"

#. module: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Empresa"
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/cs.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Společník"
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/da.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n"
"Language: da\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: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Partner"
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/de.po
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-25 08:42+0000\n"
"PO-Revision-Date: 2017-06-09 03:25+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\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: pos_restricted_customer_list
#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos
msgid "Available for POS"
msgstr ""

#. module: pos_restricted_customer_list
#: model:ir.model,name:pos_restricted_customer_list.model_res_partner
msgid "Partner"
msgstr "Partner"

0 comments on commit 52bbcfc

Please sign in to comment.