From be7c3527e9856ea1df5325404e55768fda8a78a7 Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Mon, 9 Mar 2020 17:19:27 +0100 Subject: [PATCH] [IMP] - track resiliation fields --- contract/models/contract.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index b7642da33..d4dd9a333 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -102,12 +102,19 @@ class ContractContract(models.Model): ondelete="restrict", readonly=True, copy=False, + track_visibility="onchange", ) resiliate_comment = fields.Text( - string="Resiliate Comment", readonly=True, copy=False + string="Resiliate Comment", + readonly=True, + copy=False, + track_visibility="onchange", ) resiliate_date = fields.Date( - string="Resiliate Date", readonly=True, copy=False + string="Resiliate Date", + readonly=True, + copy=False, + track_visibility="onchange", ) @api.multi