Rodney Elpidio Enciso Arias преди 7 години
ревизия
c1f0764051
променени са 32 файла, в които са добавени 1556 реда и са изтрити 0 реда
  1. 78 0
      README.rst
  2. 2 0
      __init__.py
  3. BIN
      __init__.pyc
  4. 40 0
      __openerp__.py
  5. 67 0
      i18n/bg.po
  6. 67 0
      i18n/ca.po
  7. 67 0
      i18n/de.po
  8. 67 0
      i18n/el_GR.po
  9. 69 0
      i18n/es.po
  10. 67 0
      i18n/eu_ES.po
  11. 67 0
      i18n/fi.po
  12. 68 0
      i18n/fr.po
  13. 67 0
      i18n/gl.po
  14. 67 0
      i18n/hr.po
  15. 68 0
      i18n/it.po
  16. 67 0
      i18n/nl.po
  17. 67 0
      i18n/nl_NL.po
  18. 67 0
      i18n/pt_BR.po
  19. 67 0
      i18n/pt_PT.po
  20. 67 0
      i18n/sk.po
  21. 68 0
      i18n/sl.po
  22. 67 0
      i18n/tr.po
  23. 67 0
      i18n/zh_CN.po
  24. 2 0
      models/__init__.py
  25. BIN
      models/__init__.pyc
  26. 45 0
      models/pos.py
  27. BIN
      models/pos.pyc
  28. 26 0
      static/src/js/pos_customer_required.js
  29. 12 0
      static/src/xml/templates.xml
  30. 1 0
      tests/__init__.py
  31. 38 0
      tests/test_pos.py
  32. 34 0
      views/pos_view.xml

+ 78 - 0
README.rst

@@ -0,0 +1,78 @@
+.. 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
+
+==================================
+Require customer for Point of Sale
+==================================
+
+This module was written to extend the functionality of odoo pos
+and allows you to require a customer for each pos order.  In the
+pos session configuration, you can choose to require the customer for pos
+orders.
+
+If a customer is not selected, the pos ui will display an error message.
+In the backend the customer field is required when needed.
+
+
+Installation
+============
+
+This module depends on the `point_of_sale` Odoo official module.
+
+Configuration
+=============
+
+To configure this module, you need to:
+
+* go to point of sale -> configuration -> point of sales
+* select the point of sales you want configure
+* If you want to require the partner for orders in this pos, select the
+  checkbox
+
+Usage
+=====
+
+If a customer is not selected, the pos ui will display an error message.
+In the backend the customer field is required when needed.
+
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+   :alt: Try me on Runbot
+   :target: https://runbot.odoo-community.org/runbot/184/8.0
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
+`here <https://github.com/OCA/
+pos/issues/new?body=module:%20
+pos_customer_required%0Aversion:%20
+8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
+
+
+Credits
+=======
+
+Contributors
+------------
+
+* Jos De Graeve <Jos.DeGraeve@apertoso.be>
+* Pedro M. Baeza  <pedro.baeza@gmail.com> ( reviews & feedback )
+* Sylvain LE GAL - https://github.com/legalsylvain  ( reviews & feedback )
+
+Maintainer
+----------
+
+.. 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.

+ 2 - 0
__init__.py

@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+from . import models

BIN
__init__.pyc


+ 40 - 0
__openerp__.py

@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2004-2014 Apertoso NV (<http://www.apertoso.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+    'name': 'Point of Sale Require Customer',
+    'version': '8.0.1.0.1',
+    'category': 'Point Of Sale',
+    'summary': 'Point of Sale Require Customer',
+    'author': 'Apertoso NV, Odoo Community Association (OCA)',
+    'images': [],
+    'depends': ['point_of_sale'],
+    'data': [
+        'static/src/xml/templates.xml',
+        'views/pos_view.xml',
+    ],
+    'demo': [],
+    'test': [],
+    'installable': True,
+    'application': True,
+    'qweb': [],
+    'website': 'http://www.apertoso.be',
+    'auto_install': False,
+}

+ 67 - 0
i18n/bg.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-09-18 01:07+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-pos-8-0/language/bg/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: bg\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Клиент"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/ca.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-04-29 00:49+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Catalan (http://www.transifex.com/oca/OCA-pos-8-0/language/ca/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ca\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Client "
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/de.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-01-21 05:04+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: German (http://www.transifex.com/oca/OCA-pos-8-0/language/de/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: de\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Kunde"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "Verkaufsstelle"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/el_GR.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-09-18 01:07+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Greek (Greece) (http://www.transifex.com/oca/OCA-pos-8-0/language/el_GR/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: el_GR\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Πελάτης"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 69 - 0
i18n/es.po

@@ -0,0 +1,69 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+# Janire Olagibel <janire.olagibel@factorlibre.com>, 2016
+# Javier García-Panach <panaka7@gmail.com>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-15 03:43+0000\n"
+"PO-Revision-Date: 2016-12-22 08:27+0000\n"
+"Last-Translator: Janire Olagibel <janire.olagibel@factorlibre.com>\n"
+"Language-Team: Spanish (http://www.transifex.com/oca/OCA-pos-8-0/language/es/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr "Un pedido anónimo no puede ser confirmado"
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Cliente"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr "No se encuentra cliente en el pedido, y es obligatorio"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr "Por favor, seleccione un cliente para este pedido pulsando en la pestaña"
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "Terminal Punto de Venta"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr "Cliente obligatorio"
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr "Cliente obligatorio para los pedidos en este terminal punto de venta"
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr "{'readonly': [('state','=','invoiced')], 'required': [('require_customer','=',True)]}"

+ 67 - 0
i18n/eu_ES.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Basque (Spain) (http://www.transifex.com/oca/OCA-pos-8-0/language/eu_ES/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: eu_ES\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Bezeroa"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/fi.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Finnish (http://www.transifex.com/oca/OCA-pos-8-0/language/fi/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fi\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Asiakas"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 68 - 0
i18n/fr.po

@@ -0,0 +1,68 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-08-15 21:29+0000\n"
+"PO-Revision-Date: 2016-09-17 19:00+0000\n"
+"Last-Translator: Christophe CHAUVET <christophe.chauvet@gmail.com>\n"
+"Language-Team: French (http://www.transifex.com/oca/OCA-pos-8-0/language/fr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr "Une commande anonyme ne peut pas être confirmée "
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Client"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr "Le client est obligatoire pour cette commande et est manquant"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr "Veuillez sélectionner un client pour cette commande. Ceci peut être fait en cliquant sur l'onglet commande"
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "Point de vente"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr "Client requis"
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr "Client requis pour les commandes de ce point de vente"
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr "{'readonly': [('state','=','invoiced')], 'required': [('require_customer','=',True)]}"

+ 67 - 0
i18n/gl.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Galician (http://www.transifex.com/oca/OCA-pos-8-0/language/gl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: gl\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Cliente"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/hr.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-09-18 01:07+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Croatian (http://www.transifex.com/oca/OCA-pos-8-0/language/hr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hr\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_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Kupac"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 68 - 0
i18n/it.po

@@ -0,0 +1,68 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+# Paolo Valier, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-01 05:28+0000\n"
+"PO-Revision-Date: 2016-05-01 08:45+0000\n"
+"Last-Translator: Paolo Valier\n"
+"Language-Team: Italian (http://www.transifex.com/oca/OCA-pos-8-0/language/it/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: it\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Cliente"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "Punto Vendita"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/nl.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Dutch (http://www.transifex.com/oca/OCA-pos-8-0/language/nl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Klant"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/nl_NL.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-01 05:28+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n"
+"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-pos-8-0/language/nl_NL/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl_NL\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr "Een anoniem kassa order kan niet worden bevestigd"
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Klant"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr "Klant is vereist voor deze order en ontbreekt"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr "Selecteer een klant voor dit order. Dit kan gedaan worden door te klikken op de tab bestelling"
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "Kassa"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr "Klant verplichten"
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr "Klant verplichten voor kassa orders in deze kassa."
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/pt_BR.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-pos-8-0/language/pt_BR/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: pt_BR\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Cliente"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/pt_PT.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-15 03:43+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Portuguese (Portugal) (http://www.transifex.com/oca/OCA-pos-8-0/language/pt_PT/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: pt_PT\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Cliente"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/sk.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-15 03:43+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Slovak (http://www.transifex.com/oca/OCA-pos-8-0/language/sk/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sk\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Zákazník"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 68 - 0
i18n/sl.po

@@ -0,0 +1,68 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-05-01 05:28+0000\n"
+"PO-Revision-Date: 2016-04-24 06:14+0000\n"
+"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-pos-8-0/language/sl/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sl\n"
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr "Ni mogoče potrditi anonimnega naloga"
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Kupec"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr "Za ta nalog je zahtevan kupec, ki pa manjka"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr "Izberite kupca za ta nalog. To naredite s klikom na zavihek nalog"
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "POS prodajna točka"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr "Zahtevaj kupca"
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr "Zahtevaj kupca pri nalogih na tej prodajni točki"
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr "{'readonly': [('state','=','invoiced')], 'required': [('require_customer','=',True)]}"

+ 67 - 0
i18n/tr.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-12-24 03:45+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Turkish (http://www.transifex.com/oca/OCA-pos-8-0/language/tr/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: tr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "Müşteri"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 67 - 0
i18n/zh_CN.po

@@ -0,0 +1,67 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * pos_customer_required
+# 
+# Translators:
+msgid ""
+msgstr ""
+"Project-Id-Version: pos (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-04-29 00:49+0000\n"
+"PO-Revision-Date: 2016-04-06 15:47+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-pos-8-0/language/zh_CN/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: zh_CN\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:16
+#, python-format
+msgid "An anonymous order cannot be confirmed"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.config:pos_customer_required.view_pos_config_form
+msgid "Customer"
+msgstr "客户"
+
+#. module: pos_customer_required
+#: code:addons/pos_customer_required/models/pos.py:45
+#, python-format
+msgid "Customer is required for this order and is missing"
+msgstr ""
+
+#. module: pos_customer_required
+#. openerp-web
+#: code:addons/pos_customer_required/static/src/js/pos_customer_required.js:17
+#, python-format
+msgid ""
+"Please select a client for this order. This can be done by clicking the "
+"order tab"
+msgstr ""
+
+#. module: pos_customer_required
+#: model:ir.model,name:pos_customer_required.model_pos_order
+msgid "Point of Sale"
+msgstr "POS"
+
+#. module: pos_customer_required
+#: field:pos.config,require_customer:0 field:pos.order,require_customer:0
+msgid "Require customer"
+msgstr ""
+
+#. module: pos_customer_required
+#: help:pos.config,require_customer:0 help:pos.order,require_customer:0
+msgid "Require customer for orders in this point of sale"
+msgstr ""
+
+#. module: pos_customer_required
+#: view:pos.order:pos_customer_required.view_pos_pos_form_inherit
+msgid ""
+"{'readonly': [('state','=','invoiced')], 'required': "
+"[('require_customer','=',True)]}"
+msgstr ""

+ 2 - 0
models/__init__.py

@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+from . import pos

BIN
models/__init__.pyc


+ 45 - 0
models/pos.py

@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2004-2014 Apertoso NV (<http://www.apertoso.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp import fields, models, exceptions, api
+from openerp.tools.translate import _
+
+
+class PosConfig(models.Model):
+    _inherit = 'pos.config'
+
+    require_customer = fields.Boolean(
+        string='Require customer',
+        help='Require customer for orders in this point of sale')
+
+
+class PosOrder(models.Model):
+    _inherit = 'pos.order'
+
+    require_customer = fields.Boolean(
+        string='Require customer',
+        related='session_id.config_id.require_customer', readonly=True)
+
+    @api.one
+    @api.constrains('partner_id', 'require_customer')
+    def _check_partner(self):
+        if self.require_customer and not self.partner_id:
+            raise exceptions.ValidationError(
+                _('Customer is required for this order and is missing'))

BIN
models/pos.pyc


+ 26 - 0
static/src/js/pos_customer_required.js

@@ -0,0 +1,26 @@
+openerp.pos_customer_required = function(instance){
+
+    var QWeb = instance.web.qweb,
+    _t = instance.web._t;
+    var module = instance.point_of_sale;
+
+    module.PaymentScreenWidget.include({
+        validate_order: function(options) {
+            var self = this;
+            options = options || {};
+
+            var currentOrder = this.pos.get('selectedOrder');
+
+            if( this.pos.config.require_customer && !currentOrder.get_client()){
+                self.pos_widget.screen_selector.show_popup('error',{
+                    message: _t('An anonymous order cannot be confirmed'),
+                    comment: _t('Please select a client for this order. This can be done by clicking the order tab')
+                });
+                return;
+            }
+            // else
+            return this._super(options);
+        }
+    });
+
+};

+ 12 - 0
static/src/xml/templates.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <template id="assets_frontend" inherit_id="web.assets_common">
+          <xpath expr="." position="inside">
+                <script type="text/javascript"
+                        src="/pos_customer_required/static/src/js/pos_customer_required.js"/>
+          </xpath>
+        </template>
+    </data>
+</openerp>

+ 1 - 0
tests/__init__.py

@@ -0,0 +1 @@
+from . import test_pos

+ 38 - 0
tests/test_pos.py

@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+import openerp.tests.common as common
+from openerp import exceptions
+
+
+class TestPosRequireCustomer(common.TransactionCase):
+    def setUp(self):
+        super(TestPosRequireCustomer, self).setUp()
+
+    def test_customer_not_required(self):
+        posconfig = self.env.ref('point_of_sale.pos_config_main')
+        posconfig.require_customer = False
+
+        # Now Create new session and create a
+        # pos order in this session
+        pos_session = self.env['pos.session'].create(
+            {'config_id': posconfig.id})
+        # should not raise any exception
+        self.env['pos.order'].create({
+            'session_id': pos_session.id,
+            'partner_id': False,
+        })
+
+    def test_customer_is_required(self):
+        posconfig = self.env.ref('point_of_sale.pos_config_main')
+        posconfig.require_customer = True
+
+        # Now Create new session and create a
+        # pos order in this session
+        pos_session = self.env['pos.session'].create(
+            {'config_id': posconfig.id})
+        # should raise exceptions.ValidationError
+        with self.assertRaises(exceptions.ValidationError):
+            self.env['pos.order'].create({
+                'session_id': pos_session.id,
+                'partner_id': False,
+            })

+ 34 - 0
views/pos_view.xml

@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+
+        <record model="ir.ui.view" id="view_pos_config_form">
+            <field name="name">pos.config.form.view</field>
+            <field name="model">pos.config</field>
+            <field name="inherit_id"
+                   ref="point_of_sale.view_pos_config_form" />
+            <field name="arch" type="xml">
+                <xpath expr="//group[@string='Receipt']" position="after">
+                    <group string="Customer" col="4" >
+                        <field name='require_customer' />
+                    </group>
+                </xpath>
+            </field>
+        </record>
+
+        <record model="ir.ui.view" id="view_pos_pos_form_inherit">
+            <field name="name">pos.order</field>
+            <field name="model">pos.order</field>
+            <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//sheet" position="inside">
+                    <field name="require_customer" invisible="1"/>
+                </xpath>
+                <xpath expr="//field[@name='partner_id']" position="attributes">
+                    <attribute name="attrs">{'readonly': [('state','=','invoiced')], 'required': [('require_customer','=',True)]}</attribute>
+                </xpath>
+            </field>
+        </record>
+
+    </data>
+</openerp>