[RFC]pms: refact multiproperty features #320
Open
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 a significant update to the Property Management System (PMS) module, focusing on version updates, migration scripts, and refactoring of property-related logic.
Migration Scripts:
pms/migrations/14.0.3.49.0/post-migration.py
to update thelist_price
field ofproduct.template
and theamount
field ofpms.board.service.line
based on the highest values fromir.pms.property
records.Refactoring Property-Related Logic:
get_active_property_ids
method frompms/models/res_users.py
and updated security rules inpms/security/pms_security.xml
to useuser.pms_property_ids.ids
instead. [1] [2] [3] [4] [5] [6] [7]pms/models/ir_pms_property.py
to include computed fieldsmodel_name
andfield_name
, and added logic to handle creation ofir.pms.property
records withmodel_name
andfield_name
. [1] [2] [3]pms/models/account_move.py
,pms/models/pms_board_service_line.py
,pms/models/pms_folio.py
,pms/models/pms_reservation.py
, andpms/models/pms_room.py
. [1] [2] [3] [4] [5] [6] [7] [8]pms/models/product_template.py
to remove computed and inverse methods forlist_price
and added a one-to-many relationship forproperty_daily_limits
. [1] [2] [3]