From 259175c8ba3c303a5be178637ea07c59144f5607 Mon Sep 17 00:00:00 2001 From: JuMiSanAr Date: Mon, 13 Feb 2023 12:00:23 +0100 Subject: [PATCH] [MIG] mrp_lot_production_date: Migration to 16.0 --- mrp_lot_production_date/__manifest__.py | 2 +- mrp_lot_production_date/tests/test_production_date.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mrp_lot_production_date/__manifest__.py b/mrp_lot_production_date/__manifest__.py index f65c12501..341167725 100644 --- a/mrp_lot_production_date/__manifest__.py +++ b/mrp_lot_production_date/__manifest__.py @@ -3,7 +3,7 @@ { "name": "MRP Lot Production Date", "Summary": "Set a production date automatically on produced lots/SN.", - "version": "14.0.1.0.0", + "version": "16.0.1.0.0", "author": "Camptocamp, Odoo Community Association (OCA)", "website": "https://github.com/OCA/manufacture", "category": "Manufacturing", diff --git a/mrp_lot_production_date/tests/test_production_date.py b/mrp_lot_production_date/tests/test_production_date.py index d4f265f70..7f56fd2a2 100644 --- a/mrp_lot_production_date/tests/test_production_date.py +++ b/mrp_lot_production_date/tests/test_production_date.py @@ -1,10 +1,10 @@ # Copyright 2023 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) -from odoo.tests.common import Form, SavepointCase +from odoo.tests.common import Form, TransactionCase -class TestMrpLotProductionDate(SavepointCase): +class TestMrpLotProductionDate(TransactionCase): @classmethod def setUpClass(cls): super().setUpClass() @@ -17,7 +17,7 @@ class TestMrpLotProductionDate(SavepointCase): form.bom_id = bom form.product_qty = product_qty order = form.save() - order.invalidate_cache() + order.invalidate_recordset() return order @classmethod