[ADD] .*: improve rental booking and housekeeping management#2131
Closed
dhrs-odoo wants to merge 1 commit into
Closed
[ADD] .*: improve rental booking and housekeeping management#2131dhrs-odoo wants to merge 1 commit into
dhrs-odoo wants to merge 1 commit into
Conversation
Collaborator
ff5b6c2 to
2d04fba
Compare
vava-odoo
reviewed
May 15, 2026
| <field name="active" eval="True"/> | ||
| <field name="arch" type="xml"> | ||
| <xpath expr="//filter[@name='conflict_shifts']" position="before"> | ||
| <filter string="Today's Check In" name="filter_checkin_today" domain="[('x_rental_status', '=', 'pickup'), ('sale_order_id.rental_start_date', '>=', 'today'), ('sale_order_id.rental_start_date', '<', 'today +1d')]"/> |
Collaborator
There was a problem hiding this comment.
the spec says we should remove "my customer" filter. Did it drop from spec?
Contributor
Author
There was a problem hiding this comment.
I didn't found that filter I discussed same with Savp
2d04fba to
84df82c
Compare
vava-odoo
reviewed
May 19, 2026
- add rental status indicators to quickly identify bookings for today's check-in, ongoing stays, and today's check-out directly from the view - remove the default today filter - add "Today's Check-In" and "Today's Check-Out" filters in the gantt view - add default group by stage on the housekeeping board - hide Guests tab and Tax button when no stay offer products are present in the SOL - add many2one_avatar widget on x_guest_partner_id field - hide the housekeeping section when the resource role is not linked to a stay offer product - update demo data so orders with a start date before today and an end date after today are automatically checked in - update demo data so orders with an end date before today are automatically checked out Task-6144429
84df82c to
f49e8a8
Compare
vava-odoo
reviewed
May 20, 2026
Comment on lines
+805
to
+816
| if not order: | ||
| slot['x_booking_color'] = 5 # purple - internal | ||
| elif order.rental_status == 'pickup' and order.rental_start_date and today_start <= order.rental_start_date <= today_end: | ||
| slot['x_booking_color'] = 3 # yellow - check in due | ||
| elif order.rental_status == 'return' and order.rental_return_date and order.rental_return_date > today_end: | ||
| slot['x_booking_color'] = 10 # green - ongoing | ||
| elif order.rental_status == 'return' and order.rental_return_date and today_start <= order.rental_return_date <= today_end: | ||
| slot['x_booking_color'] = 4 # blue - check out due | ||
| elif (order.rental_status == 'pickup' and order.is_late) or (order.rental_status == 'return' and order.is_late): | ||
| slot['x_booking_color'] = 1 # red - attention | ||
| else: | ||
| slot['x_booking_color'] = False # grey - no focus |
Contributor
There was a problem hiding this comment.
nitpick, feel free to do whatever you want though...
Suggested change
| if not order: | |
| slot['x_booking_color'] = 5 # purple - internal | |
| elif order.rental_status == 'pickup' and order.rental_start_date and today_start <= order.rental_start_date <= today_end: | |
| slot['x_booking_color'] = 3 # yellow - check in due | |
| elif order.rental_status == 'return' and order.rental_return_date and order.rental_return_date > today_end: | |
| slot['x_booking_color'] = 10 # green - ongoing | |
| elif order.rental_status == 'return' and order.rental_return_date and today_start <= order.rental_return_date <= today_end: | |
| slot['x_booking_color'] = 4 # blue - check out due | |
| elif (order.rental_status == 'pickup' and order.is_late) or (order.rental_status == 'return' and order.is_late): | |
| slot['x_booking_color'] = 1 # red - attention | |
| else: | |
| slot['x_booking_color'] = False # grey - no focus | |
| slot['x_booking_color'] = False # grey - no focus | |
| if not order: slot['x_booking_color'] = 5 # purple - internal | |
| elif order.rental_status in ['pickup', 'return']: | |
| if order.is_late: slot['x_booking_color'] = 1 # red - attention | |
| elif order.rental_status == 'return': | |
| if order.rental_return_date > today_end: | |
| slot['x_booking_color'] = 10 # green - ongoing | |
| elif order.rental_return_date and today_start <= order.rental_return_date <= today_end: | |
| slot['x_booking_color'] = 4 # blue - check out due | |
| elif order.rental_start_date and today_start <= order.rental_start_date <= today_end: | |
| slot['x_booking_color'] = 3 # yellow - check in due |
vava-odoo
approved these changes
May 20, 2026
| <field name="model_id" ref="planning.model_planning_slot"/> | ||
| <field name="name">x_rental_status</field> | ||
| <field name="related">sale_order_id.rental_status</field> | ||
| <field name="store">False</field> |
Collaborator
There was a problem hiding this comment.
does that really work? 😂
Comment on lines
+805
to
+816
| if not order: | ||
| slot['x_booking_color'] = 5 # purple - internal | ||
| elif order.rental_status == 'pickup' and order.rental_start_date and today_start <= order.rental_start_date <= today_end: | ||
| slot['x_booking_color'] = 3 # yellow - check in due | ||
| elif order.rental_status == 'return' and order.rental_return_date and order.rental_return_date > today_end: | ||
| slot['x_booking_color'] = 10 # green - ongoing | ||
| elif order.rental_status == 'return' and order.rental_return_date and today_start <= order.rental_return_date <= today_end: | ||
| slot['x_booking_color'] = 4 # blue - check out due | ||
| elif (order.rental_status == 'pickup' and order.is_late) or (order.rental_status == 'return' and order.is_late): | ||
| slot['x_booking_color'] = 1 # red - attention | ||
| else: | ||
| slot['x_booking_color'] = False # grey - no focus |
Collaborator
|
@robodoo r+ squash |
Collaborator
|
Merge method set to squash. |
This was referenced May 20, 2026
robodoo
pushed a commit
that referenced
this pull request
May 20, 2026
- add rental status indicators to quickly identify bookings for today's check-in, ongoing stays, and today's check-out directly from the view - remove the default today filter - add "Today's Check-In" and "Today's Check-Out" filters in the gantt view - add default group by stage on the housekeeping board - hide Guests tab and Tax button when no stay offer products are present in the SOL - add many2one_avatar widget on x_guest_partner_id field - hide the housekeeping section when the resource role is not linked to a stay offer product - update demo data so orders with a start date before today and an end date after today are automatically checked in - update demo data so orders with an end date before today are automatically checked out Task-6144429 closes #2192 Forward-port-of: #2131 Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Task-6144429