Skip to content

[IMP]pms: use room address in resport invoice: apartaments, villas, etc#377

Merged
OCA-git-bot merged 1 commit into16.0from
16.0-pms_room_address_independent_in_report_invoice
Jan 23, 2026
Merged

[IMP]pms: use room address in resport invoice: apartaments, villas, etc#377
OCA-git-bot merged 1 commit into16.0from
16.0-pms_room_address_independent_in_report_invoice

Conversation

@DarioLodeiros
Copy link
Copy Markdown
Member

This pull request updates the logic for displaying the address block on invoices in the pms/report/invoice.xml template. The main improvement is that the invoice will now show a room's independent address if there is only one room in the journal and that room has its own address, otherwise it will default to the property's address.

Address selection improvements:

  • Added logic to check if the journal has a single room with an independent address, and if so, display that room's address instead of the property's address.
  • Updated the template to conditionally render either the room address or the property address based on the new logic.

@DarioLodeiros
Copy link
Copy Markdown
Member Author

/ocabot merge minor

@OCA-git-bot
Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-377-by-DarioLodeiros-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e1fb212 into 16.0 Jan 23, 2026
7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at a34aa43. Thanks a lot for contributing to OCA. ❤️

@OCA-git-bot OCA-git-bot deleted the 16.0-pms_room_address_independent_in_report_invoice branch January 23, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants