-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] pos_six: Six payment terminals with TIM
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
Showing
11 changed files
with
37,162 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Oops, something went wrong.