-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] fiscal_epos_print: Migration to 16.0
- Loading branch information
Showing
30 changed files
with
1,004 additions
and
640 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 |
---|---|---|
|
@@ -14,14 +14,14 @@ ITA - Driver per stampanti fiscali compatibili ePOS-Print XML | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github | ||
:target: https://github.com/OCA/l10n-italy/tree/14.0/fiscal_epos_print | ||
:target: https://github.com/OCA/l10n-italy/tree/16.0/fiscal_epos_print | ||
:alt: OCA/l10n-italy | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-fiscal_epos_print | ||
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-fiscal_epos_print | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/122/14.0 | ||
:alt: Try me on Runbot | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/l10n-italy&target_branch=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
|
@@ -83,7 +83,7 @@ Bug Tracker | |
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20fiscal_epos_print%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20fiscal_epos_print%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
|
@@ -109,6 +109,7 @@ Contributors | |
|
||
* Alessio Gerace | ||
* Roberto Fichera | ||
* Giuseppe Borruso <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
@@ -131,6 +132,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | |
|
||
|maintainer-eLBati| | ||
|
||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/fiscal_epos_print>`_ project on GitHub. | ||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/fiscal_epos_print>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
from . import pos_payment | ||
from . import pos_payment_method | ||
from . import point_of_sale | ||
from . import account | ||
from . import account_journal | ||
from . import pos_order | ||
from . import pos_session | ||
from . import res_config_settings |
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
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,25 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class PosPaymentMethod(models.Model): | ||
_inherit = "pos.payment.method" | ||
|
||
fiscalprinter_payment_type = fields.Selection( | ||
[ | ||
("0", "Cash"), | ||
("1", "Cheque"), | ||
("2", "Credit or Credit Card"), | ||
("3", "Ticket"), | ||
("4", "Ticket with number"), | ||
("5", "No Paid"), | ||
("6", "Discount on payment"), | ||
], | ||
"Payment type", | ||
help="The payment type to send to the Fiscal Printer.", | ||
default="0", | ||
) | ||
|
||
fiscalprinter_payment_index = fields.Integer( | ||
string="Electronic Payment / Ticket Index", | ||
help="Set the index of the given payment type to specify the detail.", | ||
) |
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,20 @@ | ||
# Copyright 2022 Dinamiche Aziendali srl | ||
# @author: Giuseppe Borruso <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import models | ||
|
||
|
||
class PosSession(models.Model): | ||
_inherit = "pos.session" | ||
|
||
def _loader_params_pos_payment_method(self): | ||
result = super()._loader_params_pos_payment_method() | ||
result["search_params"]["fields"].append("fiscalprinter_payment_type") | ||
result["search_params"]["fields"].append("fiscalprinter_payment_index") | ||
return result | ||
|
||
def _loader_params_account_tax(self): | ||
result = super()._loader_params_account_tax() | ||
result["search_params"]["fields"].append("fpdeptax") | ||
return result | ||
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 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class ResConfigSetting(models.TransientModel): | ||
_inherit = "res.config.settings" | ||
|
||
printer_ip = fields.Char(related="pos_config_id.printer_ip", readonly=False) | ||
use_https = fields.Boolean(related="pos_config_id.use_https", readonly=False) | ||
show_receipt_when_printing = fields.Boolean( | ||
related="pos_config_id.show_receipt_when_printing", readonly=False | ||
) | ||
fiscal_printer_serial = fields.Char( | ||
related="pos_config_id.fiscal_printer_serial", readonly=False | ||
) | ||
fiscal_cashdrawer = fields.Boolean( | ||
related="pos_config_id.fiscal_cashdrawer", readonly=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 |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
|
||
* Alessio Gerace | ||
* Roberto Fichera | ||
* Giuseppe Borruso <[email protected]> |
Oops, something went wrong.