Denis Roussel
7736b823ff
contract: simplify compute as False values are already taken into account
...
In get_next_invoice_date, False values are already taken into account, so, simplifying
compute_recurring_next_date function.
2022-03-09 09:55:08 +01:00
Denis Roussel
730b832466
contract: Compute recurring_next_date for False values too
2022-03-09 09:55:08 +01:00
Jean-Charles Drubay
119b5b6700
[MIG] contract: Migration to 15.0
...
Most changes are related to the switch from jinja to qweb in mail templates.
Also included:
- convert deprecated onchange that returns a domain and other deprecation warnings
(see below)
- Add migration scripts from version 14.0 (force the update of the mail templates)
- Fix warnings from pre-commit checks
Fixes depreciation warnings:
- onchange method ContractAbstractContractLine._onchange_product_id returned
a domain, this is deprecated
- SavepointCase is deprecated:
https://github.com/odoo/odoo/blob/15.0/odoo/tests/common.py#L742
- assertDictContainsSubset: According to:
https://stackoverflow.com/questions/20050913/python-unittests-assertdictcontainssubset-recommended-alternative
2021-11-09 10:08:29 +07:00
Francisco Ivan Anton Prieto
0853330308
[IMP] contract: black, isort, prettier
2021-11-09 10:08:21 +07:00
Pedro M. Baeza
8d2dfb0376
[IMP+REF] contract: Allow to set recurrency at header level
...
Big refactoring for allowing to define recurrency at header level for simplifying
the use of the module for most of the cases where you don't need different
recurrency at line level.
2021-11-09 10:08:01 +07:00