Skip to content

Commit

Permalink
[18.0][MIG] base_delivery_carrier_label: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilo committed Jan 20, 2025
1 parent bb71fc5 commit 27de450
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions base_delivery_carrier_label/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Contributors
- Timothée Ringeard <[email protected]>
- Pimolnat Suntian <[email protected]>
- Maksym Yankin <[email protected]>
- Italo Lopes <[email protected]>
- `Binhex <https://binhex.cloud//com>`__:

- David Luis Mora <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions base_delivery_carrier_label/models/stock_quant_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def _complete_name(self, name, args):
res = super()._complete_name(name, args)
for pack in self:
if pack.parcel_tracking:
res[pack.id] += " [%s]" % pack.parcel_tracking
res[pack.id] += f" [{pack.parcel_tracking}]"
if pack.weight:
res[pack.id] += " %s kg" % pack.weight
res[pack.id] += f" {str(pack.weight)} kg"
return res

def open_website_url(self):
Expand Down
1 change: 1 addition & 0 deletions base_delivery_carrier_label/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
- Timothée Ringeard \<<[email protected]>\>
- Pimolnat Suntian \<<[email protected]>\>
- Maksym Yankin \<<[email protected]>\>
- Italo Lopes \<<[email protected]>\>
- [Binhex](https://binhex.cloud//com):
- David Luis Mora \<<[email protected]>\>
1 change: 1 addition & 0 deletions base_delivery_carrier_label/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Timothée Ringeard &lt;<a class="reference external" href="mailto:timothee.ringeard&#64;camptocamp.com">timothee.ringeard&#64;camptocamp.com</a>&gt;</li>
<li>Pimolnat Suntian &lt;<a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">pimolnats&#64;ecosoft.co.th</a>&gt;</li>
<li>Maksym Yankin &lt;<a class="reference external" href="mailto:maksym.yankin&#64;camptocamp.com">maksym.yankin&#64;camptocamp.com</a>&gt;</li>
<li>Italo Lopes &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
<li><a class="reference external" href="https://binhex.cloud//com">Binhex</a>:<ul>
<li>David Luis Mora &lt;<a class="reference external" href="mailto:d.luis&#64;binhex.cloud">d.luis&#64;binhex.cloud</a>&gt;</li>
</ul>
Expand Down
10 changes: 5 additions & 5 deletions base_delivery_carrier_label/views/delivery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
>delivery_base.delivery_carrier_template_option.view_tree</field>
<field name="model">delivery.carrier.template.option</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="partner_id" />
<field name="code" readonly="True" />
<field name="name" readonly="True" />
</tree>
</list>
</field>
</record>
<!-- VIEW FOR THE OBJECT : delivery_carrier_option -->
Expand Down Expand Up @@ -57,14 +57,14 @@
<record id="delivery_carrier_option_view_tree" model="ir.ui.view">
<field name="name">delivery_base.delivery_carrier_option.view_tree</field>
<field name="model">delivery.carrier.option</field>
<field name="type">tree</field>
<field name="type">list</field>
<field name="arch" type="xml">
<tree decoration-muted="not active">
<list decoration-muted="not active">
<field name="active" />
<field name="mandatory" />
<field name="tmpl_option_id" />
<field name="code" />
</tree>
</list>
</field>
</record>
<!-- INHERITED VIEW FOR THE OBJECT : delivery.carrier -->
Expand Down

0 comments on commit 27de450

Please sign in to comment.