forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] fiscal_epos_print: Forbid core's reprint for fiscal printers
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 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
16 changes: 16 additions & 0 deletions
16
fiscal_epos_print/migrations/12.0.2.0.0/post-fiscal_epos_disable_reprint.py
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 @@ | ||
# Copyright 2022 Simone Rubino - TAKOBI | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, installed_version): | ||
"""Disable frontend reprint for existing fiscal printer configurations.""" | ||
pos_configs = env['pos.config'].search([ | ||
('printer_ip', '!=', False), | ||
('iface_reprint_done_order', '=', True), | ||
]) | ||
pos_configs.update({ | ||
'iface_reprint_done_order': 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
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* `TAKOBI <https://takobi.online>`_: | ||
|
||
* Lorenzo Battistini | ||
* Simone Rubino <[email protected]> | ||
|
||
* 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* Resi: | ||
- Aggiungere controllo "rendibilità" | ||
- Stampare sullo scontrino un barcode identificativo, in modo da generare il reso facendone la scansione | ||
* Use fiscal printer's reprint functionality |