Allow services to be deactivated
issue8351 review251361002
This commit is contained in:
@@ -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
@@ -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,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"/>
|
||||
|
||||
Reference in New Issue
Block a user