[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) <anv@odoo.com>
This commit is contained in:
Romeo Fragomeli 2023-09-12 15:11:39 +02:00
parent b1ece27040
commit 5d9f8c5a7d

View File

@ -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: