diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index bc8b949c80f..912c4db25da 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1777,7 +1777,7 @@ order. option is useful to inform the web client that the default field name is not the name of the current field, but the name of another field. - - accepted_file_extensions: the file extension the user can pick from the file input dialog box (default value is 'image/*') + - accepted_file_extensions: the file extension the user can pick from the file input dialog box (default value is `image/\*`) (cf: ``accept`` attribute on ) .. code-block:: xml @@ -2126,6 +2126,7 @@ Relational fields - Supported field types: *many2many* Options: + - accepted_file_extensions: the file extension the user can pick from the file input dialog box (cf: ``accept`` attribute on ) diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst index def3e9f62ad..db447e0f41a 100644 --- a/doc/reference/testing.rst +++ b/doc/reference/testing.rst @@ -62,11 +62,16 @@ related to testing Odoo content (modules, mainly): By default, tests are run once right after the corresponding module has been installed. Test cases can also be configured to run after all modules have -been installed, and not run right after the module installation: +been installed, and not run right after the module installation:: -.. autofunction:: odoo.tests.common.at_install + # coding: utf-8 + from odoo.tests import HttpCase, tagged -.. autofunction:: odoo.tests.common.post_install + # This test should only be executed after all modules have been installed. + @tagged('-at_install', 'post_install') + class WebsiteVisitorTests(HttpCase): + def test_create_visitor_on_tracked_page(self): + Page = self.env['website.page'] The most common situation is to use :class:`~odoo.tests.common.TransactionCase` and test a property of a model