Allow payment journal to be deactivated
issue9575 review327971002
This commit is contained in:
1 parent
6f451e38ab
commit
cc4104a0d8
3 files changed
+7
-2
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Allow payment journal to be deactivated
|
||||
* Allow going back to processing state
|
||||
* Add aggregated information on Payment groups
|
||||
|
||||
|
||||
+3
-2
@@ -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)
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in new issue
Block a user