Dear community,
After working with the pms module in v16 and testing its migration to v18, I found that the module is useful and works well in general.
However, the current structure feels quite monolithic. I believe it would be more maintainable and scalable if we split it into smaller modules.
I have two main suggestions:
- Split the module structure
- Refactor the code to follow OCA standards
What do you think about this idea?
@DarioLodeiros
Suggested Module Structure
1. Base Module
pms
Core property and stay management
2. Queue Integration
pms_queue_job
Adds queue job functionality to PMS flows
- Depends on:
['pms', 'queue_job']
3. Partner Contact Extensions
pms_partner_contact
Adds contact details such as gender, birthdate, and nationality
- May be split each module or include one module
- Depends on:
['partner_contact_gender', 'partner_contact_birthdate', 'partner_contact_nationality']
4. Other Observations
multi_pms_property
Not sure if this module is still necessary. It might be better to merge its logic into pms and control it via configuration settings or system parameters.
Code Refactor
During the migration to Odoo 18:
- Found many unused or redundant XML elements (e.g.,
<newline/>, unused views, etc.)
- Cleaned up and standardized the code to follow OCA guidelines
Dear community,
After working with the
pmsmodule in v16 and testing its migration to v18, I found that the module is useful and works well in general.However, the current structure feels quite monolithic. I believe it would be more maintainable and scalable if we split it into smaller modules.
I have two main suggestions:
What do you think about this idea?
@DarioLodeiros
Suggested Module Structure
1. Base Module
pmsCore property and stay management
2. Queue Integration
pms_queue_jobAdds queue job functionality to PMS flows
['pms', 'queue_job']3. Partner Contact Extensions
pms_partner_contactAdds contact details such as gender, birthdate, and nationality
['partner_contact_gender', 'partner_contact_birthdate', 'partner_contact_nationality']4. Other Observations
multi_pms_propertyNot sure if this module is still necessary. It might be better to merge its logic into
pmsand control it via configuration settings or system parameters.Code Refactor
During the migration to Odoo 18:
<newline/>, unused views, etc.)