From c09c93cda6dc86df0c92b9058bf9ef4f1f5cce41 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 23 Dec 2020 21:08:59 +0100 Subject: [PATCH] [FIX+IMP] contract: Make template to work + other refinements - Contract modification subtype non default - Hybrid template between mail.template Jinja + inheritable QWeb - QWeb element qualified for easing inheritance - Translations updated - _modification_mail_send multi-record - Tests resilience --- contract/data/mail_message_subtype.xml | 1 + contract/data/mail_template.xml | 37 ++++++++++---- contract/i18n/contract.pot | 44 ++++++++--------- contract/i18n/es.po | 61 ++++++++++++++---------- contract/models/contract.py | 32 +++++++------ contract/models/contract_modification.py | 1 - contract/tests/test_contract.py | 2 +- 7 files changed, 103 insertions(+), 75 deletions(-) diff --git a/contract/data/mail_message_subtype.xml b/contract/data/mail_message_subtype.xml index 1aff7f624..fd380d922 100644 --- a/contract/data/mail_message_subtype.xml +++ b/contract/data/mail_message_subtype.xml @@ -7,5 +7,6 @@ Contract modifications contract.contract + diff --git a/contract/data/mail_template.xml b/contract/data/mail_template.xml index 647ac5978..dac85a782 100644 --- a/contract/data/mail_template.xml +++ b/contract/data/mail_template.xml @@ -62,22 +62,39 @@ ]]> -