Skip to content

Commit 27de450

Browse files
author
ilo
committed
[18.0][MIG] base_delivery_carrier_label: Migration to 18.0
1 parent bb71fc5 commit 27de450

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

base_delivery_carrier_label/README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Contributors
9999
- Timothée Ringeard <timothee.ringeard@camptocamp.com>
100100
- Pimolnat Suntian <pimolnats@ecosoft.co.th>
101101
- Maksym Yankin <maksym.yankin@camptocamp.com>
102+
- Italo Lopes <italo.lopes@camptocamp.com>
102103
- `Binhex <https://binhex.cloud//com>`__:
103104

104105
- David Luis Mora <d.luis@binhex.cloud>

base_delivery_carrier_label/models/stock_quant_package.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def _complete_name(self, name, args):
4242
res = super()._complete_name(name, args)
4343
for pack in self:
4444
if pack.parcel_tracking:
45-
res[pack.id] += " [%s]" % pack.parcel_tracking
45+
res[pack.id] += f" [{pack.parcel_tracking}]"
4646
if pack.weight:
47-
res[pack.id] += " %s kg" % pack.weight
47+
res[pack.id] += f" {str(pack.weight)} kg"
4848
return res
4949

5050
def open_website_url(self):

base_delivery_carrier_label/readme/CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
- Timothée Ringeard \<<timothee.ringeard@camptocamp.com>\>
99
- Pimolnat Suntian \<<pimolnats@ecosoft.co.th>\>
1010
- Maksym Yankin \<<maksym.yankin@camptocamp.com>\>
11+
- Italo Lopes \<<italo.lopes@camptocamp.com>\>
1112
- [Binhex](https://binhex.cloud//com):
1213
- David Luis Mora \<<d.luis@binhex.cloud>\>

base_delivery_carrier_label/static/description/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
440440
<li>Timothée Ringeard &lt;<a class="reference external" href="mailto:timothee.ringeard&#64;camptocamp.com">timothee.ringeard&#64;camptocamp.com</a>&gt;</li>
441441
<li>Pimolnat Suntian &lt;<a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">pimolnats&#64;ecosoft.co.th</a>&gt;</li>
442442
<li>Maksym Yankin &lt;<a class="reference external" href="mailto:maksym.yankin&#64;camptocamp.com">maksym.yankin&#64;camptocamp.com</a>&gt;</li>
443+
<li>Italo Lopes &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
443444
<li><a class="reference external" href="https://binhex.cloud//com">Binhex</a>:<ul>
444445
<li>David Luis Mora &lt;<a class="reference external" href="mailto:d.luis&#64;binhex.cloud">d.luis&#64;binhex.cloud</a>&gt;</li>
445446
</ul>

base_delivery_carrier_label/views/delivery.xml

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
>delivery_base.delivery_carrier_template_option.view_tree</field>
2626
<field name="model">delivery.carrier.template.option</field>
2727
<field name="arch" type="xml">
28-
<tree>
28+
<list>
2929
<field name="partner_id" />
3030
<field name="code" readonly="True" />
3131
<field name="name" readonly="True" />
32-
</tree>
32+
</list>
3333
</field>
3434
</record>
3535
<!-- VIEW FOR THE OBJECT : delivery_carrier_option -->
@@ -57,14 +57,14 @@
5757
<record id="delivery_carrier_option_view_tree" model="ir.ui.view">
5858
<field name="name">delivery_base.delivery_carrier_option.view_tree</field>
5959
<field name="model">delivery.carrier.option</field>
60-
<field name="type">tree</field>
60+
<field name="type">list</field>
6161
<field name="arch" type="xml">
62-
<tree decoration-muted="not active">
62+
<list decoration-muted="not active">
6363
<field name="active" />
6464
<field name="mandatory" />
6565
<field name="tmpl_option_id" />
6666
<field name="code" />
67-
</tree>
67+
</list>
6868
</field>
6969
</record>
7070
<!-- INHERITED VIEW FOR THE OBJECT : delivery.carrier -->

0 commit comments

Comments
 (0)