Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] pos_restricted_customer_list: Migration to 16.0 #1143

Open
wants to merge 18 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
00e17d0
[8.0][ADD] New module to only load specific customers in POS. (#168)
NL66278 Jun 8, 2017
014315f
OCA Transbot updated translations from Transifex
oca-transbot Jun 10, 2017
ee8b519
OCA Transbot updated translations from Transifex
oca-transbot Jun 17, 2017
2f22328
OCA Transbot updated translations from Transifex
oca-transbot Nov 25, 2017
fe2501e
[UPD] Update pos_restricted_customer_list.pot
oca-travis Jun 22, 2018
f69d5a9
[ADD] icon.png
OCA-git-bot Apr 3, 2019
9aa37c9
[MIG] POS Restricted Customer List from 8.0 to 9.0
ThomasBinsfeld Apr 25, 2019
e088106
[UPD] Update pos_restricted_customer_list.pot
oca-travis Jun 7, 2019
4844bdc
[UPD] README.rst
OCA-git-bot Jul 29, 2019
637eef9
[IMP] pos_restricted_customer_list: black, isort, prettier
acsonefho Aug 28, 2020
cfccd54
[MIG] pos_restricted_customer_list: Migration to 13.0
acsonefho Aug 28, 2020
f8925c9
[MIG] pos_restricted_customer_list: Migration to 13.0
glitchov Dec 16, 2020
7301cfa
[MIG] pos_restricted_customer_list: Migration to 13.0
glitchov Dec 16, 2020
1cd7a89
[MIG] pos_restricted_customer_list (partner tag imp)
glitchov Feb 12, 2021
08afc91
[FIX] script tag should not have spaces/carriage return or the asset …
benwillig Apr 5, 2023
501a071
[FIX] new_partner_domain should use the partner_write date as filter
benwillig Jun 22, 2023
a0f366c
[FIX] readd conversion of integer field as it crashed when trying to …
benwillig Aug 24, 2023
f3ec64f
[MIG] pos_restricted_customer_list: Migration to 16.0
benwillig Jan 25, 2024
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
108 changes: 108 additions & 0 deletions pos_restricted_customer_list/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
=============================
POS: restricted customer list
=============================

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

.. |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/16.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-16-0/pos-16-0-pos_restricted_customer_list
: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|

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.
You can also filter customer based on a partner tag. The tag will also be assigned to new partners.

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.
It also allows to filter partners based on a partner category.

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

* Therp BV

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

* Ronald Portier <[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_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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
26 changes: 26 additions & 0 deletions pos_restricted_customer_list/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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": "16.0.1.0.0",
"development_status": "Production/Stable",
"category": "Sales/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",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": [
"views/res_partner.xml",
"views/res_config_settings.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_restricted_customer_list/static/src/js/PartnerDetailsEdit.js",
],
},
"installable": True,
}
29 changes: 29 additions & 0 deletions pos_restricted_customer_list/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_restricted_customer_list
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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"
Loading
Loading