Allow services to be deactivated

issue8351
review251361002
This commit is contained in:
Sergi Almacellas Abellana
2019-05-24 09:23:21 +02:00
parent f8f1e6736e
commit a4dfd726e2
3 changed files with 7 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
* Allow services to be deactivated
Version 5.2.0 - 2019-05-06
* Bug fixes (see mercurial logs for details)
* Use ir.calendar.day
+2 -2
View File
@@ -1,12 +1,12 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, fields
from trytond.model import ModelSQL, ModelView, DeactivableMixin, fields
from trytond.pyson import Eval
__all__ = ['Service']
class Service(ModelSQL, ModelView):
class Service(DeactivableMixin, ModelSQL, ModelView):
"Subscription Service"
__name__ = 'sale.subscription.service'
+3 -1
View File
@@ -3,7 +3,9 @@
this repository contains the full copyright notices and license terms. -->
<form>
<label name="product"/>
<field name="product" colspan="3"/>
<field name="product"/>
<label name="active"/>
<field name="active"/>
<label name="consumption_recurrence"/>
<field name="consumption_recurrence"/>
<label name="consumption_delay"/>