Browse Source

Fix copyright headers

PEP8 stuff
pull/440/head
Alexis de Lattre 11 years ago
committed by Sylvain LE GAL
parent
commit
ed9fddb74a
  1. 2
      pos_payment_terminal/__init__.py
  2. 14
      pos_payment_terminal/__openerp__.py
  3. 14
      pos_payment_terminal/pos_payment_terminal.py

2
pos_payment_terminal/__init__.py

@ -1 +1 @@
import pos_payment_terminal
from . import pos_payment_terminal

14
pos_payment_terminal/__openerp__.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# POS Payment Terminal module for Odoo
# Copyright (C) 2014 Aurélien DUMAINE
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
@ -29,17 +29,17 @@
POS Payment Terminal POS Payment Terminal
==================== ====================
This module adds support for Payment Terminal in the Point of Sale. This module is designed to be installed on the *main Odoo server*. On the *POSbox*, you should install the module *hw_x* depending on the protocol implemented in your device. Ingenico devices support the Telium protocol implemented in the *hw_telium_payment_terminal* module.
This module adds support for Payment Terminal in the Point of Sale. This module is designed to be installed on the *main Odoo server*. On the *POSbox*, you should install the module *hw_x* depending on the protocol implemented in your device. Ingenico and Sagem devices support the Telium protocol implemented in the *hw_telium_payment_terminal* module.
This module support two payment methods : cards and checks. The payment method should be configured on the main Odoo server, in the menu Point of Sale > Configuration > Payment Methods. This module support two payment methods : cards and checks. The payment method should be configured on the main Odoo server, in the menu Point of Sale > Configuration > Payment Methods.
This module has been developped during a POS code sprint at Akretion France from July 7th to July 10th 2014. This module is part of the POS project of the Odoo Community Association http://odoo-community.org/. You are invited to become a member and/or get involved in the Association ! This module has been developped during a POS code sprint at Akretion France from July 7th to July 10th 2014. This module is part of the POS project of the Odoo Community Association http://odoo-community.org/. You are invited to become a member and/or get involved in the Association !
Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
""", """,
'author': 'Aurélien DUMAINE', 'author': 'Aurélien DUMAINE',
'depends': ['point_of_sale', 'currency_iso_numeric'], 'depends': ['point_of_sale', 'currency_iso_numeric'],
'data' : ['pos_payment_terminal.xml',
'pos_payment_terminal_view.xml'],
'data': [
'pos_payment_terminal.xml',
'pos_payment_terminal_view.xml',
],
'qweb': ['static/src/xml/pos_payment_terminal.xml'], 'qweb': ['static/src/xml/pos_payment_terminal.xml'],
} }

14
pos_payment_terminal/pos_payment_terminal.py

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SP (<http://tiny.be>).
# POS Payment Terminal module for Odoo
# Copyright (C) 2014 Aurélien DUMAINE
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
@ -21,16 +21,22 @@
from openerp import models, fields from openerp import models, fields
class account_journal(models.Model): class account_journal(models.Model):
_name = 'account.journal' _name = 'account.journal'
_inherit = 'account.journal' _inherit = 'account.journal'
payment_mode = fields.Selection((('card', 'Card'), ('check', 'Check')), 'Payment mode', help="Select the payment mode sent to the payment terminal")
payment_mode = fields.Selection(
(('card', 'Card'), ('check', 'Check')), 'Payment mode',
help="Select the payment mode sent to the payment terminal")
class pos_config(models.Model): class pos_config(models.Model):
_name = 'pos.config' _name = 'pos.config'
_inherit = 'pos.config' _inherit = 'pos.config'
iface_payment_terminal = fields.Boolean('Payment Terminal', help="A payment terminal is available on the Proxy")
iface_payment_terminal = fields.Boolean(
'Payment Terminal',
help="A payment terminal is available on the Proxy")
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
Loading…
Cancel
Save