From 8abd3a90db624f199a206804ccb85d4c745bcb06 Mon Sep 17 00:00:00 2001 From: "Thomas Becquevort (thbe)" Date: Thu, 31 Jul 2025 12:15:23 +0000 Subject: [PATCH] [FIX] developer: wrong import path for Form module in tests Since https://github.com/odoo/odoo/pull/116779/commits/f5e7c67892cb7f096a08869e085ea1b5c546ed3d, Form is in odoo.tests and not in odoo.tests.common anymore task-none closes odoo/documentation#14197 X-original-commit: 08f66ab0002f98c89db4df6716e02c4e3739077a Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Thomas Becquevort (thbe) --- content/developer/tutorials/unit_tests.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/developer/tutorials/unit_tests.rst b/content/developer/tutorials/unit_tests.rst index 5448b3b95..c5b13bf22 100644 --- a/content/developer/tutorials/unit_tests.rst +++ b/content/developer/tutorials/unit_tests.rst @@ -213,7 +213,7 @@ Here are a few things to take into consideration before writing a test .. note:: Remember that ``onchange`` only applies in the Form views, not by changing the attributes in python. This also applies in the tests. If you want to emulate a Form view, you can use - ``odoo.tests.common.Form``. + ``odoo.tests.Form``. The tests should be in a ``tests`` folder at the root of your module. Each test file name should start with `test_` and be imported in the ``__init__.py`` of the test folder. You shouldn't