Skip to content

Commit

Permalink
Merge e056738 into 5967ad8
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati committed Dec 10, 2019
2 parents 5967ad8 + e056738 commit 26e30ea
Show file tree
Hide file tree
Showing 19 changed files with 687 additions and 0 deletions.
1 change: 1 addition & 0 deletions fiscal_epos_print/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions fiscal_epos_print/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Leonardo Donelli - Creativi Quadrati
# © 2016 Alessio Gerace - Agile Business Group
# © 2018-2019 Lorenzo Battistini
# License GPL-3.0 or later (http://www.gnu.org/licenses/gpl.html).

{
'name': 'Driver for ePOS-Print XML compatible fiscal printers',
'version': '12.0.1.0.0',
'category': 'POS, Fiscal, Hardware, Driver',
'summary': 'ePOS-Print XML Fiscal Printer Driver',
'author': (
'Agile Business Group, '
'Leonardo Donelli @ Creativi Quadrati, TAKOBI'
),
'website': 'https://github.com/OCA/l10n-italy',
'depends': ['point_of_sale', 'pos_order_mgmt'],
'data': [
'views/account_statement_view.xml',
'views/point_of_sale.xml',
'views/assets.xml',
],
'js': [
'static/src/js/fp90iii.js',
'static/lib/fiscalprint/fiscalprint.js'
],
'qweb': [
'static/src/xml/pos.xml'
],
'installable': True,
'auto_install': False,
}
152 changes: 152 additions & 0 deletions fiscal_epos_print/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fiscal_epos_print
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-10-29 10:20+0000\n"
"PO-Revision-Date: 2019-10-29 10:20+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: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:32
#, python-format
msgid "\n"
"Old files: "
msgstr "\nFile vecchi: "

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:32
#, python-format
msgid "\n"
"Rejected files: "
msgstr "\nFile rifiutati: "

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/xml/pos.xml:6
#, python-format
msgid "ADE status"
msgstr "Stato ADE"

#. module: fiscal_epos_print
#: selection:account.journal,fiscalprinter_payment_type:0
msgid "Cash"
msgstr "Contanti"

#. module: fiscal_epos_print
#: selection:account.journal,fiscalprinter_payment_type:0
msgid "Cheque"
msgstr "Assegni"

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:260
#, python-format
msgid "Connecting to the fiscal printer"
msgstr "Connessione alla stampante fiscale"

#. module: fiscal_epos_print
#: selection:account.journal,fiscalprinter_payment_type:0
msgid "Credit/Credit Card"
msgstr "Carta di credito"

#. module: fiscal_epos_print
#: model:ir.model.fields,field_description:fiscal_epos_print.field_account_tax__fpdeptax
msgid "Department group tax on fiscal printer 1~99"
msgstr "Reparto sulla stampante fiscale 1~99"

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:24
#, python-format
msgid "Error missing paper."
msgstr "Errore Manca La carta."

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:32
#, python-format
msgid "Files waiting to be sent: "
msgstr "File in attesa di essere inviati: "

#. module: fiscal_epos_print
#: model_terms:ir.ui.view,arch_db:fiscal_epos_print.view_pos_config_printer_form
msgid "Fiscal printer"
msgstr "Stampante fiscale"

#. module: fiscal_epos_print
#: model:ir.model,name:fiscal_epos_print.model_account_journal
msgid "Journal"
msgstr "Registro"

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:39
#, python-format
msgid "Network error. Printer can not be reached"
msgstr "Errore di rete. La stampante non può essere raggiunta"

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/js/fp90iii.js:162
#, python-format
msgid "No taxes found"
msgstr "Nessuna imposta trovata"

#. module: fiscal_epos_print
#: model:ir.model.fields,field_description:fiscal_epos_print.field_account_journal__fiscalprinter_payment_type
msgid "Payment type"
msgstr "Tipo di pagamento"

#. module: fiscal_epos_print
#: model:ir.model,name:fiscal_epos_print.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configurazione punto vendita"

#. module: fiscal_epos_print
#: model:ir.model.fields,field_description:fiscal_epos_print.field_pos_config__printer_ip
msgid "Printer IP Address"
msgstr "Indirizzo IP stampante"

#. module: fiscal_epos_print
#. openerp-web
#: code:addons/fiscal_epos_print/static/src/xml/pos.xml:6
#, python-format
msgid "Status of files to be sent to ADE"
msgstr "Stato dei file da inviare all'ADE"

#. module: fiscal_epos_print
#: model:ir.model,name:fiscal_epos_print.model_account_tax
msgid "Tax"
msgstr "Imposta"

#. module: fiscal_epos_print
#: model:ir.model.fields,help:fiscal_epos_print.field_pos_config__printer_ip
msgid "The hostname or ip address of the hardware printer, please fill this field if you want use you receipts printer"
msgstr ""

#. module: fiscal_epos_print
#: model:ir.model.fields,help:fiscal_epos_print.field_account_journal__fiscalprinter_payment_type
msgid "The payment type to send to the Fiscal Printer."
msgstr ""

#. module: fiscal_epos_print
#: selection:account.journal,fiscalprinter_payment_type:0
msgid "Ticket"
msgstr ""

#. module: fiscal_epos_print
#: model:ir.model.fields,field_description:fiscal_epos_print.field_pos_config__use_https
msgid "Use https"
msgstr "Usa HTTPS"

4 changes: 4 additions & 0 deletions fiscal_epos_print/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import account_journal
from . import point_of_sale
from . import account
from . import product
10 changes: 10 additions & 0 deletions fiscal_epos_print/models/account.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from odoo import fields, models


class AccountTax(models.Model):
_inherit = 'account.tax'

fpdeptax = fields.Char(
'Department group tax on fiscal printer 1~99',
size=1, default="1"
)
16 changes: 16 additions & 0 deletions fiscal_epos_print/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from odoo import fields, models


class AccountJournal(models.Model):
_inherit = 'account.journal'
fiscalprinter_payment_type = fields.Selection(
[
('0', 'Cash'),
('1', 'Cheque'),
('2', 'Credit/Credit Card'),
('3', 'Ticket')
],
'Payment type',
help='The payment type to send to the Fiscal Printer.',
default='0'
)
16 changes: 16 additions & 0 deletions fiscal_epos_print/models/point_of_sale.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from odoo import fields, models


class PosConfig(models.Model):
_inherit = 'pos.config'

printer_ip = fields.Char(
'Printer IP Address',
help='The hostname or ip address of the hardware printer, '
'please fill this field if you want use you receipts printer',
size=45
)
use_https = fields.Boolean(
string='Use https',
default=False,
)
14 changes: 14 additions & 0 deletions fiscal_epos_print/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from odoo import models, api, _
from odoo.exceptions import ValidationError


class Product(models.Model):
_inherit = 'product.template'

@api.constrains('available_in_pos', 'taxes_id')
def _check_pos_prod_taxes(self):
if self.available_in_pos:
if len(self.taxes_id) != 1:
raise ValidationError(_("Product %s must have 1 tax") % self.display_name)
if not self.taxes_id[0].price_include:
raise ValidationError(_("Tax %s must be included in price") % self.taxes_id[0].display_name)
6 changes: 6 additions & 0 deletions fiscal_epos_print/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- print list departments of your fiscal printer
- mapping odoo sale taxes with group taxes - departments of fiscal printer, for each sale tax on odoo, using field "Department group tax on fiscal printer 1~99"
- In odoo, use taxes included in price
- connect your fiscal printer on network and find IP
- open point_of_sale configuration and fill Printer IP Address field, with printer IP
- that's all, at validation of payment on POS session system print fiscal receipt.
4 changes: 4 additions & 0 deletions fiscal_epos_print/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Leonardo Donelli
* Lorenzo Battistini
* Alessio Gerace
* Roberto Fichera
7 changes: 7 additions & 0 deletions fiscal_epos_print/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module allows to print receipt of point_of_sale,
on fiscal printer Epson via EPos protocol.

Supported printers:

- FP81II
- FP90III
5 changes: 5 additions & 0 deletions fiscal_epos_print/static/src/css/pos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* Disabilitato finchè non gestiamo i resi */

.orderlist-screen .order-line .order-list-return {
display:none;
}
Binary file added fiscal_epos_print/static/src/img/ade-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 26e30ea

Please sign in to comment.