[WIP] hotel property test cases

This commit is contained in:
Pablo
2019-09-23 10:19:16 +02:00
parent 05571bc65c
commit 60116e6973
2 changed files with 14 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
# from . import test_folio
from . import test_inherited_ir_http
from . import test_inherited_product_pricelist
from . import test_hotel_property
from . import test_hotel_room_type
from . import test_hotel_room
from . import test_massive_changes

View File

@@ -0,0 +1,13 @@
from .common import TestHotel
from odoo import fields
from odoo.exceptions import ValidationError
class TestHotelProperty(TestHotel):
# be aware using self.env.user.hotel_id because it is the value configure for the user running the tests
def test_default_pricelist(self):
# A default pricelist must be related with one and only one hotel
with self.assertRaises(ValidationError):
self.demo_hotel_property.default_pricelist_id = self.list0