mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[MIG] mrp_lot_production_date: Migration to 16.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user