[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
This commit is contained in:
Jean-Charles Drubay
2021-10-28 18:24:51 +07:00
parent 7537451d2f
commit 119b5b6700
19 changed files with 377 additions and 232 deletions

View File

@@ -1566,7 +1566,7 @@ msgstr ""
#: code:addons/contract/models/contract.py:0
#, fuzzy, python-format
msgid "Please define a %s journal for the company '%s'."
msgstr "Molimo definirajte dnevnik prodaje za poduzeće '%s'."
msgstr "Molimo definirajte dnevnik prodaje '%s' za poduzeće '%s'."
#. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_contract__access_url

View File

@@ -1581,7 +1581,7 @@ msgstr "Pianificazione successore non permessa per questa riga"
#: code:addons/contract/models/contract.py:0
#, python-format
msgid "Please define a %s journal for the company '%s'."
msgstr "Definire un registro vendite per l'azienda \"%s\"."
msgstr "Definire un registro vendite %s per l'azienda \"%s\"."
#. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_contract__access_url

View File

@@ -1564,7 +1564,7 @@ msgstr ""
#: code:addons/contract/models/contract.py:0
#, fuzzy, python-format
msgid "Please define a %s journal for the company '%s'."
msgstr "Lütfen '%s' şirketi için bir satış yevmiyesi tanımlayın."
msgstr "Lütfen '%s' şirketi için bir satış yevmiyesi tanımlayın ('%s')."
#. module: contract
#: model:ir.model.fields,field_description:contract.field_contract_contract__access_url