Commit Graph

5 Commits

Author SHA1 Message Date
Pedro M. Baeza
6895fc2d29 [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 method
2024-03-23 15:10:08 +00:00
Dave Lasley
d8ced6beda [FIX] contract: Template lines handling (#92)
Update contract template lines handling to fix #80, and fix #59 #100
2024-03-23 15:10:08 +00:00
cubells
8dce5c58af [IMP][10.0] contract: Add report + send by mail (#86)
* [IMP][9.0] contract: Add report + send by mail

* Update translation and rename contract report

* Changes requested and translation updated
2024-03-23 15:10:08 +00:00
Dave Lasley
5b30e3b6f9 [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2024-03-23 15:10:08 +00:00
Pedro M. Baeza
589e1dcd22 [MIG] contract: Migration to version 10.0 2024-03-23 15:10:08 +00:00