mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX]pms: add test data availability plan in pricelist
This commit is contained in:
@@ -4,9 +4,15 @@ from odoo.tests import common
|
||||
class TestPms(common.SavepointCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.availability_plan1 = self.env["pms.availability.plan"].create(
|
||||
{
|
||||
"name": "Availability Plan 1",
|
||||
}
|
||||
)
|
||||
self.pricelist1 = self.env["product.pricelist"].create(
|
||||
{
|
||||
"name": "Pricelist 1",
|
||||
"availability_plan_id": self.availability_plan1.id,
|
||||
}
|
||||
)
|
||||
self.company1 = self.env["res.company"].create(
|
||||
|
||||
Reference in New Issue
Block a user