Skip to content

Commit

Permalink
Merge PR #6 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Jan 6, 2025
2 parents e838ad1 + a3e5282 commit eee3dfe
Show file tree
Hide file tree
Showing 17 changed files with 126 additions and 251 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[pos_driver_device_list](pos_driver_device_list/) | 16.0.2.0.0 | | Get devices information from odoo-pos-driver library
[pos_driver_display](pos_driver_display/) | 16.0.2.0.0 | | Communicate with LEC Customer Display via odoo-pos-driver library
[pos_driver_payment](pos_driver_payment/) | 16.0.2.0.0 | | Communicate with Telium Payment Terminal via odoo-pos-driver library
[pos_driver_device_list](pos_driver_device_list/) | 16.0.2.0.0 | | Get devices information from odoo-driver library
[pos_driver_display](pos_driver_display/) | 16.0.2.0.0 | | Communicate with LEC Customer Display via odoo-driver library
[pos_driver_payment](pos_driver_payment/) | 16.0.2.0.0 | | Communicate with Telium Payment Terminal via odoo-driver library

[//]: # (end addons)

Expand Down
4 changes: 2 additions & 2 deletions pos_driver_device_list/README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
==============================================
Point of Sale - Devices List (odoo-pos-driver)
Point of Sale - Devices List (odoo-driver)
==============================================

..
Expand All @@ -23,7 +23,7 @@ Point of Sale - Devices List (odoo-pos-driver)
|badge1| |badge2| |badge3|

This module extends the Point of Sale odoo module, to add compatibility
with the ``odoo-pos-driver`` python library.
with the ``odoo-driver`` python library.

It will store connected devices information in Odoo for analysis.

Expand Down
4 changes: 2 additions & 2 deletions pos_driver_device_list/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - Devices List (odoo-pos-driver)",
"name": "Point of Sale - Devices List (odoo-driver)",
"version": "16.0.2.0.0",
"category": "Point Of Sale",
"summary": "Get devices information from odoo-pos-driver library",
"summary": "Get devices information from odoo-driver library",
"author": "GRAP",
"website": "https://github.com/grap/odoo-addons-pos",
"license": "AGPL-3",
Expand Down
2 changes: 1 addition & 1 deletion pos_driver_device_list/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This module extends the Point of Sale odoo module, to add compatibility
with the ``odoo-pos-driver`` python library.
with the ``odoo-driver`` python library.

It will store connected devices information in Odoo for analysis.
6 changes: 3 additions & 3 deletions pos_driver_display/README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
======================================================
Point of Sale - LED Customer Display (odoo-pos-driver)
Point of Sale - LED Customer Display (odoo-driver)
======================================================

..
Expand All @@ -22,10 +22,10 @@ Point of Sale - LED Customer Display (odoo-pos-driver)

|badge1| |badge2| |badge3|

This module extends the Point of Sale odoo module, to add compatibility with the ``odoo-pos-driver``
This module extends the Point of Sale odoo module, to add compatibility with the ``odoo-driver``
python library, when using LED Customer display.

More information: https://pypi.org/project/odoo-pos-driver/
More information: https://pypi.org/project/odoo-driver/

**Table of contents**

Expand Down
6 changes: 3 additions & 3 deletions pos_driver_display/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale - LED Customer Display (odoo-pos-driver)",
"version": "16.0.2.0.0",
"name": "Point of Sale - LED Customer Display (odoo-driver)",
"version": "16.0.3.0.0",
"category": "Point Of Sale",
"summary": "Communicate with LEC Customer Display via odoo-pos-driver library",
"summary": "Communicate with LED Customer Display via odoo-driver library",
"author": "GRAP",
"website": "https://github.com/grap/odoo-addons-pos",
"license": "AGPL-3",
Expand Down
143 changes: 36 additions & 107 deletions pos_driver_display/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-10 11:21+0000\n"
"PO-Revision-Date: 2024-09-10 11:21+0000\n"
"POT-Creation-Date: 2024-12-19 16:14+0000\n"
"PO-Revision-Date: 2024-12-19 16:14+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -16,21 +16,16 @@ msgstr ""
"Plural-Forms: \n"

#. module: pos_driver_display
#: model:ir.model.fields.selection,name:pos_driver_display.selection__pos_config__customer_display_format__2_20
msgid "2 Lines of 20 Characters"
msgstr "2 lignes de 20 caractères"
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_message_closed
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_message_closed
msgid "Close Message"
msgstr "Message de fermeture"

#. module: pos_driver_display
#: model:ir.model,name:pos_driver_display.model_res_config_settings
msgid "Config Settings"
msgstr "Paramètres de configuration"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_format
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_format
msgid "Customer Display Format"
msgstr "Format de l'afficheur client"

#. module: pos_driver_display
#. odoo-javascript
#: code:addons/pos_driver_display/static/src/js/ProxyStatus.esm.js:0
Expand All @@ -51,26 +46,6 @@ msgstr "Afficheur Hors ligne"
msgid "Display data on the customer display"
msgstr "Afficher les données sur l'afficheur client"

#. module: pos_driver_display
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_msg_next_l1
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_msg_next_l1
msgid ""
"First line of the message on the customer display which is displayed after "
"starting POS and also after validation of an order"
msgstr ""
"Première ligne du message de l'afficheur client qui est affiché après le "
"démarrage de la caisse et également après validation d'une commande client"

#. module: pos_driver_display
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_msg_closed_l1
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_msg_closed_l1
msgid ""
"First line of the message on the customer display which is displayed when "
"POS is closed"
msgstr ""
"Première ligne du message de l'afficheur client qui est affiché quand la "
"caisse est fermée"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__iface_customer_display
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_iface_customer_display
Expand All @@ -79,45 +54,40 @@ msgid "LED Customer Display"
msgstr "Afficheur client LED"

#. module: pos_driver_display
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_line_length
msgid "Length of the LEDs lines of the customer display"
msgstr "Longueur des lignes de l'afficheur client (nombre de caractères)"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_line_length
msgid "Line Length"
msgstr "Longueur des lignes"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_msg_next_l1
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_msg_next_l1
msgid "Next Customer (Line 1)"
msgstr "Client suivant (ligne 1)"
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_message_next
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_message_next
msgid ""
"Message on the customer display which is displayed after starting POS and "
"also after validation of an order"
msgstr ""
"Message de l'afficheur client qui est affiché après le "
"démarrage de la caisse et également après validation d'une commande client"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_msg_next_l2
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_msg_next_l2
msgid "Next Customer (Line 2)"
msgstr "Client suivant (ligne 2)"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_msg_closed_l1
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_msg_closed_l1
msgid "PoS Closed (Line 1)"
msgstr "Caisse fermée (Ligne 1)"
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_message_closed
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_message_closed
msgid "Message on the customer display which is displayed when POS is closed"
msgstr ""
"Message de l'afficheur client qui est affiché quand la "
"caisse est fermée"

#. module: pos_driver_display
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_msg_closed_l2
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_msg_closed_l2
msgid "PoS Closed (Line 2)"
msgstr "Caisse fermée (Ligne 2)"
#: model:ir.model.fields,field_description:pos_driver_display.field_pos_config__customer_display_message_next
#: model:ir.model.fields,field_description:pos_driver_display.field_res_config_settings__pos_customer_display_message_next
msgid "Next Customer Message"
msgstr "Message Prochain client"

#. module: pos_driver_display
#. odoo-python
#: code:addons/pos_driver_display/models/pos_config.py:0
#, python-format
msgid "Point of Sale Closed"
msgstr "Caisse fermée"
msgid ""
"Point of Sale Closed\n"
"See you soon!"
msgstr ""
"Point de vente fermé\n"
"A bientôt!"

#. module: pos_driver_display
#: model:ir.model,name:pos_driver_display.model_pos_config
Expand All @@ -128,55 +98,14 @@ msgstr "Configuration du point de vente"
#. odoo-python
#: code:addons/pos_driver_display/models/pos_config.py:0
#, python-format
msgid "Point of Sale Open"
msgstr "Caisse ouverte"
msgid ""
"Point of Sale Open\n"
"Welcome!"
msgstr ""
"Point de vente ouvert\n"
"Bienvenue!"

#. module: pos_driver_display
#: model:ir.model,name:pos_driver_display.model_pos_session
msgid "Point of Sale Session"
msgstr "Session du point de vente"

#. module: pos_driver_display
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_msg_next_l2
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_msg_next_l2
msgid ""
"Second line of the message on the customer display which is displayed after "
"starting POS and also after validation of an order"
msgstr ""
"Deuxième ligne du message de l'afficheur client qui est affiché après le "
"démarrage de la caisse et également après validation d'une commande client"

#. module: pos_driver_display
#: model:ir.model.fields,help:pos_driver_display.field_pos_config__customer_display_msg_closed_l2
#: model:ir.model.fields,help:pos_driver_display.field_res_config_settings__pos_customer_display_msg_closed_l2
msgid ""
"Second line of the message on the customer display which is displayed when "
"POS is closed"
msgstr ""
"Deuxième ligne du message de l'afficheur client qui est affiché quand la "
"caisse est fermée"

#. module: pos_driver_display
#. odoo-python
#: code:addons/pos_driver_display/models/pos_config.py:0
#, python-format
msgid "See you soon!"
msgstr "Au revoir !"

#. module: pos_driver_display
#. odoo-python
#: code:addons/pos_driver_display/models/pos_config.py:0
#, python-format
msgid ""
"The message for customer display '%(field_name)s' is too long: it has "
"%(current_size)d chars whereas the maximum is %(maxsize)d chars."
msgstr ""
"Le message de l'afficheur client '%(field_name)s' est trop long : il contient %(current_size)d "
"caractères alors que le maximum est de %(maxsize)d caractères."

#. module: pos_driver_display
#. odoo-python
#: code:addons/pos_driver_display/models/pos_config.py:0
#, python-format
msgid "Welcome!"
msgstr "Bienvenue !"
20 changes: 20 additions & 0 deletions pos_driver_display/migrations/16.0.3.0.0/post-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
# TODO, concatenate and set \n between text

# customer_display_msg_next_l1
# customer_display_msg_next_l2
# -> customer_display_message_next

# customer_display_msg_closed_l1
# customer_display_msg_closed_l2
# -> customer_display_message_closed

pass
19 changes: 19 additions & 0 deletions pos_driver_display/migrations/16.0.3.0.0/pre-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openupgradelib import openupgrade

column_renames = {
"pos_config": [
("customer_display_msg_next_l1", None),
("customer_display_msg_next_l2", None),
("customer_display_msg_closed_l1", None),
("customer_display_msg_closed_l2", None),
],
}


@openupgrade.migrate()
def migrate(env, version):
openupgrade.rename_columns(env.cr, column_renames)
Loading

0 comments on commit eee3dfe

Please sign in to comment.