Fix travis (#61)

* [FIX] Default Rerservation Colours

* [TFIX] Set odoo_host default value

* [IMP] Add deafult access rights

* [FIX] Mute logger db error

* [FIX] Last commit
This commit is contained in:
QS5ELkMu
2018-11-10 23:30:23 +01:00
committed by GitHub
parent b638413b7c
commit 8c68d00c0e
10 changed files with 93 additions and 144 deletions

View File

@@ -20,7 +20,7 @@
'demo': ['data/hotel_data.xml'],
'data': [
'security/hotel_security.xml',
# 'security/ir.model.access.csv',
'security/ir.model.access.csv',
'wizard/massive_changes.xml',
'wizard/split_reservation.xml',
'wizard/duplicate_reservation.xml',

View File

@@ -1,54 +1,18 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_currency_exchange_call,hotel.currency_exchange.call,model_currency_exchange,hotel.group_hotel_call,1,1,1,1
access_currency_exchange_user,hotel.currency_exchange.user,model_currency_exchange,hotel.group_hotel_user,1,1,1,1
access_folio_room_line_call,hotel.folio_room_line.call,hotel.model_hotel_reservation_line,hotel.group_hotel_call,1,1,1,1
access_folio_room_line_user,hotel.folio_room_line.user,hotel.model_hotel_reservation_line,hotel.group_hotel_user,1,1,1,1
access_hotel_account_tax_call,hotel.account.tax.call,account.model_account_tax,hotel.group_hotel_call,1,1,1,1
access_hotel_account_tax_user,hotel.account.tax.user,account.model_account_tax,hotel.group_hotel_user,1,1,1,1
access_hotel_floor_group,hotel.floor.user,model_hotel_floor,hotel.group_hotel_user,1,0,0,0
access_hotel_floor_group_call,hotel.floor.call,model_hotel_floor,hotel.group_hotel_call,1,0,0,0
access_hotel_floor_group_manager,hotel.floor.manager,model_hotel_floor,hotel.group_hotel_manager,1,1,1,1
access_hotel_folio,hotel.folio.user,model_hotel_folio,hotel.group_hotel_user,1,1,1,1
access_hotel_folio_call,hotel.folio.call,model_hotel_folio,hotel.group_hotel_call,1,1,1,1
access_hotel_folio_line,hotel_folio.line.user,model_hotel_reservation,hotel.group_hotel_user,1,1,1,1
access_hotel_folio_line_call,hotel_folio.line.call,model_hotel_reservation,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_call,account.invoice.call,account.model_account_invoice,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_user,account.invoice.user,account.model_account_invoice,hotel.group_hotel_user,1,1,1,1
access_hotel_model_checkin_partner_call,hotel.currency_exchange.call,hotel.model_checkin_partner,hotel.group_hotel_call,1,1,1,1
access_hotel_model_checkin_partner_user,hotel.currency_exchange.user,hotel.model_checkin_partner,hotel.group_hotel_user,1,1,1,1
access_hotel_order_call,hotel.order.call,sale.model_sale_order,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_call,hotel.order.line.call,sale.model_sale_order_line,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_user,hotel.order.line.user,sale.model_sale_order_line,hotel.group_hotel_user,1,1,1,1
access_hotel_order_user,hotel.order.user,sale.model_sale_order,hotel.group_hotel_user,1,1,1,1
access_hotel_restrictions_call,hotel.restriction. All,hotel.model_hotel_room_type_restriction,hotel.group_hotel_call,1,0,0,0
access_hotel_restrictions_item_call,hotel.restriction.item.call,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_call,1,0,0,0
access_hotel_restrictions_item_manager,hotel.restriction.item.manager,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_manager,1,1,1,1
access_hotel_restrictions_item_user,hotel.restriction.item.user,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_user,1,0,0,0
access_hotel_restrictions_manager,hotel.restriction.manager,hotel.model_hotel_room_type_restriction,hotel.group_hotel_manager,1,1,1,1
access_hotel_restrictions_user,hotel.restriction.user,hotel.model_hotel_room_type_restriction,hotel.group_hotel_user,1,0,0,0
access_hotel_room,hotel.room.user,model_hotel_room,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities,hotel.room_aminities.user,model_hotel_room_amenities,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities_call,hotel.room_aminities.call,model_hotel_room_amenities,hotel.group_hotel_call,1,0,0,0
access_hotel_room_amenities_manager,hotel.room_aminities.manager,model_hotel_room_amenities,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_amenities_type,hotel.room_amenities_type.user,model_hotel_room_amenities_type,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities_type_call,hotel.room_amenities_type.call,model_hotel_room_amenities_type,hotel.group_hotel_call,1,0,0,0
access_hotel_room_amenities_type_manager,hotel.room_amenities_type.manager,model_hotel_room_amenities_type,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_call,hotel.room.call,model_hotel_room,hotel.group_hotel_call,1,0,0,0
access_hotel_room_manager,hotel.room.manager,model_hotel_room,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_type,hotel.room_type.user,model_hotel_room_type,hotel.group_hotel_user,1,0,0,0
access_hotel_room_type_call,hotel.room_type.call,model_hotel_room_type,hotel.group_hotel_call,1,0,0,0
access_hotel_room_type_manager,hotel.room_type.manager,model_hotel_room_type,hotel.group_hotel_manager,1,1,1,1
access_hotel_service,hotel_service.user,model_hotel_service,hotel.group_hotel_user,1,1,1,1
access_hotel_service_call,hotel_service.call,model_hotel_service,hotel.group_hotel_call,1,1,1,1
access_hotel_user reconcilie,hotel.user reconcilie,account.model_account_partial_reconcile,hotel.group_hotel_user,1,1,1,1
access_hotel_user_account_full_reconcilie,hotel.user_account_full_reconcilie,account.model_account_full_reconcile,hotel.group_hotel_user,1,1,1,1
access_hotel_user_user,hotel.user_res_user,auth_crypt.model_res_users,hotel.group_hotel_user,1,1,0,0
access_hotel_room_type_availability_call,hotel.availability.call,hotel.model_hotel_room_type_availability,hotel.group_hotel_call,1,1,1,1
access_hotel_room_type_availability_manager,hotel.availability.manager,hotel.model_hotel_room_type_availability,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_type_availability_user,hotel.availability.user,hotel.model_hotel_room_type_availability,hotel.group_hotel_user,1,1,1,1
access_product_category,product.category.user,product.model_product_category,hotel.group_hotel_user,1,0,0,0
access_product_category_call,product.category.call,product.model_product_category,hotel.group_hotel_call,1,0,0,0
access_product_category_manager,product.category.manager,product.model_product_category,hotel.group_hotel_manager,1,1,1,1
access_product_product,product.product.user,product.model_product_product,hotel.group_hotel_user,1,0,0,0
access_product_product_call,product.product.call,product.model_product_product,hotel.group_hotel_call,1,0,0,0
access_product_product_manager,product.product.manager,product.model_product_product,hotel.group_hotel_manager,1,1,1,1
access_hotel_floor,access_hotel_floor,model_hotel_floor,base.group_user,1,0,0,0
access_hotel_amenity,access_hotel_amenity,model_hotel_amenity,base.group_user,1,0,0,0
access_hotel_amenity_type,access_hotel_amenity_type,model_hotel_amenity_type,base.group_user,1,0,0,0
access_hotel_service,access_hotel_service,model_hotel_service,base.group_user,1,0,0,0
access_hotel_room_type_restriction,access_hotel_room_type_restriction,model_hotel_room_type_restriction,base.group_user,1,0,0,0
access_hotel_reservation_line,access_hotel_reservation_line,model_hotel_reservation_line,base.group_user,1,0,0,0
access_room_closure_reason,access_room_closure_reason,model_room_closure_reason,base.group_user,1,0,0,0
access_hotel_service_line,access_hotel_service_line,model_hotel_service_line,base.group_user,1,0,0,0
access_hotel_board_service,access_hotel_board_service,model_hotel_board_service,base.group_user,1,0,0,0
access_hotel_room_type_availability,access_hotel_room_type_availability,model_hotel_room_type_availability,base.group_user,1,0,0,0
access_hotel_checkin_partner,access_hotel_checkin_partner,model_hotel_checkin_partner,base.group_user,1,0,0,0
access_hotel_room_type_class,access_hotel_room_type_class,model_hotel_room_type_class,base.group_user,1,0,0,0
access_hotel_room,access_hotel_room,model_hotel_room,base.group_user,1,0,0,0
access_hotel_room_type_restriction_item,access_hotel_room_type_restriction_item,model_hotel_room_type_restriction_item,base.group_user,1,0,0,0
access_hotel_reservation,access_hotel_reservation,model_hotel_reservation,base.group_user,1,0,0,0
access_hotel_folio,access_hotel_folio,model_hotel_folio,base.group_user,1,0,0,0
access_hotel_room_type,access_hotel_room_type,model_hotel_room_type,base.group_user,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_currency_exchange_call access_hotel_floor hotel.currency_exchange.call access_hotel_floor model_currency_exchange model_hotel_floor hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
3 access_currency_exchange_user access_hotel_amenity hotel.currency_exchange.user access_hotel_amenity model_currency_exchange model_hotel_amenity hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
4 access_folio_room_line_call access_hotel_amenity_type hotel.folio_room_line.call access_hotel_amenity_type hotel.model_hotel_reservation_line model_hotel_amenity_type hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
5 access_folio_room_line_user access_hotel_service hotel.folio_room_line.user access_hotel_service hotel.model_hotel_reservation_line model_hotel_service hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
6 access_hotel_account_tax_call access_hotel_room_type_restriction hotel.account.tax.call access_hotel_room_type_restriction account.model_account_tax model_hotel_room_type_restriction hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
7 access_hotel_account_tax_user access_hotel_reservation_line hotel.account.tax.user access_hotel_reservation_line account.model_account_tax model_hotel_reservation_line hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
8 access_hotel_floor_group access_room_closure_reason hotel.floor.user access_room_closure_reason model_hotel_floor model_room_closure_reason hotel.group_hotel_user base.group_user 1 0 0 0
9 access_hotel_floor_group_call access_hotel_service_line hotel.floor.call access_hotel_service_line model_hotel_floor model_hotel_service_line hotel.group_hotel_call base.group_user 1 0 0 0
10 access_hotel_floor_group_manager access_hotel_board_service hotel.floor.manager access_hotel_board_service model_hotel_floor model_hotel_board_service hotel.group_hotel_manager base.group_user 1 1 0 1 0 1 0
11 access_hotel_folio access_hotel_room_type_availability hotel.folio.user access_hotel_room_type_availability model_hotel_folio model_hotel_room_type_availability hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
12 access_hotel_folio_call access_hotel_checkin_partner hotel.folio.call access_hotel_checkin_partner model_hotel_folio model_hotel_checkin_partner hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
13 access_hotel_folio_line access_hotel_room_type_class hotel_folio.line.user access_hotel_room_type_class model_hotel_reservation model_hotel_room_type_class hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
14 access_hotel_folio_line_call access_hotel_room hotel_folio.line.call access_hotel_room model_hotel_reservation model_hotel_room hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
15 access_hotel_invoice_call access_hotel_room_type_restriction_item account.invoice.call access_hotel_room_type_restriction_item account.model_account_invoice model_hotel_room_type_restriction_item hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
16 access_hotel_invoice_user access_hotel_reservation account.invoice.user access_hotel_reservation account.model_account_invoice model_hotel_reservation hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
17 access_hotel_model_checkin_partner_call access_hotel_folio hotel.currency_exchange.call access_hotel_folio hotel.model_checkin_partner model_hotel_folio hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
18 access_hotel_model_checkin_partner_user access_hotel_room_type hotel.currency_exchange.user access_hotel_room_type hotel.model_checkin_partner model_hotel_room_type hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
access_hotel_order_call hotel.order.call sale.model_sale_order hotel.group_hotel_call 1 1 1 1
access_hotel_order_line_call hotel.order.line.call sale.model_sale_order_line hotel.group_hotel_call 1 1 1 1
access_hotel_order_line_user hotel.order.line.user sale.model_sale_order_line hotel.group_hotel_user 1 1 1 1
access_hotel_order_user hotel.order.user sale.model_sale_order hotel.group_hotel_user 1 1 1 1
access_hotel_restrictions_call hotel.restriction. All hotel.model_hotel_room_type_restriction hotel.group_hotel_call 1 0 0 0
access_hotel_restrictions_item_call hotel.restriction.item.call hotel.model_hotel_room_type_restriction_item hotel.group_hotel_call 1 0 0 0
access_hotel_restrictions_item_manager hotel.restriction.item.manager hotel.model_hotel_room_type_restriction_item hotel.group_hotel_manager 1 1 1 1
access_hotel_restrictions_item_user hotel.restriction.item.user hotel.model_hotel_room_type_restriction_item hotel.group_hotel_user 1 0 0 0
access_hotel_restrictions_manager hotel.restriction.manager hotel.model_hotel_room_type_restriction hotel.group_hotel_manager 1 1 1 1
access_hotel_restrictions_user hotel.restriction.user hotel.model_hotel_room_type_restriction hotel.group_hotel_user 1 0 0 0
access_hotel_room hotel.room.user model_hotel_room hotel.group_hotel_user 1 0 0 0
access_hotel_room_amenities hotel.room_aminities.user model_hotel_room_amenities hotel.group_hotel_user 1 0 0 0
access_hotel_room_amenities_call hotel.room_aminities.call model_hotel_room_amenities hotel.group_hotel_call 1 0 0 0
access_hotel_room_amenities_manager hotel.room_aminities.manager model_hotel_room_amenities hotel.group_hotel_manager 1 1 1 1
access_hotel_room_amenities_type hotel.room_amenities_type.user model_hotel_room_amenities_type hotel.group_hotel_user 1 0 0 0
access_hotel_room_amenities_type_call hotel.room_amenities_type.call model_hotel_room_amenities_type hotel.group_hotel_call 1 0 0 0
access_hotel_room_amenities_type_manager hotel.room_amenities_type.manager model_hotel_room_amenities_type hotel.group_hotel_manager 1 1 1 1
access_hotel_room_call hotel.room.call model_hotel_room hotel.group_hotel_call 1 0 0 0
access_hotel_room_manager hotel.room.manager model_hotel_room hotel.group_hotel_manager 1 1 1 1
access_hotel_room_type hotel.room_type.user model_hotel_room_type hotel.group_hotel_user 1 0 0 0
access_hotel_room_type_call hotel.room_type.call model_hotel_room_type hotel.group_hotel_call 1 0 0 0
access_hotel_room_type_manager hotel.room_type.manager model_hotel_room_type hotel.group_hotel_manager 1 1 1 1
access_hotel_service hotel_service.user model_hotel_service hotel.group_hotel_user 1 1 1 1
access_hotel_service_call hotel_service.call model_hotel_service hotel.group_hotel_call 1 1 1 1
access_hotel_user reconcilie hotel.user reconcilie account.model_account_partial_reconcile hotel.group_hotel_user 1 1 1 1
access_hotel_user_account_full_reconcilie hotel.user_account_full_reconcilie account.model_account_full_reconcile hotel.group_hotel_user 1 1 1 1
access_hotel_user_user hotel.user_res_user auth_crypt.model_res_users hotel.group_hotel_user 1 1 0 0
access_hotel_room_type_availability_call hotel.availability.call hotel.model_hotel_room_type_availability hotel.group_hotel_call 1 1 1 1
access_hotel_room_type_availability_manager hotel.availability.manager hotel.model_hotel_room_type_availability hotel.group_hotel_manager 1 1 1 1
access_hotel_room_type_availability_user hotel.availability.user hotel.model_hotel_room_type_availability hotel.group_hotel_user 1 1 1 1
access_product_category product.category.user product.model_product_category hotel.group_hotel_user 1 0 0 0
access_product_category_call product.category.call product.model_product_category hotel.group_hotel_call 1 0 0 0
access_product_category_manager product.category.manager product.model_product_category hotel.group_hotel_manager 1 1 1 1
access_product_product product.product.user product.model_product_product hotel.group_hotel_user 1 0 0 0
access_product_product_call product.product.call product.model_product_product hotel.group_hotel_call 1 0 0 0
access_product_product_manager product.product.manager product.model_product_product hotel.group_hotel_manager 1 1 1 1

View File

@@ -0,0 +1,54 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_currency_exchange_call,hotel.currency_exchange.call,model_currency_exchange,hotel.group_hotel_call,1,1,1,1
access_currency_exchange_user,hotel.currency_exchange.user,model_currency_exchange,hotel.group_hotel_user,1,1,1,1
access_folio_room_line_call,hotel.folio_room_line.call,hotel.model_hotel_reservation_line,hotel.group_hotel_call,1,1,1,1
access_folio_room_line_user,hotel.folio_room_line.user,hotel.model_hotel_reservation_line,hotel.group_hotel_user,1,1,1,1
access_hotel_account_tax_call,hotel.account.tax.call,account.model_account_tax,hotel.group_hotel_call,1,1,1,1
access_hotel_account_tax_user,hotel.account.tax.user,account.model_account_tax,hotel.group_hotel_user,1,1,1,1
access_hotel_floor_group,hotel.floor.user,model_hotel_floor,hotel.group_hotel_user,1,0,0,0
access_hotel_floor_group_call,hotel.floor.call,model_hotel_floor,hotel.group_hotel_call,1,0,0,0
access_hotel_floor_group_manager,hotel.floor.manager,model_hotel_floor,hotel.group_hotel_manager,1,1,1,1
access_hotel_folio,hotel.folio.user,model_hotel_folio,hotel.group_hotel_user,1,1,1,1
access_hotel_folio_call,hotel.folio.call,model_hotel_folio,hotel.group_hotel_call,1,1,1,1
access_hotel_folio_line,hotel_folio.line.user,model_hotel_reservation,hotel.group_hotel_user,1,1,1,1
access_hotel_folio_line_call,hotel_folio.line.call,model_hotel_reservation,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_call,account.invoice.call,account.model_account_invoice,hotel.group_hotel_call,1,1,1,1
access_hotel_invoice_user,account.invoice.user,account.model_account_invoice,hotel.group_hotel_user,1,1,1,1
access_hotel_model_checkin_partner_call,hotel.currency_exchange.call,hotel.model_checkin_partner,hotel.group_hotel_call,1,1,1,1
access_hotel_model_checkin_partner_user,hotel.currency_exchange.user,hotel.model_checkin_partner,hotel.group_hotel_user,1,1,1,1
access_hotel_order_call,hotel.order.call,sale.model_sale_order,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_call,hotel.order.line.call,sale.model_sale_order_line,hotel.group_hotel_call,1,1,1,1
access_hotel_order_line_user,hotel.order.line.user,sale.model_sale_order_line,hotel.group_hotel_user,1,1,1,1
access_hotel_order_user,hotel.order.user,sale.model_sale_order,hotel.group_hotel_user,1,1,1,1
access_hotel_restrictions_call,hotel.restriction. All,hotel.model_hotel_room_type_restriction,hotel.group_hotel_call,1,0,0,0
access_hotel_restrictions_item_call,hotel.restriction.item.call,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_call,1,0,0,0
access_hotel_restrictions_item_manager,hotel.restriction.item.manager,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_manager,1,1,1,1
access_hotel_restrictions_item_user,hotel.restriction.item.user,hotel.model_hotel_room_type_restriction_item,hotel.group_hotel_user,1,0,0,0
access_hotel_restrictions_manager,hotel.restriction.manager,hotel.model_hotel_room_type_restriction,hotel.group_hotel_manager,1,1,1,1
access_hotel_restrictions_user,hotel.restriction.user,hotel.model_hotel_room_type_restriction,hotel.group_hotel_user,1,0,0,0
access_hotel_room,hotel.room.user,model_hotel_room,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities,hotel.room_aminities.user,model_hotel_room_amenities,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities_call,hotel.room_aminities.call,model_hotel_room_amenities,hotel.group_hotel_call,1,0,0,0
access_hotel_room_amenities_manager,hotel.room_aminities.manager,model_hotel_room_amenities,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_amenities_type,hotel.room_amenities_type.user,model_hotel_room_amenities_type,hotel.group_hotel_user,1,0,0,0
access_hotel_room_amenities_type_call,hotel.room_amenities_type.call,model_hotel_room_amenities_type,hotel.group_hotel_call,1,0,0,0
access_hotel_room_amenities_type_manager,hotel.room_amenities_type.manager,model_hotel_room_amenities_type,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_call,hotel.room.call,model_hotel_room,hotel.group_hotel_call,1,0,0,0
access_hotel_room_manager,hotel.room.manager,model_hotel_room,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_type,hotel.room_type.user,model_hotel_room_type,hotel.group_hotel_user,1,0,0,0
access_hotel_room_type_call,hotel.room_type.call,model_hotel_room_type,hotel.group_hotel_call,1,0,0,0
access_hotel_room_type_manager,hotel.room_type.manager,model_hotel_room_type,hotel.group_hotel_manager,1,1,1,1
access_hotel_service,hotel_service.user,model_hotel_service,hotel.group_hotel_user,1,1,1,1
access_hotel_service_call,hotel_service.call,model_hotel_service,hotel.group_hotel_call,1,1,1,1
access_hotel_user reconcilie,hotel.user reconcilie,account.model_account_partial_reconcile,hotel.group_hotel_user,1,1,1,1
access_hotel_user_account_full_reconcilie,hotel.user_account_full_reconcilie,account.model_account_full_reconcile,hotel.group_hotel_user,1,1,1,1
access_hotel_user_user,hotel.user_res_user,auth_crypt.model_res_users,hotel.group_hotel_user,1,1,0,0
access_hotel_room_type_availability_call,hotel.availability.call,hotel.model_hotel_room_type_availability,hotel.group_hotel_call,1,1,1,1
access_hotel_room_type_availability_manager,hotel.availability.manager,hotel.model_hotel_room_type_availability,hotel.group_hotel_manager,1,1,1,1
access_hotel_room_type_availability_user,hotel.availability.user,hotel.model_hotel_room_type_availability,hotel.group_hotel_user,1,1,1,1
access_product_category,product.category.user,product.model_product_category,hotel.group_hotel_user,1,0,0,0
access_product_category_call,product.category.call,product.model_product_category,hotel.group_hotel_call,1,0,0,0
access_product_category_manager,product.category.manager,product.model_product_category,hotel.group_hotel_manager,1,1,1,1
access_product_product,product.product.user,product.model_product_product,hotel.group_hotel_user,1,0,0,0
access_product_product_call,product.product.call,product.model_product_product,hotel.group_hotel_call,1,0,0,0
access_product_product_manager,product.product.manager,product.model_product_product,hotel.group_hotel_manager,1,1,1,1

View File

@@ -22,13 +22,14 @@
##############################################################################
from .common import TestHotel
from psycopg2 import IntegrityError
from odoo.tools import mute_logger
class TestHotelRoomType(TestHotel):
def test_code_type_unique(self):
#TODO: use sudo users hotel
with self.assertRaises(IntegrityError):
with self.assertRaises(IntegrityError), mute_logger('odoo.sql_db'):
self.room_type_0.sudo().write({
'code_type': self.room_type_1.code_type
})

View File

@@ -29,7 +29,6 @@
'views/hotel_reservation_views.xml',
'views/hotel_calendar_management_views.xml',
'data/menus.xml',
'data/records.xml',
'security/ir.model.access.csv',
],
'qweb': [

View File

@@ -1,81 +0,0 @@
<odoo>
<data noupdate="1">
<function id="default_color_pre_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_pre_reservation', '#A4A4A4')"/>
<function id="default_color_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_reservation', '#4E9DC4')"/>
<function id="default_color_stay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_stay', '#b40606')"/>
<function id="default_color_stay_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_stay_pay', '#54d12b')"/>
<function id="default_color_checkout"
model="ir.default" name="set"
eval="('res.config.settings', 'color_checkout', '#FF0000')"/>
<function id="default_color_dontsell"
model="ir.default" name="set"
eval="('res.config.settings', 'color_dontsell', '#000000')"/>
<function id="default_color_staff"
model="ir.default" name="set"
eval="('res.config.settings', 'color_staff', '#FF9933')"/>
<function id="default_color_to_assign"
model="ir.default" name="set"
eval="('res.config.settings', 'color_to_assign', '#DFFF00')"/>
<function id="default_color_payment_pending"
model="ir.default" name="set"
eval="('res.config.settings', 'color_payment_pending', '#f70f0f')"/>
<function id="default_color_letter_pre_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_pre_reservation', '#000000')"/>
<function id="default_color_letter_reservation"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_reservation', '#000000')"/>
<function id="default_color_letter_reservation_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_reservation_pay', '#000000')"/>
<function id="default_color_letter_stay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_stay', '#FFFFFF')"/>
<function id="default_color_letter_stay_pay"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_stay_pay', '#000000')"/>
<function id="default_color_letter_checkout"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_checkout', '#FFFFFF')"/>
<function id="default_color_letter_dontsell"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_dontsell', '#FFFFFF')"/>
<function id="default_color_letter_staff"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_staff', '#000000')"/>
<function id="default_color_letter_to_assign"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_to_assign', '#000000')"/>
<function id="default_color_letter_payment_pending"
model="ir.default" name="set"
eval="('res.config.settings', 'color_letter_payment_pending', '#000000')"/>
</data>
</odoo>

View File

@@ -41,7 +41,7 @@
'wizard/inherited_massive_changes.xml',
'data/menus.xml',
'data/sequences.xml',
#'security/ir.model.access.csv',
'security/ir.model.access.csv',
#'security/wubook_security.xml',
# 'views/res_config.xml'
],

View File

@@ -1,6 +1,11 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_wubook_issue_call,hotel_wubook_proto.wubook.issue.call,hotel_wubook_proto.model_wubook_issue,hotel.group_hotel_call,1,1,1,1
access_wubook_issue_user,hotel_wubook_proto.wubook.issue.user,hotel_wubook_proto.model_wubook_issue,hotel.group_hotel_user,1,1,1,1
access_hotel_channel_info_manager,hotel_wubook_proto.channel.info.manager,hotel_wubook_proto.model_wubook_channel_info,hotel.group_hotel_manager,1,1,1,1
access_hotel_channel_info_availabity_user,hotel_wubook_proto.channel.info.user,hotel_wubook_proto.model_wubook_channel_info,hotel.group_hotel_user,1,1,1,0
access_hotel_channel_info_availabity_call,hotel_wubook_proto.channel.info.call,hotel_wubook_proto.model_wubook_channel_info,hotel.group_hotel_call,1,1,1,0
access_hotel_channel_connector_issue,access_hotel_channel_connector_issue,model_hotel_channel_connector_issue,base.group_user,1,0,0,0
access_channel_backend,access_channel_backend,model_channel_backend,base.group_user,1,0,0,0
access_channel_ota_info,access_channel_ota_info,model_channel_ota_info,base.group_user,1,0,0,0
access_channel_hotel_room_type,access_channel_hotel_room_type,model_channel_hotel_room_type,base.group_user,1,0,0,0
access_channel_product_pricelist,access_channel_product_pricelist,model_channel_product_pricelist,base.group_user,1,0,0,0
access_channel_product_pricelist_item,access_channel_product_pricelist_item,model_channel_product_pricelist_item,base.group_user,1,0,0,0
access_channel_hotel_room_type_restriction,access_channel_hotel_room_type_restriction,model_channel_hotel_room_type_restriction,base.group_user,1,0,0,0
access_channel_hotel_room_type_restriction_item,access_channel_hotel_room_type_restriction_item,model_channel_hotel_room_type_restriction_item,base.group_user,1,0,0,0
access_channel_hotel_room_type_availability,access_channel_hotel_room_type_availability,model_channel_hotel_room_type_availability,base.group_user,1,0,0,0
access_channel_hotel_reservation,access_channel_hotel_reservation,model_channel_hotel_reservation,base.group_user,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_wubook_issue_call access_hotel_channel_connector_issue hotel_wubook_proto.wubook.issue.call access_hotel_channel_connector_issue hotel_wubook_proto.model_wubook_issue model_hotel_channel_connector_issue hotel.group_hotel_call base.group_user 1 1 0 1 0 1 0
3 access_wubook_issue_user access_channel_backend hotel_wubook_proto.wubook.issue.user access_channel_backend hotel_wubook_proto.model_wubook_issue model_channel_backend hotel.group_hotel_user base.group_user 1 1 0 1 0 1 0
4 access_hotel_channel_info_manager access_channel_ota_info hotel_wubook_proto.channel.info.manager access_channel_ota_info hotel_wubook_proto.model_wubook_channel_info model_channel_ota_info hotel.group_hotel_manager base.group_user 1 1 0 1 0 1 0
5 access_hotel_channel_info_availabity_user access_channel_hotel_room_type hotel_wubook_proto.channel.info.user access_channel_hotel_room_type hotel_wubook_proto.model_wubook_channel_info model_channel_hotel_room_type hotel.group_hotel_user base.group_user 1 1 0 1 0 0
6 access_hotel_channel_info_availabity_call access_channel_product_pricelist hotel_wubook_proto.channel.info.call access_channel_product_pricelist hotel_wubook_proto.model_wubook_channel_info model_channel_product_pricelist hotel.group_hotel_call base.group_user 1 1 0 1 0 0
7 access_channel_product_pricelist_item access_channel_product_pricelist_item model_channel_product_pricelist_item base.group_user 1 0 0 0
8 access_channel_hotel_room_type_restriction access_channel_hotel_room_type_restriction model_channel_hotel_room_type_restriction base.group_user 1 0 0 0
9 access_channel_hotel_room_type_restriction_item access_channel_hotel_room_type_restriction_item model_channel_hotel_room_type_restriction_item base.group_user 1 0 0 0
10 access_channel_hotel_room_type_availability access_channel_hotel_room_type_availability model_channel_hotel_room_type_availability base.group_user 1 0 0 0
11 access_channel_hotel_reservation access_channel_hotel_reservation model_channel_hotel_reservation base.group_user 1 0 0 0

View File

@@ -26,7 +26,7 @@ class HotelNode(models.Model):
odoo_version = fields.Char()
odoo_host = fields.Char('Host', required=True,
help='Full URL to the host.')
help='Full URL to the host.', default='localhost')
odoo_db = fields.Char('Database Name',
help='Odoo database name.')
odoo_user = fields.Char('Username',

View File

@@ -1 +1,8 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_node_backend,access_node_backend,model_node_backend,base.group_user,1,0,0,0
access_hotel_node_user,access_hotel_node_user,model_hotel_node_user,base.group_user,1,0,0,0
access_hotel_node_group,access_hotel_node_group,model_hotel_node_group,base.group_user,1,0,0,0
access_hotel_node_group_remote,access_hotel_node_group_remote,model_hotel_node_group_remote,base.group_user,1,0,0,0
access_hotel_node_room,access_hotel_node_room,model_hotel_node_room,base.group_user,1,0,0,0
access_hotel_node_room_type,access_hotel_node_room_type,model_hotel_node_room_type,base.group_user,1,0,0,0
access_node_room_type,access_node_room_type,model_node_room_type,base.group_user,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_node_backend access_node_backend model_node_backend base.group_user 1 0 0 0
3 access_hotel_node_user access_hotel_node_user model_hotel_node_user base.group_user 1 0 0 0
4 access_hotel_node_group access_hotel_node_group model_hotel_node_group base.group_user 1 0 0 0
5 access_hotel_node_group_remote access_hotel_node_group_remote model_hotel_node_group_remote base.group_user 1 0 0 0
6 access_hotel_node_room access_hotel_node_room model_hotel_node_room base.group_user 1 0 0 0
7 access_hotel_node_room_type access_hotel_node_room_type model_hotel_node_room_type base.group_user 1 0 0 0
8 access_node_room_type access_node_room_type model_node_room_type base.group_user 1 0 0 0