From bd5787af9aafd86bf6e6e7f92476cb20ff3781d0 Mon Sep 17 00:00:00 2001 From: Borruso Date: Wed, 15 Jan 2025 10:18:00 +0100 Subject: [PATCH] [FIX] *: pre-commit --- .../static/src/js/epson_epos_print.js | 12 +++- l10n_it_delivery_note/README.rst | 65 ++++++++++--------- .../static/description/index.html | 9 ++- l10n_it_fatturapa/controllers/main.py | 2 +- l10n_it_fatturapa_out/__manifest__.py | 2 +- .../static/description/index.html | 2 +- .../static/description/index.html | 11 ++-- l10n_it_fiscalcode/model/res_partner.py | 6 +- 8 files changed, 62 insertions(+), 47 deletions(-) diff --git a/fiscal_epos_print/static/src/js/epson_epos_print.js b/fiscal_epos_print/static/src/js/epson_epos_print.js index 7b726fa1bcf0..8b5ad08c358f 100644 --- a/fiscal_epos_print/static/src/js/epson_epos_print.js +++ b/fiscal_epos_print/static/src/js/epson_epos_print.js @@ -582,7 +582,7 @@ odoo.define("fiscal_epos_print.epson_epos_print", function (require) { '" message="------------------" messageType="3" index="5" font="2" />'; var index = 5; _.each(receipt.ticket.split("
"), function (msg) { - if (msg.includes("Data:") || msg.includes("Date:")) { + if (msg.includes("Data:") || msg.includes("Date:")) { return true; } if (msg.includes("Ora:") || msg.includes("Time:")) { @@ -594,13 +594,19 @@ odoo.define("fiscal_epos_print.epson_epos_print", function (require) { if (msg.includes("Nome prof.:") || msg.includes("Pref. name:")) { return true; } - if (msg.includes("metodo di pagamento:") || msg.includes("Payment Method:")) { + if ( + msg.includes("metodo di pagamento:") || + msg.includes("Payment Method:") + ) { return true; } if (msg.includes("Payment variant:")) { return true; } - if (msg.includes("Modalità immissione:") || msg.includes("Entry mode:")) { + if ( + msg.includes("Modalità immissione:") || + msg.includes("Entry mode:") + ) { return true; } if (msg.includes("AID:")) { diff --git a/l10n_it_delivery_note/README.rst b/l10n_it_delivery_note/README.rst index 5a4c4464a429..0b071659c4f3 100644 --- a/l10n_it_delivery_note/README.rst +++ b/l10n_it_delivery_note/README.rst @@ -44,8 +44,8 @@ installed together. There are two available settings: -- Base (default): one picking, one DN. -- Advanced: more picking in one DN. +- Base (default): one picking, one DN. +- Advanced: more picking in one DN. **Italiano** @@ -62,8 +62,8 @@ Non è possibile avere installati contemporaneamente ``l10n_it_ddt`` e Ci sono due impostazioni possibili. -- Base (predefinita): un prelievo, un DDT. -- Avanzata: più prelievi in un DDT. +- Base (predefinita): un prelievo, un DDT. +- Avanzata: più prelievi in un DDT. **Table of contents** @@ -99,11 +99,14 @@ To configure this module, go to: In delivery note type you can specify if the product price have to be printed in the delivery note report/slip. - - *Inventory → Configuration → Delivery Notes → Conditions of - Transport* - - *Inventory → Configuration → Delivery Notes → Appearances of Goods* - - *Inventory → Configuration → Delivery Notes → Reasons of Transport* - - *Inventory → Configuration → Delivery Notes → Methods of Transport* + - *Inventory → Configuration → Delivery Notes → Conditions of + Transport* + - *Inventory → Configuration → Delivery Notes → Appearances of + Goods* + - *Inventory → Configuration → Delivery Notes → Reasons of + Transport* + - *Inventory → Configuration → Delivery Notes → Methods of + Transport* 3. *Settings → User & Companies → Users* @@ -141,10 +144,10 @@ Funzionalità avanzata Vengono attivate varie funzionalità aggiuntive: -- più prelievi per un DDT -- selezione multipla di prelievi e generazione dei DDT -- aggiunta righe nota e righe sezione descrittive. -- lista dei DDT. +- più prelievi per un DDT +- selezione multipla di prelievi e generazione dei DDT +- aggiunta righe nota e righe sezione descrittive. +- lista dei DDT. Il report DDT stampa in righe aggiuntive i lotti/seriali e le scadenze del prodotto. @@ -193,39 +196,39 @@ Authors Contributors ------------ -- Riccardo Bellanova +- Riccardo Bellanova -- Matteo Bilotta +- Matteo Bilotta -- Giuseppe Borruso +- Giuseppe Borruso -- Marco Calcagni +- Marco Calcagni -- Marco Colombo +- Marco Colombo -- Gianmarco Conte +- Gianmarco Conte -- Letizia Freda +- Letizia Freda -- Andrea Piovesana +- Andrea Piovesana -- Alex Comba +- Alex Comba -- `Ooops `__: +- `Ooops `__: - - Giovanni Serra - - Foresti Francesco + - Giovanni Serra + - Foresti Francesco -- Nextev Srl +- Nextev Srl -- `PyTech-SRL `__: +- `PyTech-SRL `__: - - Alessandro Uffreduzzi - - Sebastiano Picchi + - Alessandro Uffreduzzi + - Sebastiano Picchi -- `Aion Tech `__: +- `Aion Tech `__: - - Simone Rubino + - Simone Rubino Maintainers ----------- diff --git a/l10n_it_delivery_note/static/description/index.html b/l10n_it_delivery_note/static/description/index.html index cab993412219..ab8b7798ee92 100644 --- a/l10n_it_delivery_note/static/description/index.html +++ b/l10n_it_delivery_note/static/description/index.html @@ -444,9 +444,12 @@

Configuration

  • Inventory → Configuration → Delivery Notes → Conditions of Transport
  • -
  • Inventory → Configuration → Delivery Notes → Appearances of Goods
  • -
  • Inventory → Configuration → Delivery Notes → Reasons of Transport
  • -
  • Inventory → Configuration → Delivery Notes → Methods of Transport
  • +
  • Inventory → Configuration → Delivery Notes → Appearances of +Goods
  • +
  • Inventory → Configuration → Delivery Notes → Reasons of +Transport
  • +
  • Inventory → Configuration → Delivery Notes → Methods of +Transport
  • Settings → User & Companies → Users

    diff --git a/l10n_it_fatturapa/controllers/main.py b/l10n_it_fatturapa/controllers/main.py index 3cb48652699b..310ce272592f 100644 --- a/l10n_it_fatturapa/controllers/main.py +++ b/l10n_it_fatturapa/controllers/main.py @@ -14,6 +14,6 @@ def pdf_preview(self, attachment_id, **data): attach = request.env["ir.attachment"].browse(int(attachment_id)) fatturapa_attachment_model = request.env["fatturapa.attachment"] html = fatturapa_attachment_model.get_fattura_elettronica_preview(attach) - if type(html) == bytes: + if isinstance(html, bytes): html = html.decode() return request.make_response(html) diff --git a/l10n_it_fatturapa_out/__manifest__.py b/l10n_it_fatturapa_out/__manifest__.py index 540a0ab61944..9d6adfe07faf 100644 --- a/l10n_it_fatturapa_out/__manifest__.py +++ b/l10n_it_fatturapa_out/__manifest__.py @@ -31,7 +31,7 @@ "views/partner_view.xml", "views/company_view.xml", "data/l10n_it_fatturapa_out_data.xml", - "security/groups.xml", + "security/groups.xml", "security/ir.model.access.csv", "security/rules.xml", ], diff --git a/l10n_it_fatturapa_out/static/description/index.html b/l10n_it_fatturapa_out/static/description/index.html index e5c838995ccd..a97e8c91e699 100644 --- a/l10n_it_fatturapa_out/static/description/index.html +++ b/l10n_it_fatturapa_out/static/description/index.html @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { diff --git a/l10n_it_fatturapa_out_triple_discount/static/description/index.html b/l10n_it_fatturapa_out_triple_discount/static/description/index.html index a14fdaf199d7..ee6f8052d6a6 100644 --- a/l10n_it_fatturapa_out_triple_discount/static/description/index.html +++ b/l10n_it_fatturapa_out_triple_discount/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -417,7 +418,9 @@

    Contributors

    Maintainers

    This module is maintained by the OCA.

    -Odoo Community Association + +Odoo Community Association +

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    diff --git a/l10n_it_fiscalcode/model/res_partner.py b/l10n_it_fiscalcode/model/res_partner.py index d15bba791af3..1f93fd51164d 100644 --- a/l10n_it_fiscalcode/model/res_partner.py +++ b/l10n_it_fiscalcode/model/res_partner.py @@ -31,9 +31,9 @@ def check_fiscalcode(self): msg = _("The fiscal code must have 16 characters.") raise ValidationError(msg) # if not isvalid(partner.fiscalcode): - # Check fiscalcode validity - # msg = _("The fiscal code isn't valid.") - # raise ValidationError(msg) + # Check fiscalcode validity + # msg = _("The fiscal code isn't valid.") + # raise ValidationError(msg) return True fiscalcode = fields.Char("Fiscal Code", size=16, help="Italian Fiscal Code")