mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 10:32:07 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2022 Tecnativa - Víctor Martínez
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
|
||||
class TestMaintenanceProductBase(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.product_category = cls.env["product.category"].create(
|
||||
{"name": "test-product-category"}
|
||||
)
|
||||
cls.partner = cls.env["res.partner"].create({"name": "Mr Odoo"})
|
||||
cls.product = cls.env["product.product"].create(
|
||||
{
|
||||
"name": "test-product",
|
||||
"categ_id": cls.product_category.id,
|
||||
"standard_price": 10,
|
||||
"maintenance_ok": True,
|
||||
"seller_ids": [(0, 0, {"partner_id": cls.partner.id})],
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue