Compare commits

...

4 commits

Author SHA1 Message Date
Frederik Jaeckel
e017f20df4 Version 6.8.29 2023-07-24 16:35:19 +02:00
Frederik Jaeckel
3a0df50d52 line, type: fix index 2023-06-08 17:08:47 +02:00
Frederik Jaeckel
eaa502a626 Etikett ver 6.8.28 zum Änderungssatz 5fae2c803879 hinzugefügt 2023-06-05 20:23:11 +02:00
Frederik Jaeckel
7769f5f14a Version 6.8.28 2023-06-05 20:22:53 +02:00
5 changed files with 16 additions and 6 deletions

View file

@ -9,7 +9,7 @@ pip install mds-cashbook
Requires Requires
======== ========
- Tryton 6.0 - Tryton 6.8
How to How to
====== ======
@ -153,6 +153,10 @@ currency are converted into the display currency of the parent cash book.
Changes Changes
======= =======
*6.0.0 - 05.08.2022* *6.8.29 - 24.07.2023*
- fix: type of indexes
*6.8.28 - 05.06.2023*
- init - init

View file

@ -245,7 +245,7 @@ class Line(SecondCurrencyMixin, MemCacheIndexMx, Workflow, ModelSQL, ModelView):
(t.state, Index.Equality())), (t.state, Index.Equality())),
Index( Index(
t, t,
(t.reference, Index.Range())), (t.reference, Index.Equality())),
}) })
cls._sql_constraints.extend([ cls._sql_constraints.extend([
('state_val2', ('state_val2',

View file

@ -40,7 +40,7 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f:
# tryton-version # tryton-version
major_version = 6 major_version = 6
minor_version = 0 minor_version = 8
requires = ['python-slugify'] requires = ['python-slugify']
for dep in info.get('depends', []): for dep in info.get('depends', []):
@ -89,6 +89,7 @@ setup(name='%s_%s' % (PREFIX, MODULE),
'License :: OSI Approved :: GNU General Public License (GPL)', 'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
], ],
keywords='tryton cashbook', keywords='tryton cashbook',

View file

@ -1,5 +1,5 @@
[tryton] [tryton]
version=6.0.0 version=6.8.29
depends: depends:
res res
currency currency

View file

@ -3,7 +3,7 @@
# The COPYRIGHT file at the top level of this repository contains the # The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms. # full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, fields, Unique from trytond.model import ModelView, ModelSQL, fields, Unique, Index
from trytond.transaction import Transaction from trytond.transaction import Transaction
from trytond.i18n import gettext from trytond.i18n import gettext
@ -30,6 +30,11 @@ class Type(ModelSQL, ModelView):
cls._sql_constraints.extend([ cls._sql_constraints.extend([
('code_uniq', Unique(t, t.short), 'cashbook.msg_type_short_unique'), ('code_uniq', Unique(t, t.short), 'cashbook.msg_type_short_unique'),
]) ])
cls._sql_indexes.update({
Index(
t,
(t.feature, Index.Equality())),
})
@classmethod @classmethod
def default_feature(cls): def default_feature(cls):