14.0 aldahotels refact multiproperties #58
Merged
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 improve the handling of default property IDs and remove unnecessary code related to the
res_users
model. The most important changes include updating default property ID assignments, removing obsolete imports and methods, and modifying property ID handling in the purchase portal controller.This is related with de pms base refact multiproperties: OCA/pms#320
Updates to default property ID assignments:
cash_daily_report/wizard/cash_daily_report.py
: Changed the default assignment forpms_property_id
to useself.env.user.pms_property_id.id
instead ofget_active_property_ids()
.kellys_daily_report/wizard/kellys_daily_pdf.py
: Updated the default assignment forpms_property_id
to useself.env.user.pms_property_id.id
instead ofget_active_property_ids()
.pms_data_bi/models/budget.py
: Modified the default assignment forpms_property_id
to useself.env.user.pms_property_id.id
instead ofget_active_property_ids()
.Removal of obsolete code:
connector_docuware/models/__init__.py
: Removed the import forres_users
as it is no longer needed.connector_docuware/models/res_users/common.py
: Deleted theResUsers
model and its methodget_active_property_ids
, as it is no longer used.Modification of property ID handling in purchase portal controller:
purchase_portal/controllers/main.py
: Updated the handling of allowed property IDs to useself.env.user.pms_property_ids.ids
instead ofget_active_property_ids()
.