Skip to content

Commit 512478d

Browse files
[MIG] delivery_purchase: Migration to 16.0
TT46563 Co-authored-by: carolinafernandez-tecnativa
1 parent 9c3d28e commit 512478d

File tree

6 files changed

+17
-30
lines changed

6 files changed

+17
-30
lines changed

delivery_purchase/README.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Delivery costs in purchases
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%2Fdelivery--carrier-lightgray.png?logo=github
20-
:target: https://github.com/OCA/delivery-carrier/tree/15.0/delivery_purchase
20+
:target: https://github.com/OCA/delivery-carrier/tree/16.0/delivery_purchase
2121
:alt: OCA/delivery-carrier
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/delivery-carrier-15-0/delivery-carrier-15-0-delivery_purchase
23+
:target: https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_purchase
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/delivery-carrier&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -66,7 +66,7 @@ Bug Tracker
6666
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
6767
In case of trouble, please check there if your issue has already been reported.
6868
If you spotted it first, help us to smash it by providing a detailed and welcomed
69-
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_purchase%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
69+
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_purchase%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7070

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

@@ -86,6 +86,7 @@ Contributors
8686
* Ernesto Tejeda
8787
* Pedro M. Baeza
8888
* Vicent Cubells
89+
* Carolina Fernandez
8990

9091
Maintainers
9192
~~~~~~~~~~~
@@ -100,6 +101,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
100101
mission is to support the collaborative development of Odoo features and
101102
promote its widespread use.
102103

103-
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/15.0/delivery_purchase>`_ project on GitHub.
104+
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/16.0/delivery_purchase>`_ project on GitHub.
104105

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

delivery_purchase/__manifest__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Copyright 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza
22
# Copyright 2016-2017 Pedro M. Baeza <pedro.baeza@tecnativa.com>
33
# Copyright 2017 Vicent Cubells <vicent.cubells@tecnativa.com>
4+
# Copyright 2024 Carolina Fernandez
45
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
56

67
{
78
"name": "Delivery costs in purchases",
8-
"version": "15.0.1.1.0",
9+
"version": "16.0.1.0.0",
910
"development_status": "Production/Stable",
1011
"category": "Operations/Purchase",
1112
"website": "https://github.com/OCA/delivery-carrier",

delivery_purchase/i18n/es.po

-9
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,3 @@ msgstr "No hay una regla de entrega coincidente."
9191
#: model:ir.model,name:delivery_purchase.model_stock_picking
9292
msgid "Transfer"
9393
msgstr "Transferir"
94-
95-
#~ msgid "Display Name"
96-
#~ msgstr "Nombre a mostrar"
97-
98-
#~ msgid "ID"
99-
#~ msgstr "ID"
100-
101-
#~ msgid "Last Modified on"
102-
#~ msgstr "Última modificación el"

delivery_purchase/readme/CONTRIBUTORS.rst

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
* Ernesto Tejeda
44
* Pedro M. Baeza
55
* Vicent Cubells
6+
* Carolina Fernandez

delivery_purchase/static/description/index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ <h1 class="title">Delivery costs in purchases</h1>
368368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369369
!! source digest: sha256:3f9fa3a9fcf99bd54f68459b06d0102ef19bac20bab8b79085b10d0f16afdac7
370370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/delivery-carrier/tree/15.0/delivery_purchase"><img alt="OCA/delivery-carrier" src="https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/delivery-carrier-15-0/delivery-carrier-15-0-delivery_purchase"><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/delivery-carrier&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/delivery-carrier/tree/16.0/delivery_purchase"><img alt="OCA/delivery-carrier" src="https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/delivery-carrier-16-0/delivery-carrier-16-0-delivery_purchase"><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/delivery-carrier&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372372
<p>This module allows to use delivery methods defined in <em>delivery</em> module to
373373
calculate purchase delivery costs.</p>
374374
<p>It reverses destinations in delivery pricelists to use them as sources when
@@ -412,7 +412,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
412412
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/delivery-carrier/issues">GitHub Issues</a>.
413413
In case of trouble, please check there if your issue has already been reported.
414414
If you spotted it first, help us to smash it by providing a detailed and welcomed
415-
<a class="reference external" href="https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_purchase%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
415+
<a class="reference external" href="https://github.com/OCA/delivery-carrier/issues/new?body=module:%20delivery_purchase%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
416416
<p>Do not contact contributors directly about support or help with technical issues.</p>
417417
</div>
418418
<div class="section" id="credits">
@@ -430,6 +430,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
430430
<li>Ernesto Tejeda</li>
431431
<li>Pedro M. Baeza</li>
432432
<li>Vicent Cubells</li>
433+
<li>Carolina Fernandez</li>
433434
</ul>
434435
</li>
435436
</ul>
@@ -441,7 +442,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
441442
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
442443
mission is to support the collaborative development of Odoo features and
443444
promote its widespread use.</p>
444-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/delivery-carrier/tree/15.0/delivery_purchase">OCA/delivery-carrier</a> project on GitHub.</p>
445+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/delivery-carrier/tree/16.0/delivery_purchase">OCA/delivery-carrier</a> project on GitHub.</p>
445446
<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>
446447
</div>
447448
</div>

delivery_purchase/tests/test_delivery_purchase.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
22

3-
from odoo.tests import Form, common
3+
from odoo.tests import Form
44

5+
from odoo.addons.base.tests.common import BaseCommon
56

6-
class TestDeliveryPurchaseBase(common.TransactionCase):
7+
8+
class TestDeliveryPurchaseBase(BaseCommon):
79
@classmethod
810
def setUpClass(cls):
911
super().setUpClass()
10-
# Remove this variable in v16 and put instead:
11-
# from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT
12-
DISABLED_MAIL_CONTEXT = {
13-
"tracking_disable": True,
14-
"mail_create_nolog": True,
15-
"mail_create_nosubscribe": True,
16-
"mail_notrack": True,
17-
"no_reset_password": True,
18-
}
19-
cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT))
2012
cls.delivery_product = cls.env["product.product"].create(
2113
{"name": "Delivery test product"}
2214
)

0 commit comments

Comments
 (0)