Skip to content

Commit b968797

Browse files
[DON'T MERGE] test-requirements.txt
1 parent b52ecdc commit b968797

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

maintenance_purchase_stock/tests/test_maintenance_purchase_stock.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright 2025 Tecnativa
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33

4-
from odoo import Command
54
from odoo.tests import tagged
65

76
from odoo.addons.base.tests.common import BaseCommon
@@ -37,22 +36,11 @@ def setUpClass(cls):
3736
cls.product_category01 = cls.ProductCategory.create(
3837
{
3938
"name": "My Product Category 1",
40-
"equipment_category_ids": [
41-
Command.set(
42-
[
43-
cls.maintenance_equipment_category1.id,
44-
cls.maintenance_equipment_category2.id,
45-
]
46-
)
47-
],
4839
}
4940
)
5041
cls.product_category02 = cls.ProductCategory.create(
5142
{
5243
"name": "My Product Category 2",
53-
"equipment_category_ids": [
54-
Command.set([cls.maintenance_equipment_category2.id])
55-
],
5644
}
5745
)
5846
cls.product_order_maintenance = cls.ProductProduct.create(
@@ -66,8 +54,8 @@ def setUpClass(cls):
6654
"purchase_method": "purchase",
6755
"default_code": "PROD_ORDER",
6856
"taxes_id": False,
69-
"maintenance_ok": True,
7057
"categ_id": cls.product_category01.id,
58+
"equipment_category_id": cls.maintenance_equipment_category1.id,
7159
}
7260
)
7361
cls.product_order_no_maintenance = cls.ProductProduct.create(

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
odoo-addon-maintenance_purchase @ git+https://github.com/OCA/maintenance.git@refs/pull/536/head#subdirectory=maintenance_purchase

0 commit comments

Comments
 (0)