Skip to content

Commit

Permalink
Merge PR #1148 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Jun 3, 2024
2 parents 3efc22b + 0c14c0d commit e6599d0
Show file tree
Hide file tree
Showing 24 changed files with 1,223 additions and 0 deletions.
111 changes: 111 additions & 0 deletions pos_timeout/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
=======================
Point of Sale - timeout
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d54c8788b013efa2b63a2c6c2df2db2031588af20479176e761d9c488dbcdea0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_timeout
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_timeout
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0
:alt: Try me on Runboat

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

This module extends the functionality of Point of Sale module.

By default, in Odoo a timeout is set to 30 seconds for the creation of
a PoS order. This threshold is usually sufficient, but in some cases it is not,
mainly if the connection is bad, or if some custom modules add extra
long treatments.

This module allows to change this default value.

If the call contains more than one order (after a long disconnection period
for example, or if the previous call raised the timeout) the effective timeout
value applied will be equal to the defined timeout value multiplied by the
number of orders.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

* Go to 'Point Of Sale' / 'Configuration' / 'Point of Sale' and edit your
PoS Config, setting a timeout

.. figure:: https://raw.githubusercontent.com/OCA/pos/16.0/pos_timeout/static/description/pos_config.png
:alt: PoS Configuration
:width: 800 px

If not set, the default Odoo timeout will be used. (7.5 seconds in V10.0)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_timeout%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* GRAP

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

* Sylvain LE GAL (https://twitter.com/legalsylvain)
* Nils Hamerlinck (Trobz)
* Dhara Solanki <dhara.solanki@initos.com>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* GRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_timeout>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_timeout/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions pos_timeout/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (C) 2017 - Today: GRAP (http://www.grap.coop)
# Copyright (C) 2017 - Today: Akretion (http://www.akretion.com)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - timeout",
"summary": "Set the timeout of the point of sale",
"version": "16.0.1.0.0",
"category": "Sales/Point Of Sale",
"website": "https://github.com/OCA/pos",
"author": "GRAP, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"images": ["static/description/pos_config.png"],
"data": [
"views/res_config_settings.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_timeout/static/src/js/models.js",
],
},
"installable": True,
}
74 changes: 74 additions & 0 deletions pos_timeout/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_timeout
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-26 19:46+0000\n"
"Last-Translator: eduardgm <eduard.garcia@qubiq.es>\n"
"Language-Team: none\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "<span class=\"o_form_label\">Timeout</span>"
msgstr "<span class=\"o_form_label\">Fi de temps</span>"

#. module: pos_timeout
#: model:ir.model.fields,help:pos_timeout.field_pos_config__pos_order_timeout
msgid ""
"Defines the value of the client-side timeout for the creation of PoS "
"Order(s) from the POS UI.\n"
" The value is expressed in seconds, for a single order.\n"
" If not defined, the default Odoo value will be used: 30 seconds.\n"
" If the call contains more than one order (after a long disconnection period "
"for example, or if the previous call raised the timeout),\n"
" the effective timeout value applied will be equal to the defined timeout "
"value multiplied by the number of orders.\n"
msgstr ""
"Defineix el valor del temps d'espera del costat del client per a la creació "
"de comandes de Post des de la interfície d'usuari de POS.\n"
"El valor s'expressa en segons, per a un solo demanat.\n"
"Si no es defineix, s'utilitzarà el valor predeterminat d'Odoo: 30 segons.\n"
"Si la crida conté més d'una ordre (després d'un llarg període de "
"desconnexió, per exemple, o si la crida anterior va generar el temps "
"d'espera),\n"
"el valor de temps d'espera efectiu aplicat serà igual al valor de temps "
"d'espera definit multiplicat pel nombre de comandes.\n"

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__display_name
msgid "Display Name"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__id
msgid "ID"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__pos_order_timeout
msgid "PoS Order(s) Timeout"
msgstr "Fi del Temps de les Comandes del TPV"

#. module: pos_timeout
#: model:ir.model,name:pos_timeout.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuració del TPV"

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "Technical settings"
msgstr "Ajustos tècnics"
81 changes: 81 additions & 0 deletions pos_timeout/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_timeout
#
# Translators:
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-01 02:01+0000\n"
"PO-Revision-Date: 2021-03-26 19:46+0000\n"
"Last-Translator: eduardgm <eduard.garcia@qubiq.es>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "<span class=\"o_form_label\">Timeout</span>"
msgstr "<span class=\"o_form_label\">Fin del tiempo</span>"

#. module: pos_timeout
#: model:ir.model.fields,help:pos_timeout.field_pos_config__pos_order_timeout
msgid ""
"Defines the value of the client-side timeout for the creation of PoS "
"Order(s) from the POS UI.\n"
" The value is expressed in seconds, for a single order.\n"
" If not defined, the default Odoo value will be used: 30 seconds.\n"
" If the call contains more than one order (after a long disconnection period "
"for example, or if the previous call raised the timeout),\n"
" the effective timeout value applied will be equal to the defined timeout "
"value multiplied by the number of orders.\n"
msgstr ""
"Define el valor del tiempo de espera del lado del cliente para la creación "
"de pedidos de PoS desde la interfaz de usuario de POS.\n"
" El valor se expresa en segundos, para un solo pedido.\n"
" Si no se define, se utilizará el valor predeterminado de Odoo: 30 "
"segundos.\n"
" Si la llamada contiene más de una orden (después de un largo período de "
"desconexión, por ejemplo, o si la llamada anterior generó el tiempo de "
"espera),\n"
" el valor de tiempo de espera efectivo aplicado será igual al valor de "
"tiempo de espera definido multiplicado por el número de pedidos.\n"

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__display_name
msgid "Display Name"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__id
msgid "ID"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__pos_order_timeout
msgid "PoS Order(s) Timeout"
msgstr "Tiempo de espera de pedidos de PoS"

#. module: pos_timeout
#: model:ir.model,name:pos_timeout.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración TPV"

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "Technical settings"
msgstr "Ajustes técnicos"

#~ msgid "pos.config"
#~ msgstr "pos.config"
80 changes: 80 additions & 0 deletions pos_timeout/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_timeout
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-20 00:43+0000\n"
"PO-Revision-Date: 2018-01-20 00:43+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "<span class=\"o_form_label\">Timeout</span>"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,help:pos_timeout.field_pos_config__pos_order_timeout
msgid ""
"Defines the value of the client-side timeout for the creation of PoS "
"Order(s) from the POS UI.\n"
" The value is expressed in seconds, for a single order.\n"
" If not defined, the default Odoo value will be used: 30 seconds.\n"
" If the call contains more than one order (after a long disconnection period "
"for example, or if the previous call raised the timeout),\n"
" the effective timeout value applied will be equal to the defined timeout "
"value multiplied by the number of orders.\n"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__display_name
msgid "Display Name"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__id
msgid "ID"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config____last_update
msgid "Last Modified on"
msgstr ""

#. module: pos_timeout
#: model:ir.model.fields,field_description:pos_timeout.field_pos_config__pos_order_timeout
#, fuzzy
msgid "PoS Order(s) Timeout"
msgstr "Timeout des commandes"

#. module: pos_timeout
#: model:ir.model,name:pos_timeout.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: pos_timeout
#: model_terms:ir.ui.view,arch_db:pos_timeout.view_pos_config_form
msgid "Technical settings"
msgstr ""

#~ msgid "pos.config"
#~ msgstr "pos.config"

#~ msgid ""
#~ "Define the timeout for the creation of PoS Order in the Front Office UI.\n"
#~ " The value is expressed in seconds.\n"
#~ " If not defined, the default Odoo value will be used (30 seconds)."
#~ msgstr ""
#~ "Définit le timeout pour la création des commandes de vente dans la partie "
#~ "front office du point de vente.\n"
#~ " La valeur est exprimée en secondes.\n"
#~ " Si elle n'est pas définie, la valeur par défaut de Odoo sera utilisée. "
#~ "(30 secondes)."
Loading

0 comments on commit e6599d0

Please sign in to comment.