Skip to content

Commit 0ebaaab

Browse files
committed
[MIG] l10n_it_delivery_note_batch: Migration to 18.0
1 parent f54c13b commit 0ebaaab

6 files changed

Lines changed: 20 additions & 35 deletions

File tree

l10n_it_delivery_note_batch/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ ITA - Documento di trasporto - Prelievo raggruppato
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/16.0/l10n_it_delivery_note_batch
20+
:target: https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_delivery_note_batch
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-16-0/l10n-italy-16-0-l10n_it_delivery_note_batch
23+
:target: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_delivery_note_batch
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=16.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|
@@ -55,7 +55,7 @@ Bug Tracker
5555
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
5656
In case of trouble, please check there if your issue has already been reported.
5757
If you spotted it first, help us to smash it by providing a detailed and welcomed
58-
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_batch%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_batch%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5959

6060
Do not contact contributors directly about support or help with technical issues.
6161

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

111111
|maintainer-MarcoCalcagni| |maintainer-TheMule71| |maintainer-Borruso| |maintainer-aleuffre| |maintainer-PicchiSeba| |maintainer-renda-dev|
112112

113-
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_delivery_note_batch>`_ project on GitHub.
113+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_delivery_note_batch>`_ project on GitHub.
114114

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

l10n_it_delivery_note_batch/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"name": "ITA - Documento di trasporto - Prelievo raggruppato",
88
"summary": "Crea i DDT partendo da gruppi di prelievi",
99
"author": "Marco Colombo, Odoo Community Association (OCA)",
10-
"website": "https://github.com/OCA/l10n-italy" "l10n_it_delivery_note_batch",
11-
"version": "16.0.1.1.0",
10+
"website": "https://github.com/OCA/l10n-italy",
11+
"version": "18.0.1.0.0",
1212
"category": "Localization/Italy",
1313
"license": "AGPL-3",
1414
"maintainers": [

l10n_it_delivery_note_batch/models/stock_delivery_note.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ class StockDeliveryNote(models.Model):
1010
stock_picking_batch_id = fields.Many2one(
1111
"stock.picking.batch",
1212
string="Batch Picking",
13-
readonly=True,
1413
)

l10n_it_delivery_note_batch/static/description/index.html

Lines changed: 10 additions & 7 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,7 +369,7 @@ <h1 class="title">ITA - Documento di trasporto - Prelievo raggruppato</h1>
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369370
!! source digest: sha256:6500f0979c9b55298edbf0666512d100ac847d87f792b2699294c1acfe3ca179
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/16.0/l10n_it_delivery_note_batch"><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_delivery_note_batch"><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>
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_batch"><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_batch"><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>Italiano</strong></p>
373374
<p>Questo modulo permette la creazione di DDT a partire da gruppi di
374375
prelievi.</p>
@@ -397,7 +398,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
397398
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
398399
In case of trouble, please check there if your issue has already been reported.
399400
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_delivery_note_batch%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_batch%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401402
<p>Do not contact contributors directly about support or help with technical issues.</p>
402403
</div>
403404
<div class="section" id="credits">
@@ -419,13 +420,15 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
419420
<div class="section" id="maintainers">
420421
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
421422
<p>This module is maintained by the OCA.</p>
422-
<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>
423426
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
424427
mission is to support the collaborative development of Odoo features and
425428
promote its widespread use.</p>
426429
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
427430
<p><a class="reference external image-reference" href="https://github.com/MarcoCalcagni"><img alt="MarcoCalcagni" src="https://github.com/MarcoCalcagni.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/TheMule71"><img alt="TheMule71" src="https://github.com/TheMule71.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/Borruso"><img alt="Borruso" src="https://github.com/Borruso.png?size=40px" /></a> <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/PicchiSeba"><img alt="PicchiSeba" src="https://github.com/PicchiSeba.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></p>
428-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_delivery_note_batch">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_batch">OCA/l10n-italy</a> project on GitHub.</p>
429432
<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>
430433
</div>
431434
</div>

l10n_it_delivery_note_batch/views/stock_picking_batch_views.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@
1515
type="object"
1616
string="Create DNs"
1717
style="margin-left:10px;"
18-
attrs="{'invisible': [
19-
'|',
20-
('state', '=', 'done'),
21-
('all_pickings_have_delivery_note', '=', True)
22-
]}"
18+
invisible="state == 'done' or all_pickings_have_delivery_note"
2319
/>
24-
<!-- attrs="{'invisible': ['|', ('state', '!=', 'done'), ('delivery_note_count', '!=', 0)]}" -->
2520
</xpath>
2621
<xpath expr="//sheet/div" position="before">
2722
<div class="oe_button_box" name="button_box">
@@ -30,8 +25,7 @@
3025
class="oe_stat_button"
3126
name="goto_delivery_notes"
3227
icon="fa-pencil-square-o"
33-
attrs="{'invisible': [('delivery_note_count', '=', 0)]}"
34-
groups="l10n_it_delivery_note.use_advanced_delivery_notes"
28+
invisible="not delivery_note_count"
3529
>
3630
<field
3731
name="delivery_note_count"
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<odoo>
33
<record id="vpicktree" model="ir.ui.view">
4-
<field name="name">stock.picking.tree</field>
4+
<field name="name">stock.picking.list</field>
55
<field name="model">stock.picking</field>
66
<field name="inherit_id" ref="stock.vpicktree" />
77
<field name="arch" type="xml">
@@ -10,15 +10,4 @@
1010
</xpath>
1111
</field>
1212
</record>
13-
14-
<record id="view_picking_tree_batch" model="ir.ui.view">
15-
<field name="name">stock_picking_batch.picking.tree.batch</field>
16-
<field name="model">stock.picking</field>
17-
<field name="inherit_id" ref="stock_picking_batch.view_picking_tree_batch" />
18-
<field name="arch" type="xml">
19-
<xpath expr="//field[@name='origin']" position="after">
20-
<field name="delivery_note_id" />
21-
</xpath>
22-
</field>
23-
</record>
2413
</odoo>

0 commit comments

Comments
 (0)