Skip to content

Commit 50e1070

Browse files
author
Andrea Barbato
committed
[IMP] l10n_it_delivery_note_customer_code: pre-commit auto fixes
1 parent 8621686 commit 50e1070

File tree

10 files changed

+60
-48
lines changed

10 files changed

+60
-48
lines changed

l10n_it_delivery_note_customer_code/README.rst

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,33 @@ Product Customer code and name for delivery note
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/14.0/l10n_it_delivery_note_customer_code
20+
:target: https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_delivery_note_customer_code
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-14-0/l10n-italy-14-0-l10n_it_delivery_note_customer_code
23+
:target: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_delivery_note_customer_code
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=14.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

3131
**English**
3232

33-
This module allows to print product customer code and name in Italian DDT (Delivery Note) report, replacing product code and name.
33+
This module allows to print product customer code and name in Italian
34+
DDT (Delivery Note) report, replacing product code and name.
3435

35-
For more information about product customer code field, see :code:`product_supplierinfo_for_customer_picking` module:
36+
For more information about product customer code field, see
37+
``product_supplierinfo_for_customer_picking`` module:
3638
https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking
3739

38-
3940
**Italiano**
4041

41-
Questo modulo consente di stampare il codice e il nome product customer sul report DDT, sostituendo il codice e il nome prodotto.
42+
Questo modulo consente di stampare il codice e il nome product customer
43+
sul report DDT, sostituendo il codice e il nome prodotto.
4244

43-
Per maggiori informazioni sul campo codice product customer, guardare il modulo :code:`product_supplierinfo_for_customer_picking`:
45+
Per maggiori informazioni sul campo codice product customer, guardare il
46+
modulo ``product_supplierinfo_for_customer_picking``:
4447
https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking
4548

4649
**Table of contents**
@@ -54,26 +57,26 @@ Bug Tracker
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_delivery_note_customer_code%0Aversion:%2014.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_delivery_note_customer_code%0Aversion:%2018.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-
* Simone Vanin <simone.vanin@agilebg.com>
73-
* Nextev Srl <web@nextev.it>
75+
- Simone Vanin <simone.vanin@agilebg.com>
76+
- Nextev Srl <web@nextev.it>
7477

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

7881
This module is maintained by the OCA.
7982

@@ -99,6 +102,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
99102

100103
|maintainer-aleuffre| |maintainer-renda-dev| |maintainer-PicchiSeba|
101104

102-
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_delivery_note_customer_code>`_ project on GitHub.
105+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_delivery_note_customer_code>`_ project on GitHub.
103106

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

l10n_it_delivery_note_customer_code/models/delivery_note_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class StockDeliveryNoteLine(models.Model):
8-
98
_inherit = "stock.delivery.note.line"
109
product_customer_code = fields.Char(
1110
string="Product Customer Code", related="move_id.product_customer_code"
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+
- Simone Vanin \<simone.vanin@agilebg.com\>
2+
- Nextev Srl \<web@nextev.it\>

l10n_it_delivery_note_customer_code/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**English**
2+
3+
This module allows to print product customer code and name in Italian
4+
DDT (Delivery Note) report, replacing product code and name.
5+
6+
For more information about product customer code field, see
7+
`product_supplierinfo_for_customer_picking` module:
8+
<https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking>
9+
10+
**Italiano**
11+
12+
Questo modulo consente di stampare il codice e il nome product customer
13+
sul report DDT, sostituendo il codice e il nome prodotto.
14+
15+
Per maggiori informazioni sul campo codice product customer, guardare il
16+
modulo `product_supplierinfo_for_customer_picking`:
17+
<https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking>

l10n_it_delivery_note_customer_code/readme/DESCRIPTION.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

l10n_it_delivery_note_customer_code/report/report_delivery_note.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Code
1616
</th>
1717
</xpath>
18-
<xpath
18+
<xpath
1919
expr="//div[hasclass('page')]/table/thead/tr/th[3]"
2020
position="attributes"
2121
>
@@ -26,12 +26,11 @@
2626
Product Name
2727
</th>
2828
</xpath>
29-
<xpath
29+
<xpath
3030
expr="//div[hasclass('page')]//table/tbody/t/tr/t/td[1]/span"
3131
position="attributes"
3232
>
3333
<attribute name="t-if">not line.product_customer_code</attribute>
34-
3534
</xpath>
3635
<xpath
3736
expr="//div[hasclass('page')]/table/tbody/t/tr/t/td[1]"

l10n_it_delivery_note_customer_code/static/description/index.html

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -368,14 +369,18 @@ <h1 class="title">Product Customer code and name for delivery note</h1>
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369370
!! source digest: sha256:4f5bcb492bbedb8879332e4a196ea0aa5a2d71831c1dfe4383806899ec84f581
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/14.0/l10n_it_delivery_note_customer_code"><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-14-0/l10n-italy-14-0-l10n_it_delivery_note_customer_code"><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=14.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_delivery_note_customer_code"><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_delivery_note_customer_code"><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>
372373
<p><strong>English</strong></p>
373-
<p>This module allows to print product customer code and name in Italian DDT (Delivery Note) report, replacing product code and name.</p>
374-
<p>For more information about product customer code field, see <code>product_supplierinfo_for_customer_picking</code> module:
374+
<p>This module allows to print product customer code and name in Italian
375+
DDT (Delivery Note) report, replacing product code and name.</p>
376+
<p>For more information about product customer code field, see
377+
<tt class="docutils literal">product_supplierinfo_for_customer_picking</tt> module:
375378
<a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking">https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking</a></p>
376379
<p><strong>Italiano</strong></p>
377-
<p>Questo modulo consente di stampare il codice e il nome product customer sul report DDT, sostituendo il codice e il nome prodotto.</p>
378-
<p>Per maggiori informazioni sul campo codice product customer, guardare il modulo <code>product_supplierinfo_for_customer_picking</code>:
380+
<p>Questo modulo consente di stampare il codice e il nome product customer
381+
sul report DDT, sostituendo il codice e il nome prodotto.</p>
382+
<p>Per maggiori informazioni sul campo codice product customer, guardare il
383+
modulo <tt class="docutils literal">product_supplierinfo_for_customer_picking</tt>:
379384
<a class="reference external" href="https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking">https://github.com/OCA/stock-logistics-workflow/tree/14.0/product_supplierinfo_for_customer_picking</a></p>
380385
<p><strong>Table of contents</strong></p>
381386
<div class="contents local topic" id="contents">
@@ -394,7 +399,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
394399
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
395400
In case of trouble, please check there if your issue has already been reported.
396401
If you spotted it first, help us to smash it by providing a detailed and welcomed
397-
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_customer_code%0Aversion:%2014.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_delivery_note_customer_code%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
398403
<p>Do not contact contributors directly about support or help with technical issues.</p>
399404
</div>
400405
<div class="section" id="credits">
@@ -415,13 +420,15 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
415420
<div class="section" id="maintainers">
416421
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
417422
<p>This module is maintained by the OCA.</p>
418-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
423+
<a class="reference external image-reference" href="https://odoo-community.org">
424+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
425+
</a>
419426
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
420427
mission is to support the collaborative development of Odoo features and
421428
promote its widespread use.</p>
422429
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
423430
<p><a class="reference external image-reference" href="https://github.com/aleuffre"><img alt="aleuffre" src="https://github.com/aleuffre.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/renda-dev"><img alt="renda-dev" src="https://github.com/renda-dev.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/PicchiSeba"><img alt="PicchiSeba" src="https://github.com/PicchiSeba.png?size=40px" /></a></p>
424-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_delivery_note_customer_code">OCA/l10n-italy</a> project on GitHub.</p>
431+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_delivery_note_customer_code">OCA/l10n-italy</a> project on GitHub.</p>
425432
<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>
426433
</div>
427434
</div>

l10n_it_delivery_note_customer_code/views/stock_delivery_note_views.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
3-
43
<record id="stock_delivery_note_form_view" model="ir.ui.view">
54
<field name="name">stock.delivery.note.form</field>
65
<field name="model">stock.delivery.note</field>
@@ -29,5 +28,4 @@
2928
</xpath>
3029
</field>
3130
</record>
32-
3331
</odoo>

0 commit comments

Comments
 (0)