mirror of
https://github.com/odoo/documentation.git
synced 2025-12-16 17:39:06 +07:00
[FIX] developer: wrong import path for Form module in tests
Sincef5e7c67892, Form is in odoo.tests and not in odoo.tests.common anymore task-none closes odoo/documentation#14198 X-original-commit:08f66ab000Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Thomas Becquevort (thbe) <thbe@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user