From d8e210c4448df60fb138f5c98cdcdbceb762759a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 6 Nov 2020 00:46:31 +0100 Subject: [PATCH] Add active field to complain type issue9724 review318531002 --- CHANGELOG | 2 ++ complaint.py | 3 ++- view/type_form.xml | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ec4af8c593..27a3e99b5f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Add active field to complaint type + Version 5.8.0 - 2020-11-02 * Bug fixes (see mercurial logs for details) * Remove support for Python 3.5 diff --git a/complaint.py b/complaint.py index 81b97e4415..28b37e0c3d 100644 --- a/complaint.py +++ b/complaint.py @@ -5,6 +5,7 @@ from collections import defaultdict from trytond.i18n import gettext from trytond.model import ModelSQL, ModelView, Workflow, fields +from trytond.model import DeactivableMixin from trytond.model.exceptions import AccessError from trytond.pyson import Eval, If, Bool from trytond.pool import Pool @@ -13,7 +14,7 @@ from trytond.transaction import Transaction from trytond.modules.product import price_digits -class Type(ModelSQL, ModelView): +class Type(DeactivableMixin, ModelSQL, ModelView): 'Customer Complaint Type' __name__ = 'sale.complaint.type' diff --git a/view/type_form.xml b/view/type_form.xml index 4d49514de5..05837f25b1 100644 --- a/view/type_form.xml +++ b/view/type_form.xml @@ -4,6 +4,9 @@ this repository contains the full copyright notices and license terms. -->