[FIX] pms: control ine seats configured in the property and remove from menu the pms_ine_tourism_category model

This commit is contained in:
miguelpadin
2021-07-28 14:39:15 +02:00
parent 9d942c101d
commit fd01aa07e6
4 changed files with 37 additions and 28 deletions

View File

@@ -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)