Skip to content

[ADD] Odoo 18+ database replica handling - #705

Merged
david-banon-tecnativa merged 1 commit into
Tecnativa:masterfrom
ForgeFlow:add-db_replica_handling
Aug 3, 2026
Merged

[ADD] Odoo 18+ database replica handling#705
david-banon-tecnativa merged 1 commit into
Tecnativa:masterfrom
ForgeFlow:add-db_replica_handling

Conversation

@LauraCForgeFlow

Copy link
Copy Markdown
Contributor

Expose db_replica_host and db_replica_port as PGHOST_REPLICA and PGPORT_REPLICA. Only Odoo 18.0+ supports them, so 11.0-17.0 drop the new conf file at build time.

The default differs per version because Odoo does not read an empty setting as an absent one: 18.0 needs false, 19.0 needs None. Both match what Odoo writes in odoo/addons/base/tests/config/save_posix.conf.

https://www.odoo.com/documentation/18.0/developer/reference/cli.html#cmdoption-odoo-bin-db_replica_host

Expose db_replica_host and db_replica_port as PGHOST_REPLICA and
PGPORT_REPLICA. Only Odoo 18.0+ supports them, so 11.0-17.0 drop the new
conf file at build time.

The default differs per version because Odoo does not read an empty setting
as an absent one: 18.0 needs false, 19.0 needs None. Both match what Odoo
writes in odoo/addons/base/tests/config/save_posix.conf.

https://www.odoo.com/documentation/18.0/developer/reference/cli.html#cmdoption-odoo-bin-db_replica_host
@david-banon-tecnativa
david-banon-tecnativa merged commit 0e53179 into Tecnativa:master Aug 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants