mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: control ine seats configured in the property and remove from menu the pms_ine_tourism_category model
This commit is contained in:
@@ -9,6 +9,9 @@ from .common import TestPms
|
||||
class TestWizardINE(TestPms):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
# number of seats established in the property
|
||||
self.pms_property1.ine_seats = 50
|
||||
|
||||
# create room types
|
||||
self.room_type = self.env["pms.room.type"].create(
|
||||
{
|
||||
@@ -362,7 +365,7 @@ class TestWizardINE(TestPms):
|
||||
|
||||
# ACT
|
||||
rooms = self.env["pms.ine.wizard"].ine_rooms(
|
||||
start_date, end_date, self.pms_property1.id
|
||||
start_date, end_date, self.pms_property1
|
||||
)
|
||||
# ASSERT
|
||||
self.assertDictEqual(rooms, expected_result)
|
||||
|
||||
Reference in New Issue
Block a user