-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
687 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
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,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, | ||
} |
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,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" | ||
|
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 @@ | ||
from . import account_journal | ||
from . import point_of_sale | ||
from . import account | ||
from . import product |
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,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" | ||
) |
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,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' | ||
) |
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,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, | ||
) |
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,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) |
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,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. |
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 @@ | ||
* Leonardo Donelli | ||
* Lorenzo Battistini | ||
* Alessio Gerace | ||
* Roberto Fichera |
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,7 @@ | ||
This module allows to print receipt of point_of_sale, | ||
on fiscal printer Epson via EPos protocol. | ||
|
||
Supported printers: | ||
|
||
- FP81II | ||
- FP90III |
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,5 @@ | ||
/* Disabilitato finchè non gestiamo i resi */ | ||
|
||
.orderlist-screen .order-line .order-list-return { | ||
display:none; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.