mirror of
https://github.com/odoo/documentation.git
synced 2026-01-04 02:36:32 +07:00
[FIX] developer: wrong import path for Form module in tests
Since f5e7c67892, Form is in odoo.tests and not in odoo.tests.common anymore
task-none
closes odoo/documentation#14193
Signed-off-by: Antoine Vandevenne (anv) <anv@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