Skip to content

Commit 095dcc7

Browse files
committed
Merge PR #5199 into 18.0
Signed-off-by tafaRU
2 parents cbe3067 + c7ea333 commit 095dcc7

4 files changed

Lines changed: 25 additions & 23 deletions

File tree

l10n_it_edi_related_document/README.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=========================
62
Related Documents for EDI
73
=========================
@@ -17,7 +13,7 @@ Related Documents for EDI
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
@@ -75,7 +71,10 @@ Authors
7571
Contributors
7672
------------
7773

78-
- Nextev Srl <odoo@nextev.it>
74+
- Nextev Srl <odoo@nextev.it>
75+
- `Stesi Consulting srl <https://www.stesi.consulting/>`__:
76+
77+
- Michele Di Croce <dicroce.m@stesi.consulting>
7978

8079
Maintainers
8180
-----------

l10n_it_edi_related_document/models/account_move.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,13 @@ def create_related_document(self, invoice, rel_docs_dict):
238238
)
239239
if invoice_line:
240240
invoice_lineid = invoice_line.id
241+
name = get_text(element, "./IdDocumento")
242+
if not name:
243+
continue
241244
entry = {
242245
"type": key,
243246
"lineRef": lineRef,
244-
"name": get_text(element, "./IdDocumento"),
247+
"name": name,
245248
"date": get_text(element, "./Data"),
246249
"numitem": get_text(element, "./NumItem"),
247250
"code": get_text(element, "./CodiceCommessaConvenzione"),
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
- Nextev Srl \<<odoo@nextev.it>\>
1+
- Nextev Srl \<<odoo@nextev.it>\>
2+
- [Stesi Consulting srl](https://www.stesi.consulting/):
3+
- Michele Di Croce \<<dicroce.m@stesi.consulting>\>

l10n_it_edi_related_document/static/description/index.html

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Related Documents for EDI</title>
77
<style type="text/css">
88

99
/*
@@ -360,21 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="related-documents-for-edi">
364+
<h1 class="title">Related Documents for EDI</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="related-documents-for-edi">
370-
<h1>Related Documents for EDI</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:b6193908cda38c2ebda12e67515b9b42fc9a24827f8d7e99629b87a228b20aff
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_edi_related_document"><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-18-0/l10n-italy-18-0-l10n_it_edi_related_document"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
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/18.0/l10n_it_edi_related_document"><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-18-0/l10n-italy-18-0-l10n_it_edi_related_document"><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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p><strong>English</strong></p>
379374
<p>Module for managing the types of documents linked to invoices. The data
380375
related to the linked documents is then exported in the electronic
@@ -401,29 +396,33 @@ <h1>Related Documents for EDI</h1>
401396
</ul>
402397
</div>
403398
<div class="section" id="bug-tracker">
404-
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
399+
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
405400
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
406401
In case of trouble, please check there if your issue has already been reported.
407402
If you spotted it first, help us to smash it by providing a detailed and welcomed
408403
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_edi_related_document%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409404
<p>Do not contact contributors directly about support or help with technical issues.</p>
410405
</div>
411406
<div class="section" id="credits">
412-
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
407+
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
413408
<div class="section" id="authors">
414-
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
409+
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
415410
<ul class="simple">
416411
<li>Nextev Srl</li>
417412
</ul>
418413
</div>
419414
<div class="section" id="contributors">
420-
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
415+
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
421416
<ul class="simple">
422417
<li>Nextev Srl &lt;<a class="reference external" href="mailto:odoo&#64;nextev.it">odoo&#64;nextev.it</a>&gt;</li>
418+
<li><a class="reference external" href="https://www.stesi.consulting/">Stesi Consulting srl</a>:<ul>
419+
<li>Michele Di Croce &lt;<a class="reference external" href="mailto:dicroce.m&#64;stesi.consulting">dicroce.m&#64;stesi.consulting</a>&gt;</li>
420+
</ul>
421+
</li>
423422
</ul>
424423
</div>
425424
<div class="section" id="maintainers">
426-
<h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
425+
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
427426
<p>This module is maintained by the OCA.</p>
428427
<a class="reference external image-reference" href="https://odoo-community.org">
429428
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -436,6 +435,5 @@ <h3><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h3>
436435
</div>
437436
</div>
438437
</div>
439-
</div>
440438
</body>
441439
</html>

0 commit comments

Comments
 (0)