Allow payment journal to be deactivated

issue9575
review327971002
This commit is contained in:
Cédric Krier committed 2020-09-12 18:32:14 +02:00
1 parent 6f451e38ab
commit cc4104a0d8
3 files changed
+7 -2

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
* Allow payment journal to be deactivated
* Allow going back to processing state
* Add aggregated information on Payment groups
+3 -2
View File
@@ -7,7 +7,8 @@ from itertools import groupby
from sql.aggregate import Sum, Count
from trytond.i18n import gettext
from trytond.model import Workflow, ModelView, ModelSQL, fields
from trytond.model import (
Workflow, ModelView, ModelSQL, DeactivableMixin, fields)
from trytond.model.exceptions import AccessError
from trytond.pyson import Eval, If
from trytond.rpc import RPC
@@ -25,7 +26,7 @@ KINDS = [
]
class Journal(ModelSQL, ModelView):
class Journal(DeactivableMixin, ModelSQL, ModelView):
'Payment Journal'
__name__ = 'account.payment.journal'
name = fields.Char('Name', required=True)
+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="company"/>
<field name="company"/>
<label name="currency"/>