Browse Source
[FIX] contract: fix views assignment + improvement on tests + copyright in headers
[FIX] contract: fix views assignment + improvement on tests + copyright in headers
**Be totally deterministic about which views to use** Having a primary view that is not explicitly declared to be uses and w/o priority makes Odoo to choose between one of them randomly (well, not exactly, but kind of), so we put here which views to use. I have also put tree view as primary and put a large priority for not being selected on other actions that don't have this explicit views. A friendly name in views is also assigned. **Improvements in tests** * Use SavepointCase for making the setup only once for all tests * Make them inheritable, creating a base class with only the setup, so that it can be inherited without the need of executing all tests contained here each time you inherit it, and adding other class in the same module that inherits from the base class that actually performs the tests. * Removed duplicated test method13.0-mig-contract
Pedro M. Baeza
7 years ago
committed by
Administrator
3 changed files with 52 additions and 51 deletions
-
10contract/__manifest__.py
-
70contract/tests/test_contract.py
-
23contract/views/account_analytic_account_view.xml
Write
Preview
Loading…
Cancel
Save
Reference in new issue