Skip to content

Commit

Permalink
[MIG] pricelist_cache: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
valentincastravete committed May 7, 2024
1 parent bd0997e commit fde9448
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 120 deletions.
8 changes: 4 additions & 4 deletions pricelist_cache/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Pricelist Cache
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/14.0/pricelist_cache
:target: https://github.com/OCA/sale-workflow/tree/15.0/pricelist_cache
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-pricelist_cache
:target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-pricelist_cache
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=14.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand Down Expand Up @@ -101,6 +101,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/14.0/pricelist_cache>`_ project on GitHub.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/15.0/pricelist_cache>`_ 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 pricelist_cache/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Provide a new model to cache price lists and update it,
to make it easier to retrieve them.
""",
"version": "14.0.1.4.1",
"version": "15.0.1.4.1",
"category": "Hidden",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
7 changes: 0 additions & 7 deletions pricelist_cache/migrations/14.0.1.1.0/README.rst

This file was deleted.

39 changes: 0 additions & 39 deletions pricelist_cache/migrations/14.0.1.1.0/post-migrate.py

This file was deleted.

62 changes: 0 additions & 62 deletions pricelist_cache/migrations/14.0.1.1.0/pre-migrate.py

This file was deleted.

14 changes: 7 additions & 7 deletions pricelist_cache/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@

from functools import wraps

from odoo.tests import SavepointCase
from odoo.tests.common import TransactionCase

LIST_PRICES_MAPPING = {
"pricelist_cache.list0": [
{"id": 17, "price": 100.0},
{"id": 18, "price": 79.0},
{"id": 18, "price": 15.8},
{"id": 19, "price": 100.0},
{"id": 20, "price": 47.0},
],
"pricelist_cache.list1": [
{"id": 17, "price": 75.0},
{"id": 18, "price": 79.0},
{"id": 18, "price": 15.8},
{"id": 19, "price": 100.0},
{"id": 20, "price": 47.0},
],
"pricelist_cache.list2": [
{"id": 17, "price": 50.0},
{"id": 18, "price": 79.0},
{"id": 18, "price": 15.8},
{"id": 19, "price": 100.0},
{"id": 20, "price": 47.0},
],
"pricelist_cache.list3": [
{"id": 17, "price": 25.0},
{"id": 18, "price": 79.0},
{"id": 18, "price": 15.8},
{"id": 19, "price": 100.0},
{"id": 20, "price": 47.0},
],
Expand All @@ -38,7 +38,7 @@
],
"pricelist_cache.list5": [
{"id": 17, "price": 45.0},
{"id": 18, "price": 99.0},
{"id": 18, "price": 35.8},
{"id": 19, "price": 120.0},
{"id": 20, "price": 67.0},
],
Expand All @@ -62,7 +62,7 @@ def wrapper(self, *args, **kwargs):
return wrapper


class TestPricelistCacheCommon(SavepointCase):
class TestPricelistCacheCommon(TransactionCase):
@classmethod
def setUpClassBaseCache(cls):
cls.cache_model.cron_reset_pricelist_cache()
Expand Down

0 comments on commit fde9448

Please sign in to comment.