Skip to content

Commit

Permalink
[MIG] l10n_it_delivery_note_batch: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jado95 committed Feb 17, 2023
1 parent 8541b49 commit 64e1fc6
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 31 deletions.
15 changes: 8 additions & 7 deletions l10n_it_delivery_note_batch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ ITA - Documento di trasporto - Prelievo raggruppato
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_delivery_note_batch
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_delivery_note_batch
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_delivery_note_batch
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_delivery_note_batch
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/122/14.0
:target: https://runbot.odoo-community.org/runbot/122/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

**Italiano**

Expand Down Expand Up @@ -53,7 +53,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_batch%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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**>`_.

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

Expand All @@ -70,6 +70,7 @@ Contributors

* Marco Colombo <marco.colombo@gmail.com>
* Andrea Piovesana <andrea.m.piovesana@gmail.com>
* Gianmarco Conte <gconte@dinamicheaziendali.it>

Maintainers
~~~~~~~~~~~
Expand All @@ -93,8 +94,8 @@ promote its widespread use.

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-As400it| |maintainer-TheMule71|
|maintainer-As400it| |maintainer-TheMule71|

This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_delivery_note_batch>`_ project on GitHub.
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.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion l10n_it_delivery_note_batch/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"summary": "Crea i DDT partendo da gruppi di prelievi",
"author": "Marco Colombo, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy" "l10n_it_delivery_note_batch",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Localization/Italy",
"license": "AGPL-3",
"maintainers": ["As400it", "TheMule71"],
Expand Down
1 change: 1 addition & 0 deletions l10n_it_delivery_note_batch/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Marco Colombo <marco.colombo@gmail.com>
* Andrea Piovesana <andrea.m.piovesana@gmail.com>
* Gianmarco Conte <gconte@dinamicheaziendali.it>
9 changes: 5 additions & 4 deletions l10n_it_delivery_note_batch/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>ITA - Documento di trasporto - Prelievo raggruppato</title>
<style type="text/css">

Expand Down Expand Up @@ -367,7 +367,7 @@ <h1 class="title">ITA - Documento di trasporto - Prelievo raggruppato</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" 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" 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" href="https://github.com/OCA/l10n-italy/tree/14.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" href="https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-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" href="https://runbot.odoo-community.org/runbot/122/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" 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" 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" 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" 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" href="https://runbot.odoo-community.org/runbot/122/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><strong>Italiano</strong></p>
<p>Questo modulo permette la creazione di DDT a partire da gruppi di prelievi.</p>
<p><strong>English</strong></p>
Expand Down Expand Up @@ -397,7 +397,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_delivery_note_batch%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<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>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -413,6 +413,7 @@ <h2><a class="toc-backref" href="#id5">Contributors</a></h2>
<ul class="simple">
<li>Marco Colombo &lt;<a class="reference external" href="mailto:marco.colombo&#64;gmail.com">marco.colombo&#64;gmail.com</a>&gt;</li>
<li>Andrea Piovesana &lt;<a class="reference external" href="mailto:andrea.m.piovesana&#64;gmail.com">andrea.m.piovesana&#64;gmail.com</a>&gt;</li>
<li>Gianmarco Conte &lt;<a class="reference external" href="mailto:gconte&#64;dinamicheaziendali.it">gconte&#64;dinamicheaziendali.it</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -424,7 +425,7 @@ <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
<p><a class="reference external" href="https://github.com/As400it"><img alt="As400it" src="https://github.com/As400it.png?size=40px" /></a> <a class="reference external" href="https://github.com/TheMule71"><img alt="TheMule71" src="https://github.com/TheMule71.png?size=40px" /></a></p>
<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_batch">OCA/l10n-italy</a> project on GitHub.</p>
<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>
<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>
</div>
</div>
Expand Down
43 changes: 24 additions & 19 deletions l10n_it_delivery_note_batch/views/stock_picking_batch_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,33 @@
/>
<!-- attrs="{'invisible': ['|', ('state', '!=', 'done'), ('delivery_note_count', '!=', 0)]}" -->
</xpath>
<xpath expr="//sheet/div" position="before">
<div class="oe_button_box" name="button_box">
<button
type="object"
class="oe_stat_button"
name="goto_delivery_notes"
icon="fa-pencil-square-o"
attrs="{'invisible': [('delivery_note_count', '=', 0)]}"
groups="l10n_it_delivery_note.use_advanced_delivery_notes"
>
<field
name="delivery_note_count"
widget="statinfo"
string="Delivery Notes"
/>
</button>
</div>
<xpath expr="//sheet/div[@name='button_box']" position="inside">
<button
type="object"
class="oe_stat_button"
name="goto_delivery_notes"
icon="fa-pencil-square-o"
attrs="{'invisible': [('delivery_note_count', '=', 0)]}"
groups="l10n_it_delivery_note.use_advanced_delivery_notes"
>
<field
name="delivery_note_count"
widget="statinfo"
string="Delivery Notes"
/>
</button>
</xpath>
</field>
</record>

<xpath expr="//field[@name='picking_ids']/tree" position="inside">
<record id="stock_picking_batch_tree_view" model="ir.ui.view">
<field name="name">stock.picking.batch.tree</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock_picking_batch.view_picking_tree_batch" />
<field name="arch" type="xml">
<field name="state" position="after">
<field name="delivery_note_id" />
</xpath>
</field>
</field>
</record>

Expand Down

0 comments on commit 64e1fc6

Please sign in to comment.