Skip to content

[18.0] Refactor & Split Proposal for PMS #349

@Saran440

Description

@Saran440

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:

  1. Split the module structure
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions