14.0 apply board service by pricelist filter #311
+30
−5
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.
This pull request includes several changes to the
pms
module, focusing on adding pricelist functionality to board services and improving the logic for handling default board services. The most important changes include adding a new field to thePmsBoardServiceRoomType
model, updating constraints and computations involving board services, and modifying views to include the new field.Enhancements to Board Services:
pms/models/pms_board_service_room_type.py
: Added a newpricelist_ids
field to thePmsBoardServiceRoomType
model to specify the pricelists where the board service is available.pms/models/pms_board_service_room_type.py
: Updated theconstrains_duplicated_board_default
method to include the newpricelist_ids
field in the constraint check.Improvements to Reservation Logic:
pms/models/pms_reservation.py
: Modified the_compute_board_service_room_id
method to filter board services based on thepricelist_ids
field, ensuring the correct board service is applied to reservations.pms/wizards/wizard_folio_changes.py
: Updated the_add_board_service
method to check thepricelist_ids
field when adding board services to reservations.Updates to Views:
pms/views/pms_room_type_views.xml
: Added thepricelist_ids
field to the room type views, allowing users to manage pricelists for board services directly from the UI.