I add an entity reference (user) to a booking unit type (apartment).
this user is the owner of the apartment.
now i want to see this relation (owner of apartment) in the booking list
admin/rooms/bookings

in the view ui i was able to add this field (owner) to the booking list view
admin/structure/views/view/bookings/edit
but the owner did not apear (the label yes..?!.)

in the bookable unit list
admin/rooms/units
i could add this field to the view
and the owners name is now visible in the bookable unit list.

any suggestions?
thanks in advanced!

Comments

ronald_istos’s picture

Bookings are fieldable entities so you can go to:

admin/rooms/bookings/booking-types

and create a booking type with an entity reference field.

hermanP’s picture

hi ronald
thanx for your answer!

this is exactly what i did:
1.)
->extended the bookable_unit_type (apartment) with a user reference (role owner)
field_owner_ref (User Reference)
-> then added manual each apartment an user

2.)
->extend the entity (standart)bookings
admin/rooms/bookings/booking-types/manage/standard_booking/fields
with field_owner_ref (User Reference)

3.) in the booking view
admin/structure/views/view/bookings/edit/page_1%3Fdestination%3Dadmin/rooms/bookings
i added
field_owner_ref (User Reference)
Lable = User
with Formatter 'Default'
now there is a new Colum 'User'
but the Data is empty..

is it a bug or is it my misconfiguration?

mobiware’s picture

Priority: Normal » Major

Hi all,
I need to use a content type as booking entity... It is possible with Rooms without coding?
I have a content type named Accomodations (configured with availability, Photo galleries, etc...) and i want people make reservations of them.

Can you help me?

Best regards,
Carlos de Castro

acrollet’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

herpes: you will need to add a relationship to the user entity via the owner reference field in views.

mobiware: it's not possible to use nodes as bookings directly, you will need to create rooms units.