diff --git a/pos_restricted_customer_list/README.rst b/pos_restricted_customer_list/README.rst index 0e0e94e0..b1d21fb5 100644 --- a/pos_restricted_customer_list/README.rst +++ b/pos_restricted_customer_list/README.rst @@ -1,10 +1,29 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -============================ -POS Restricted Customer List -============================ +============================= +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 @@ -14,56 +33,71 @@ 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. -Technical information -===================== +**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. -Roadmap -======= +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. +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 `_. +Bugs are tracked on `GitHub 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. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Therp BV + Contributors ------------- +~~~~~~~~~~~~ * Ronald Portier +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit http://odoo-community.org. +This module is part of the `OCA/pos `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_restricted_customer_list/__init__.py b/pos_restricted_customer_list/__init__.py index d1501cd1..0650744f 100644 --- a/pos_restricted_customer_list/__init__.py +++ b/pos_restricted_customer_list/__init__.py @@ -1,4 +1 @@ -# -*- coding: utf-8 -*- -# © 2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/pos_restricted_customer_list/__openerp__.py b/pos_restricted_customer_list/__openerp__.py index 1310e8f2..846fdf95 100644 --- a/pos_restricted_customer_list/__openerp__.py +++ b/pos_restricted_customer_list/__openerp__.py @@ -1,14 +1,19 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2017-2019 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + { - 'name': 'POS with limited list of customers downloaded', - 'version': '8.0.0.1.0', - 'category': 'Point Of Sale', - 'summary': 'Optimise load time for POS where customer data not needed', - 'author': 'Therp BV, Odoo Community Association (OCA)', - 'website': 'https://therp.nl', - 'license': 'AGPL-3', + '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', ], @@ -16,5 +21,4 @@ 'views/assets_backend.xml', 'views/res_partner.xml', ], - 'qweb': [], } diff --git a/pos_restricted_customer_list/i18n/am.po b/pos_restricted_customer_list/i18n/am.po index 95b66b0e..ac5ec93c 100644 --- a/pos_restricted_customer_list/i18n/am.po +++ b/pos_restricted_customer_list/i18n/am.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/ar.po b/pos_restricted_customer_list/i18n/ar.po index 4f7a9b0f..1f4ac088 100644 --- a/pos_restricted_customer_list/i18n/ar.po +++ b/pos_restricted_customer_list/i18n/ar.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" @@ -20,7 +20,7 @@ msgstr "" "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/bg.po b/pos_restricted_customer_list/i18n/bg.po index afc8bdee..2c256548 100644 --- a/pos_restricted_customer_list/i18n/bg.po +++ b/pos_restricted_customer_list/i18n/bg.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/bs.po b/pos_restricted_customer_list/i18n/bs.po index b5a5b661..e3169ce6 100644 --- a/pos_restricted_customer_list/i18n/bs.po +++ b/pos_restricted_customer_list/i18n/bs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" @@ -20,7 +20,7 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/ca.po b/pos_restricted_customer_list/i18n/ca.po index ff92c728..0c53ad07 100644 --- a/pos_restricted_customer_list/i18n/ca.po +++ b/pos_restricted_customer_list/i18n/ca.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/cs.po b/pos_restricted_customer_list/i18n/cs.po index 83b23ede..470824bd 100644 --- a/pos_restricted_customer_list/i18n/cs.po +++ b/pos_restricted_customer_list/i18n/cs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/da.po b/pos_restricted_customer_list/i18n/da.po index d64beb48..99cde176 100644 --- a/pos_restricted_customer_list/i18n/da.po +++ b/pos_restricted_customer_list/i18n/da.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/de.po b/pos_restricted_customer_list/i18n/de.po index 4b9bcec7..425fc8eb 100644 --- a/pos_restricted_customer_list/i18n/de.po +++ b/pos_restricted_customer_list/i18n/de.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/el_GR.po b/pos_restricted_customer_list/i18n/el_GR.po index dbb75980..4cad44ce 100644 --- a/pos_restricted_customer_list/i18n/el_GR.po +++ b/pos_restricted_customer_list/i18n/el_GR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/en_GB.po b/pos_restricted_customer_list/i18n/en_GB.po index 021865a7..20b2f765 100644 --- a/pos_restricted_customer_list/i18n/en_GB.po +++ b/pos_restricted_customer_list/i18n/en_GB.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: English (United Kingdom) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/es.po b/pos_restricted_customer_list/i18n/es.po index b1b88d68..f3f0beae 100644 --- a/pos_restricted_customer_list/i18n/es.po +++ b/pos_restricted_customer_list/i18n/es.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/es_CR.po b/pos_restricted_customer_list/i18n/es_CR.po index 62eaf3f2..e10cbaa4 100644 --- a/pos_restricted_customer_list/i18n/es_CR.po +++ b/pos_restricted_customer_list/i18n/es_CR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/es_EC.po b/pos_restricted_customer_list/i18n/es_EC.po index a1d36c1e..1b278455 100644 --- a/pos_restricted_customer_list/i18n/es_EC.po +++ b/pos_restricted_customer_list/i18n/es_EC.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/es_MX.po b/pos_restricted_customer_list/i18n/es_MX.po index 7aff2610..cfcf0f7a 100644 --- a/pos_restricted_customer_list/i18n/es_MX.po +++ b/pos_restricted_customer_list/i18n/es_MX.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/es_VE.po b/pos_restricted_customer_list/i18n/es_VE.po index 039b5a26..a4d6b01d 100644 --- a/pos_restricted_customer_list/i18n/es_VE.po +++ b/pos_restricted_customer_list/i18n/es_VE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/et.po b/pos_restricted_customer_list/i18n/et.po index 309e4485..fec57985 100644 --- a/pos_restricted_customer_list/i18n/et.po +++ b/pos_restricted_customer_list/i18n/et.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Estonian (https://www.transifex.com/oca/teams/23907/et/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/eu.po b/pos_restricted_customer_list/i18n/eu.po index eaa074bb..fa71a2e7 100644 --- a/pos_restricted_customer_list/i18n/eu.po +++ b/pos_restricted_customer_list/i18n/eu.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/fi.po b/pos_restricted_customer_list/i18n/fi.po index 9d6af089..8d923e02 100644 --- a/pos_restricted_customer_list/i18n/fi.po +++ b/pos_restricted_customer_list/i18n/fi.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/fr.po b/pos_restricted_customer_list/i18n/fr.po index 7b046069..9558b9d4 100644 --- a/pos_restricted_customer_list/i18n/fr.po +++ b/pos_restricted_customer_list/i18n/fr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" @@ -19,9 +19,9 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" -msgstr "" +msgstr "Disponible dans le PDV" #. module: pos_restricted_customer_list #: model:ir.model,name:pos_restricted_customer_list.model_res_partner diff --git a/pos_restricted_customer_list/i18n/fr_CA.po b/pos_restricted_customer_list/i18n/fr_CA.po index 7189df9a..03992dce 100644 --- a/pos_restricted_customer_list/i18n/fr_CA.po +++ b/pos_restricted_customer_list/i18n/fr_CA.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: French (Canada) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/fr_CH.po b/pos_restricted_customer_list/i18n/fr_CH.po index c5569601..2a8ddf3c 100644 --- a/pos_restricted_customer_list/i18n/fr_CH.po +++ b/pos_restricted_customer_list/i18n/fr_CH.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: French (Switzerland) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/gl.po b/pos_restricted_customer_list/i18n/gl.po index 2156636c..0993a068 100644 --- a/pos_restricted_customer_list/i18n/gl.po +++ b/pos_restricted_customer_list/i18n/gl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/hr.po b/pos_restricted_customer_list/i18n/hr.po index 643d605e..c6009468 100644 --- a/pos_restricted_customer_list/i18n/hr.po +++ b/pos_restricted_customer_list/i18n/hr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" @@ -20,7 +20,7 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/hr_HR.po b/pos_restricted_customer_list/i18n/hr_HR.po index 06691933..d0a264f4 100644 --- a/pos_restricted_customer_list/i18n/hr_HR.po +++ b/pos_restricted_customer_list/i18n/hr_HR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" @@ -21,7 +21,7 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/hu.po b/pos_restricted_customer_list/i18n/hu.po index 06e3596e..2d14d908 100644 --- a/pos_restricted_customer_list/i18n/hu.po +++ b/pos_restricted_customer_list/i18n/hu.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/id.po b/pos_restricted_customer_list/i18n/id.po index b5254e43..4639c3e4 100644 --- a/pos_restricted_customer_list/i18n/id.po +++ b/pos_restricted_customer_list/i18n/id.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-11-14 01:45+0000\n" +"POT-Creation-Date: 2019-04-25 08:42+0000\n" "PO-Revision-Date: 2017-11-14 01:45+0000\n" "Last-Translator: Wahyu Setiawan , 2017\n" "Language-Team: Indonesian (https://www.transifex.com/oca/teams/23907/id/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/it.po b/pos_restricted_customer_list/i18n/it.po index bd8f2428..a109dca5 100644 --- a/pos_restricted_customer_list/i18n/it.po +++ b/pos_restricted_customer_list/i18n/it.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/ja.po b/pos_restricted_customer_list/i18n/ja.po index 2a1ca770..4206b73b 100644 --- a/pos_restricted_customer_list/i18n/ja.po +++ b/pos_restricted_customer_list/i18n/ja.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/lt.po b/pos_restricted_customer_list/i18n/lt.po index 1a14802d..a14dd75b 100644 --- a/pos_restricted_customer_list/i18n/lt.po +++ b/pos_restricted_customer_list/i18n/lt.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" @@ -20,7 +20,7 @@ msgstr "" "%100<10 || n%100>=20) ? 1 : 2);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/lv.po b/pos_restricted_customer_list/i18n/lv.po index c5224e40..8b9dc854 100644 --- a/pos_restricted_customer_list/i18n/lv.po +++ b/pos_restricted_customer_list/i18n/lv.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Latvian (https://www.transifex.com/oca/teams/23907/lv/)\n" @@ -20,7 +20,7 @@ msgstr "" "2);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/mk.po b/pos_restricted_customer_list/i18n/mk.po index 50b31f28..ffad76ec 100644 --- a/pos_restricted_customer_list/i18n/mk.po +++ b/pos_restricted_customer_list/i18n/mk.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/mn.po b/pos_restricted_customer_list/i18n/mn.po index fe2f04fa..f3f0d63d 100644 --- a/pos_restricted_customer_list/i18n/mn.po +++ b/pos_restricted_customer_list/i18n/mn.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/nb.po b/pos_restricted_customer_list/i18n/nb.po index e1fc0f95..3cfe1439 100644 --- a/pos_restricted_customer_list/i18n/nb.po +++ b/pos_restricted_customer_list/i18n/nb.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Norwegian Bokmål (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/nb_NO.po b/pos_restricted_customer_list/i18n/nb_NO.po index b8a65060..f13c42a6 100644 --- a/pos_restricted_customer_list/i18n/nb_NO.po +++ b/pos_restricted_customer_list/i18n/nb_NO.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/nl.po b/pos_restricted_customer_list/i18n/nl.po index a3d98494..0c205ead 100644 --- a/pos_restricted_customer_list/i18n/nl.po +++ b/pos_restricted_customer_list/i18n/nl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/nl_BE.po b/pos_restricted_customer_list/i18n/nl_BE.po index 90fb60ad..721c66d3 100644 --- a/pos_restricted_customer_list/i18n/nl_BE.po +++ b/pos_restricted_customer_list/i18n/nl_BE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Dutch (Belgium) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/pl.po b/pos_restricted_customer_list/i18n/pl.po index 88ef8121..13b8a17f 100644 --- a/pos_restricted_customer_list/i18n/pl.po +++ b/pos_restricted_customer_list/i18n/pl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" @@ -21,7 +21,7 @@ msgstr "" "%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/pos_restricted_customer_list.pot b/pos_restricted_customer_list/i18n/pos_restricted_customer_list.pot index e0268974..f0dd519e 100644 --- a/pos_restricted_customer_list/i18n/pos_restricted_customer_list.pot +++ b/pos_restricted_customer_list/i18n/pos_restricted_customer_list.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-04-25 08:42+0000\n" +"PO-Revision-Date: 2019-04-25 08:42+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,7 +16,7 @@ msgstr "" "Plural-Forms: \n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/pt.po b/pos_restricted_customer_list/i18n/pt.po index 0022d9c7..18f6d027 100644 --- a/pos_restricted_customer_list/i18n/pt.po +++ b/pos_restricted_customer_list/i18n/pt.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/pt_BR.po b/pos_restricted_customer_list/i18n/pt_BR.po index e75f516d..974171aa 100644 --- a/pos_restricted_customer_list/i18n/pt_BR.po +++ b/pos_restricted_customer_list/i18n/pt_BR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/pt_PT.po b/pos_restricted_customer_list/i18n/pt_PT.po index c2369651..e659bb5b 100644 --- a/pos_restricted_customer_list/i18n/pt_PT.po +++ b/pos_restricted_customer_list/i18n/pt_PT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/ro.po b/pos_restricted_customer_list/i18n/ro.po index 28fa4ad4..fdfd5c7d 100644 --- a/pos_restricted_customer_list/i18n/ro.po +++ b/pos_restricted_customer_list/i18n/ro.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" @@ -20,7 +20,7 @@ msgstr "" "2:1));\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/ru.po b/pos_restricted_customer_list/i18n/ru.po index 18f4cf14..c5830b59 100644 --- a/pos_restricted_customer_list/i18n/ru.po +++ b/pos_restricted_customer_list/i18n/ru.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" @@ -21,7 +21,7 @@ msgstr "" "%100>=11 && n%100<=14)? 2 : 3);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/sk.po b/pos_restricted_customer_list/i18n/sk.po index 58c6790c..b9578312 100644 --- a/pos_restricted_customer_list/i18n/sk.po +++ b/pos_restricted_customer_list/i18n/sk.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/sl.po b/pos_restricted_customer_list/i18n/sl.po index c6f5df08..718d961d 100644 --- a/pos_restricted_customer_list/i18n/sl.po +++ b/pos_restricted_customer_list/i18n/sl.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-10 07:31+0000\n" +"POT-Creation-Date: 2019-04-25 08:42+0000\n" "PO-Revision-Date: 2017-06-10 07:31+0000\n" "Last-Translator: Matjaž Mozetič , 2017\n" "Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" @@ -20,7 +20,7 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "Razpoložljivo za POS" diff --git a/pos_restricted_customer_list/i18n/sr@latin.po b/pos_restricted_customer_list/i18n/sr@latin.po index 670d2899..46b369fc 100644 --- a/pos_restricted_customer_list/i18n/sr@latin.po +++ b/pos_restricted_customer_list/i18n/sr@latin.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Serbian (Latin) (https://www.transifex.com/oca/teams/23907/" @@ -21,7 +21,7 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/sv.po b/pos_restricted_customer_list/i18n/sv.po index 5813d2c6..4bd9c3af 100644 --- a/pos_restricted_customer_list/i18n/sv.po +++ b/pos_restricted_customer_list/i18n/sv.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/th.po b/pos_restricted_customer_list/i18n/th.po index de80712d..f54d8f8d 100644 --- a/pos_restricted_customer_list/i18n/th.po +++ b/pos_restricted_customer_list/i18n/th.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Thai (https://www.transifex.com/oca/teams/23907/th/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/tr.po b/pos_restricted_customer_list/i18n/tr.po index 39164cfd..24b8101d 100644 --- a/pos_restricted_customer_list/i18n/tr.po +++ b/pos_restricted_customer_list/i18n/tr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/tr_TR.po b/pos_restricted_customer_list/i18n/tr_TR.po index 8becfe1a..89ce8cbf 100644 --- a/pos_restricted_customer_list/i18n/tr_TR.po +++ b/pos_restricted_customer_list/i18n/tr_TR.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/vi.po b/pos_restricted_customer_list/i18n/vi.po index 51cdd4c7..5d5e1760 100644 --- a/pos_restricted_customer_list/i18n/vi.po +++ b/pos_restricted_customer_list/i18n/vi.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Vietnamese (https://www.transifex.com/oca/teams/23907/vi/)\n" @@ -19,7 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/zh_CN.po b/pos_restricted_customer_list/i18n/zh_CN.po index bc1a2c34..6e22bccb 100644 --- a/pos_restricted_customer_list/i18n/zh_CN.po +++ b/pos_restricted_customer_list/i18n/zh_CN.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/i18n/zh_TW.po b/pos_restricted_customer_list/i18n/zh_TW.po index 2b4fb343..977b5c4d 100644 --- a/pos_restricted_customer_list/i18n/zh_TW.po +++ b/pos_restricted_customer_list/i18n/zh_TW.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-09 03:25+0000\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 , 2017\n" "Language-Team: Chinese (Taiwan) (https://www.transifex.com/oca/teams/23907/" @@ -20,7 +20,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: pos_restricted_customer_list -#: field:res.partner,available_in_pos:0 +#: model:ir.model.fields,field_description:pos_restricted_customer_list.field_res_partner_available_in_pos msgid "Available for POS" msgstr "" diff --git a/pos_restricted_customer_list/models/__init__.py b/pos_restricted_customer_list/models/__init__.py index 68369fda..91fed54d 100644 --- a/pos_restricted_customer_list/models/__init__.py +++ b/pos_restricted_customer_list/models/__init__.py @@ -1,4 +1 @@ -# -*- coding: utf-8 -*- -# © 2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import res_partner diff --git a/pos_restricted_customer_list/models/res_partner.py b/pos_restricted_customer_list/models/res_partner.py index 8d04f734..11a20b4b 100644 --- a/pos_restricted_customer_list/models/res_partner.py +++ b/pos_restricted_customer_list/models/res_partner.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- -# © 2017 Therp BV -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# Copyright 2017-2019 Therp BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + from openerp import fields, models @@ -8,5 +9,12 @@ class ResPartner(models.Model): _inherit = 'res.partner' available_in_pos = fields.Boolean( - string='Available for POS', + string="Available for POS", + default=False, ) + + def create_from_ui(self, cr, uid, partner, context=None): + if not partner.get('available_in_pos'): + partner['available_in_pos'] = True + return super(ResPartner, self).create_from_ui( + cr, uid, partner, context) diff --git a/pos_restricted_customer_list/readme/CONTRIBUTORS.rst b/pos_restricted_customer_list/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..4e07c28e --- /dev/null +++ b/pos_restricted_customer_list/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Ronald Portier diff --git a/pos_restricted_customer_list/readme/DESCRIPTION.rst b/pos_restricted_customer_list/readme/DESCRIPTION.rst new file mode 100644 index 00000000..baa54010 --- /dev/null +++ b/pos_restricted_customer_list/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +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. diff --git a/pos_restricted_customer_list/readme/DEVELOP.rst b/pos_restricted_customer_list/readme/DEVELOP.rst new file mode 100644 index 00000000..b638a410 --- /dev/null +++ b/pos_restricted_customer_list/readme/DEVELOP.rst @@ -0,0 +1,3 @@ +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. diff --git a/pos_restricted_customer_list/readme/ROADMAP.rst b/pos_restricted_customer_list/readme/ROADMAP.rst new file mode 100644 index 00000000..39fc1c2f --- /dev/null +++ b/pos_restricted_customer_list/readme/ROADMAP.rst @@ -0,0 +1,8 @@ +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. diff --git a/pos_restricted_customer_list/readme/USAGE.rst b/pos_restricted_customer_list/readme/USAGE.rst new file mode 100644 index 00000000..5e494317 --- /dev/null +++ b/pos_restricted_customer_list/readme/USAGE.rst @@ -0,0 +1 @@ +To allow a customer to be displayed in the PoS, just check the 'Available in POS' field. diff --git a/pos_restricted_customer_list/static/description/index.html b/pos_restricted_customer_list/static/description/index.html new file mode 100644 index 00000000..6c165460 --- /dev/null +++ b/pos_restricted_customer_list/static/description/index.html @@ -0,0 +1,451 @@ + + + + + + +POS: restricted customer list + + + +
+

POS: restricted customer list

+ + +

Production/Stable License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

+

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

+ +
+

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. +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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Therp BV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/pos_restricted_customer_list/static/src/js/pos_restricted_customer_list.js b/pos_restricted_customer_list/static/src/js/pos_restricted_customer_list.js index 23dc2f19..42822e23 100644 --- a/pos_restricted_customer_list/static/src/js/pos_restricted_customer_list.js +++ b/pos_restricted_customer_list/static/src/js/pos_restricted_customer_list.js @@ -1,25 +1,52 @@ -'use strict'; +odoo.define('pos_restricted_customer_list.point_of_sale.models', function (require) { + 'use strict'; -openerp.pos_restricted_customer_list = function (instance) { - var module = instance.point_of_sale; + var Model = require('web.DataModel'); + var PosModels = require('point_of_sale.models'); + var PosModel = PosModels.PosModel; + var PosModelSuper = PosModel.prototype; - // we can't extend it because self.pos not ready yet - var _initializePosModel_ = module.PosModel.prototype.initialize; - module.PosModel.prototype.initialize = function(session, attributes){ - // override domain for res.partner to limit customers loaded - this.models.some(function (m, idx) { - if (m.model !== 'res.partner') - return false; - // check if not already done by someone else - for(var i = 0; i < m.domain.length; i++) { - var domain_tuple = m.domain[i]; - if (domain_tuple[0] === 'available_in_pos') { - return true; // domain already added + PosModels.PosModel = PosModel.extend({ + initialize: function (session, attributes) { + var self = this; + for (var i = 0; i < self.models.length; i++) { + var model = self.models[i]; + var model_name = model.model; + + if (model_name === 'res.partner') { + model.domain = self.prepare_load_new_partners_domain(); } } - m.domain.push(['available_in_pos','=',true]); - return true; // no need to continue - }); - return _initializePosModel_.call(this, session, attributes); - }; -}; + return PosModelSuper.initialize.call(self, session, attributes); + }, + prepare_load_new_partners_domain: function () { + return [ + ['customer', '=', true], + ['available_in_pos', '=', true], + ]; + }, + load_new_partners: function () { + var self = this; + var def = new $.Deferred(); + var fields = _.find(this.models, function (model) { + return model.model === 'res.partner'; + }).fields; + var domain = self.prepare_load_new_partners_domain(); + new Model('res.partner') + .query(fields) + .filter(domain) + .all({'timeout': 3000, 'shadow': true}) + .then(function (partners) { + if (self.db.add_partners(partners)) { // check if the partners we got were real updates + def.resolve(); + } else { + def.reject(); + } + }, function (err, event) { + event.preventDefault(); + def.reject(); + }); + return def; + }, + }); +}); diff --git a/pos_restricted_customer_list/views/assets_backend.xml b/pos_restricted_customer_list/views/assets_backend.xml index d35737f5..19b2739a 100644 --- a/pos_restricted_customer_list/views/assets_backend.xml +++ b/pos_restricted_customer_list/views/assets_backend.xml @@ -1,18 +1,12 @@ - - - - - - + + + + + + diff --git a/pos_restricted_customer_list/views/res_partner.xml b/pos_restricted_customer_list/views/res_partner.xml index efa51849..e77b528b 100644 --- a/pos_restricted_customer_list/views/res_partner.xml +++ b/pos_restricted_customer_list/views/res_partner.xml @@ -1,18 +1,19 @@ - - + + + + + - view.partner.form.pos.available + view.partner.form (in pos_restricted_customer_list) res.partner - + - + - +