Skip to content

Commit ed17dd3

Browse files
SirAionTechodooNextev
authored andcommitted
[IMP] l10n_it_accompanying_invoice: pre-commit execution
1 parent c0352dd commit ed17dd3

14 files changed

Lines changed: 71 additions & 54 deletions

File tree

l10n_it_accompanying_invoice/README.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ ITA - Fattura accompagnatoria
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
20-
:target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_accompanying_invoice
20+
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice
2121
:alt: OCA/l10n-italy
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_accompanying_invoice
23+
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_accompanying_invoice
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=12.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
**Italiano**
3232

33-
Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di *Informazioni di spedizione* nella fattura.
33+
Questo modulo consente di stampare una fattura accompagnatoria, per
34+
visualizzare i dati di *Informazioni di spedizione* nella fattura.
3435

3536
**English**
3637

37-
This module allows you to print an accompanying invoice, to view *Shipping Information* data inside the invoice.
38+
This module allows you to print an accompanying invoice, to view
39+
*Shipping Information* data inside the invoice.
3840

3941
**Table of contents**
4042

@@ -46,34 +48,35 @@ Usage
4648

4749
Valorizzare i campi del foglio *Informazioni di spedizione*.
4850

49-
Usare l'azione *Fattura accompagnatoria* all'interno della lista di azioni *Stampa*, nella vista delle fatture.
51+
Usare l'azione *Fattura accompagnatoria* all'interno della lista di
52+
azioni *Stampa*, nella vista delle fatture.
5053

5154
Bug Tracker
5255
===========
5356

5457
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
5558
In case of trouble, please check there if your issue has already been reported.
5659
If you spotted it first, help us to smash it by providing a detailed and welcomed
57-
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
60+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5861

5962
Do not contact contributors directly about support or help with technical issues.
6063

6164
Credits
6265
=======
6366

6467
Authors
65-
~~~~~~~
68+
-------
6669

6770
* Agile Business Group
6871

6972
Contributors
70-
~~~~~~~~~~~~
73+
------------
7174

72-
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
73-
* Simone Vanin <simone.vanin@agilebg.com>
75+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com>
76+
- Simone Vanin <simone.vanin@agilebg.com>
7477

7578
Maintainers
76-
~~~~~~~~~~~
79+
-----------
7780

7881
This module is maintained by the OCA.
7982

@@ -85,6 +88,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8588
mission is to support the collaborative development of Odoo features and
8689
promote its widespread use.
8790

88-
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_accompanying_invoice>`_ project on GitHub.
91+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice>`_ project on GitHub.
8992

9093
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

l10n_it_accompanying_invoice/__manifest__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44

55
{
66
"name": "ITA - Fattura accompagnatoria",
7-
'summary': 'Stampa della fattura accompagnatoria',
7+
"summary": "Stampa della fattura accompagnatoria",
88
"version": "12.0.1.0.0",
99
"category": "Accounting",
1010
"website": "https://github.com/OCA/l10n-italy"
11-
"/tree/12.0/l10n_it_accompanying_invoice",
12-
"author": "Agile Business Group, "
13-
"Odoo Community Association (OCA)",
11+
"/tree/12.0/l10n_it_accompanying_invoice",
12+
"author": "Agile Business Group, " "Odoo Community Association (OCA)",
1413
"license": "AGPL-3",
1514
"application": False,
1615
"installable": True,

l10n_it_accompanying_invoice/models/account_invoice.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88

99
class AccountInvoice(models.Model):
10-
11-
_inherit = 'account.invoice'
10+
_inherit = "account.invoice"
1211
# we need this to be able to call l10n_it_ddt.delivery_data
13-
note = fields.Text('Notes', readonly=True, related="comment")
14-
date_done = fields.Datetime(string='Shipping Date')
12+
note = fields.Text("Notes", readonly=True, related="comment")
13+
date_done = fields.Datetime(string="Shipping Date")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Lorenzo Battistini \<<lorenzo.battistini@agilebg.com>\>
2+
- Simone Vanin \<<simone.vanin@agilebg.com>\>

l10n_it_accompanying_invoice/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
**Italiano**
22

3-
Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di *Informazioni di spedizione* nella fattura.
3+
Questo modulo consente di stampare una fattura accompagnatoria, per
4+
visualizzare i dati di *Informazioni di spedizione* nella fattura.
45

56
**English**
67

7-
This module allows you to print an accompanying invoice, to view *Shipping Information* data inside the invoice.
8+
This module allows you to print an accompanying invoice, to view
9+
*Shipping Information* data inside the invoice.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Valorizzare i campi del foglio *Informazioni di spedizione*.
22

3-
Usare l'azione *Fattura accompagnatoria* all'interno della lista di azioni *Stampa*, nella vista delle fatture.
3+
Usare l'azione *Fattura accompagnatoria* all'interno della lista di
4+
azioni *Stampa*, nella vista delle fatture.

l10n_it_accompanying_invoice/static/description/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -369,11 +368,13 @@ <h1 class="title">ITA - Fattura accompagnatoria</h1>
369368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370369
!! source digest: sha256:47e2b4ae93928006b62502df808ccab3b5f961ed66ec2be01da41807a4c16011
371370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_accompanying_invoice"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_accompanying_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=12.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_accompanying_invoice"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373372
<p><strong>Italiano</strong></p>
374-
<p>Questo modulo consente di stampare una fattura accompagnatoria, per visualizzare i dati di <em>Informazioni di spedizione</em> nella fattura.</p>
373+
<p>Questo modulo consente di stampare una fattura accompagnatoria, per
374+
visualizzare i dati di <em>Informazioni di spedizione</em> nella fattura.</p>
375375
<p><strong>English</strong></p>
376-
<p>This module allows you to print an accompanying invoice, to view <em>Shipping Information</em> data inside the invoice.</p>
376+
<p>This module allows you to print an accompanying invoice, to view
377+
<em>Shipping Information</em> data inside the invoice.</p>
377378
<p><strong>Table of contents</strong></p>
378379
<div class="contents local topic" id="contents">
379380
<ul class="simple">
@@ -390,14 +391,15 @@ <h1 class="title">ITA - Fattura accompagnatoria</h1>
390391
<div class="section" id="usage">
391392
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
392393
<p>Valorizzare i campi del foglio <em>Informazioni di spedizione</em>.</p>
393-
<p>Usare l’azione <em>Fattura accompagnatoria</em> all’interno della lista di azioni <em>Stampa</em>, nella vista delle fatture.</p>
394+
<p>Usare l’azione <em>Fattura accompagnatoria</em> all’interno della lista di
395+
azioni <em>Stampa</em>, nella vista delle fatture.</p>
394396
</div>
395397
<div class="section" id="bug-tracker">
396398
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
397399
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
398400
In case of trouble, please check there if your issue has already been reported.
399401
If you spotted it first, help us to smash it by providing a detailed and welcomed
400-
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
402+
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_accompanying_invoice%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401403
<p>Do not contact contributors directly about support or help with technical issues.</p>
402404
</div>
403405
<div class="section" id="credits">
@@ -422,7 +424,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
422424
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
423425
mission is to support the collaborative development of Odoo features and
424426
promote its widespread use.</p>
425-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_accompanying_invoice">OCA/l10n-italy</a> project on GitHub.</p>
427+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_accompanying_invoice">OCA/l10n-italy</a> project on GitHub.</p>
426428
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
427429
</div>
428430
</div>

l10n_it_accompanying_invoice/tests/test_report.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@
55

66
class TestReport(odoo.tests.TransactionCase):
77
def test_report(self):
8-
report = self.env['ir.actions.report']._get_report_from_name(
9-
'l10n_it_accompanying_invoice.accompanying_invoice_template'
8+
report = self.env["ir.actions.report"]._get_report_from_name(
9+
"l10n_it_accompanying_invoice.accompanying_invoice_template"
1010
)
1111

12-
partner1 = self.env.ref('base.res_partner_1')
13-
invoice = self.env['account.invoice'].create({
14-
'partner_id': partner1.id
15-
})
12+
partner1 = self.env.ref("base.res_partner_1")
13+
invoice = self.env["account.invoice"].create({"partner_id": partner1.id})
1614

1715
html = report.render_qweb_html([invoice.id])
1816

0 commit comments

Comments
 (0)