Allow statement journals to be deactivated

issue10497
review348761003
This commit is contained in:
David Blanco Bautista
2021-06-29 00:32:12 +02:00
parent 8cc721b084
commit 26d8ba8ef5
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
* Allow statement journals to be deactivated
Version 6.0.0 - 2021-05-03
* Bug fixes (see mercurial logs for details)
* Warn user when posting a statement with cancelled or paid invoices
+2 -2
View File
@@ -3,13 +3,13 @@
from sql import Table
from trytond import backend
from trytond.model import ModelView, ModelSQL, fields, Unique
from trytond.model import ModelView, ModelSQL, DeactivableMixin, fields, Unique
from trytond.transaction import Transaction
from trytond.pool import Pool
from trytond.pyson import Eval
class Journal(ModelSQL, ModelView):
class Journal(DeactivableMixin, ModelSQL, ModelView):
'Statement Journal'
__name__ = 'account.statement.journal'
name = fields.Char('Name', required=True)
+2
View File
@@ -4,6 +4,8 @@ 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="journal"/>
<field name="journal"/>
<label name="currency"/>