From c3aa6c2d274f031a06d22bbcdd9f95cf76bab48d Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 13 Aug 2025 15:13:39 +0200 Subject: [PATCH 1/5] [FIX] developer/reference/cli: --db_replica_host Introduced by odoo/odoo#112000 in 17.0 --- content/developer/reference/cli.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 2581110b54..dc1afb8ec4 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -236,6 +236,14 @@ Database port the database listens on, defaults to 5432 +.. option:: --db_replica_host + + host for the replica database server, disabled when not set / empty + +.. option:: --db_replica_port + + the port the replica database listens on, defaults to :option:`--db_port` + .. option:: --db-filter hides databases that do not match ````. The filter is a From 2c174bbcd27e7583ffd22dc96952d3f608e48650 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 13 Aug 2025 15:15:00 +0200 Subject: [PATCH 2/5] [FIX] developer/reference/cli: --dev=replica Introduced by odoo/odoo#195280 in saas-18.1 --- content/developer/reference/cli.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index dc1afb8ec4..23dcac7661 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -436,6 +436,10 @@ Developer features * ``werkzeug``: display the full traceback on the frontend page in case of exception + * ``replica``: simulate :option:`--db_replica_host` but connect to the same datbase server as + :option:`--db_host`, this makes it possible to test read-only features without the need to set + up a replicated database. + .. _reference/cmdline/server/http: From e5b21ac43724487e8be3220a062f534b40926dea Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 13 Aug 2025 15:21:12 +0200 Subject: [PATCH 3/5] [FIX] developer/reference/cli: --dev=pdb was removed Does nothing since odoo/odoo#78857 and was removed in odoo/odoo#115076 both in 16.0. --- content/developer/reference/cli.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 23dcac7661..0da92b6e5a 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -431,9 +431,6 @@ Developer features * ``qweb``: break in the evaluation of QWeb template when a node contains ``t-debug='debugger'`` - * ``(i)p(u)db``: start the chosen python debugger in the code when an - unexpected error is raised before logging and returning the error. - * ``werkzeug``: display the full traceback on the frontend page in case of exception * ``replica``: simulate :option:`--db_replica_host` but connect to the same datbase server as From e699b3c820b81b468cc4e09bf9bce8157d0e3785 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 13 Aug 2025 16:42:46 +0200 Subject: [PATCH 4/5] [FIX] developer/reference/cli: --dev=all is a lie --dev=all actually means --dev=xml,qweb,reload --- content/developer/reference/cli.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index 0da92b6e5a..dd68e479ec 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -419,7 +419,7 @@ Developer features comma-separated list of features. For development purposes only. Do not use it in production. Possible features are: - * ``all``: all the features below are activated + * ``all``: alias for xml,reload,qweb * ``xml``: read QWeb template from xml file directly instead of database. Once a template has been modified in database, it will be not be read from From 803bfb56e7b3892e79903bf7a5bac1669cfe55f4 Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Wed, 13 Aug 2025 17:03:17 +0200 Subject: [PATCH 5/5] [IMP] developer/reference/cli: --dev=access --- content/developer/reference/cli.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index dd68e479ec..3fe68ce757 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -419,7 +419,7 @@ Developer features comma-separated list of features. For development purposes only. Do not use it in production. Possible features are: - * ``all``: alias for xml,reload,qweb + * ``all``: alias for xml,reload,qweb,access * ``xml``: read QWeb template from xml file directly instead of database. Once a template has been modified in database, it will be not be read from @@ -437,6 +437,9 @@ Developer features :option:`--db_host`, this makes it possible to test read-only features without the need to set up a replicated database. + * ``access``: log the traceback next to the AccessError when it results in a 403 - Forbidden + HTTP response. + .. _reference/cmdline/server/http: