Skip to content

Commit

Permalink
[ADD] pos_six: Six payment terminals with TIM
Browse files Browse the repository at this point in the history
Deprecate MPD integration for Six payment terminals and replace it
with TIM because:
- MPD broadcasts connection messages to the network so having
  multiple terminals and MPD servers in the same network results
  in connection issues
- TIM has a JS SDK so it doesn't require an IoT Box.
- MPD supports only Yomani and Yoximo terminals while TIM also
  supports Ingenico.

closes odoo#46182

Taskid: 2188566
Related: odoo/enterprise#8813
Signed-off-by: pimodoo <[email protected]>
  • Loading branch information
aprieels committed Mar 2, 2020
1 parent 68c5785 commit 3d43e65
Show file tree
Hide file tree
Showing 11 changed files with 37,162 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,11 @@ file_filter = addons/pos_sale/i18n/<lang>.po
source_file = addons/pos_sale/i18n/pos_sale.pot
source_lang = en

[odoo-13.pos_six]
file_filter = addons/pos_six/i18n/<lang>.po
source_file = addons/pos_six/i18n/pos_six.pot
source_lang = en

[odoo-13.procurement_jit]
file_filter = addons/procurement_jit/i18n/<lang>.po
source_file = addons/procurement_jit/i18n/procurement_jit.pot
Expand Down
4 changes: 4 additions & 0 deletions addons/pos_six/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import models
17 changes: 17 additions & 0 deletions addons/pos_six/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'POS Six',
'version': '1.0',
'category': 'Sales/Point Of Sale',
'sequence': 6,
'summary': 'Integrate your POS with a Six payment terminal',
'description': '',
'data': [
'views/pos_payment_method_views.xml',
'views/point_of_sale_assets.xml',
],
'depends': ['point_of_sale'],
'installable': True,
'license': 'OEEL-1',
}
40 changes: 40 additions & 0 deletions addons/pos_six/i18n/pos_six.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_six
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-25 08:44+0000\n"
"PO-Revision-Date: 2020-02-25 08:44+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_six
#: model:ir.model,name:pos_six.model_pos_payment_method
msgid "Point of Sale Payment Methods"
msgstr ""

#. module: pos_six
#: model:ir.model.fields,field_description:pos_six.field_pos_payment_method__six_terminal_ip
msgid "Six Terminal IP"
msgstr ""

#. module: pos_six
#. openerp-web
#: code:addons/pos_six/static/src/js/payment_six.js:0
#, python-format
msgid "Terminal Error"
msgstr ""

#. module: pos_six
#. openerp-web
#: code:addons/pos_six/static/src/js/payment_six.js:0
#, python-format
msgid "Transaction was not processed correctly"
msgstr ""
4 changes: 4 additions & 0 deletions addons/pos_six/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import pos_payment_method
13 changes: 13 additions & 0 deletions addons/pos_six/models/pos_payment_method.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import fields, models


class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'

def _get_payment_terminal_selection(self):
return super(PosPaymentMethod, self)._get_payment_terminal_selection() + [('six_tim', 'SIX without IoT Box')]

six_terminal_ip = fields.Char('Six Terminal IP')
Loading

0 comments on commit 3d43e65

Please sign in to comment.