Skip to content

Commit

Permalink
[FIX] *: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Jan 15, 2025
1 parent d6a8e9c commit bd5787a
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 47 deletions.
12 changes: 9 additions & 3 deletions fiscal_epos_print/static/src/js/epson_epos_print.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("<br />"), 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:")) {
Expand All @@ -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:")) {
Expand Down
65 changes: 34 additions & 31 deletions l10n_it_delivery_note/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -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**

Expand Down Expand Up @@ -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*

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -193,39 +196,39 @@ Authors
Contributors
------------

- Riccardo Bellanova <[email protected]>
- Riccardo Bellanova <[email protected]>

- Matteo Bilotta <[email protected]>
- Matteo Bilotta <[email protected]>

- Giuseppe Borruso <[email protected]>
- Giuseppe Borruso <[email protected]>

- Marco Calcagni <[email protected]>
- Marco Calcagni <[email protected]>

- Marco Colombo <[email protected]>
- Marco Colombo <[email protected]>

- Gianmarco Conte <[email protected]>
- Gianmarco Conte <[email protected]>

- Letizia Freda <[email protected]>
- Letizia Freda <[email protected]>

- Andrea Piovesana <[email protected]>
- Andrea Piovesana <[email protected]>

- Alex Comba <[email protected]>
- Alex Comba <[email protected]>

- `Ooops <https://www.ooops404.com>`__:
- `Ooops <https://www.ooops404.com>`__:

- Giovanni Serra <[email protected]>
- Foresti Francesco <[email protected]>
- Giovanni Serra <[email protected]>
- Foresti Francesco <[email protected]>

- Nextev Srl <[email protected]>
- Nextev Srl <[email protected]>

- `PyTech-SRL <https://www.pytech.it>`__:
- `PyTech-SRL <https://www.pytech.it>`__:

- Alessandro Uffreduzzi <[email protected]>
- Sebastiano Picchi <[email protected]>
- Alessandro Uffreduzzi <[email protected]>
- Sebastiano Picchi <[email protected]>

- `Aion Tech <https://aiontech.company/>`__:
- `Aion Tech <https://aiontech.company/>`__:

- Simone Rubino <[email protected]>
- Simone Rubino <[email protected]>

Maintainers
-----------
Expand Down
9 changes: 6 additions & 3 deletions l10n_it_delivery_note/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,12 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<ul class="simple">
<li><em>Inventory → Configuration → Delivery Notes → Conditions of
Transport</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Appearances of Goods</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Reasons of Transport</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Methods of Transport</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Appearances of
Goods</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Reasons of
Transport</em></li>
<li><em>Inventory → Configuration → Delivery Notes → Methods of
Transport</em></li>
</ul>
</li>
<li><p class="first"><em>Settings → User &amp; Companies → Users</em></p>
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
: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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -417,7 +418,9 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand Down
6 changes: 3 additions & 3 deletions l10n_it_fiscalcode/model/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bd5787a

Please sign in to comment.