From 5d9f8c5a7d0c90680ee85a5fb34138df4356340c Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Tue, 12 Sep 2023 15:11:39 +0200 Subject: [PATCH] [IMP] developer reference: update act_url action doc This commit, reword the doc about `ir.actions.act_url` and add also the new `download` value for the `target`. closes odoo/documentation#5822 Related: odoo/odoo#134436 Signed-off-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/actions.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/content/developer/reference/backend/actions.rst b/content/developer/reference/backend/actions.rst index b8e20f137..564cf6675 100644 --- a/content/developer/reference/backend/actions.rst +++ b/content/developer/reference/backend/actions.rst @@ -189,9 +189,15 @@ via two fields: ``url`` the address to open when activating the action -``target`` - opens the address in a new window/page if ``new``, replaces - the current content with the page if ``self``. Defaults to ``new`` +``target`` (default= ``new``) + the available values are : + + * ``new``: opens the URL in a new window/page + * ``self``: opens the URL in the current window/page (replaces the actual content) + * ``download``: redirects to a download URL + + + example: :: @@ -201,7 +207,7 @@ via two fields: "target": "self", } -will replace the current content section by the Odoo home page. +This will replace the current content section by the Odoo home page. .. _reference/actions/server: