Add active field to complain type

issue9724
review318531002
This commit is contained in:
Cédric Krier committed 2020-11-06 00:46:31 +01:00
1 parent 047471be7b
commit d8e210c444
3 files changed
+7 -1

No files matched your search

+2
View File
@@ -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
+2 -1
View File
@@ -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'
+3
View File
@@ -4,6 +4,9 @@ this repository contains the full copyright notices and license terms. -->
<form>
<label name="name"/>
<field name="name"/>
<label name="active"/>
<field name="active"/>
<label name="origin"/>
<field name="origin"/>
</form>