Compare commits

..

36 commits
main ... 6.8

Author SHA1 Message Date
Frederik Jaeckel
d2419560c7 Etikett ver 6.8.35 zum Änderungssatz 5a78543b2f94 hinzugefügt 2024-06-01 11:30:08 +02:00
Frederik Jaeckel
bfdb9d33b6 Version 6.8.35 2024-06-01 11:29:47 +02:00
Frederik Jaeckel
c337f00497 Config: setting for booking-wizard - 'fixate' 2024-06-01 11:13:47 +02:00
Frederik Jaeckel
cd3accdc02 Etikett ver 6.8.34 zum Änderungssatz 78f83679082c hinzugefügt 2024-05-30 13:08:32 +02:00
Frederik Jaeckel
009da91751 Version 6.8.34 2024-05-30 13:08:15 +02:00
Frederik Jaeckel
4384ed052a hgignore 2024-05-30 12:44:27 +02:00
Frederik Jaeckel
5f1d5f21e6 Allow to fixate a booking from Booking-Wizard 2024-05-30 12:44:11 +02:00
Frederik Jaeckel
150b564788 re-calculate values @ module install 2024-01-20 18:09:03 +01:00
Frederik Jaeckel
e8493cd07e tests valuestore: allow add of data to cashbook-line 2023-12-31 13:17:47 +01:00
Frederik Jaeckel
62445bfa44 add license 2023-12-31 11:20:00 +01:00
Frederik Jaeckel
d9f317f9e4 Etikett ver 6.8.33 zum Änderungssatz 131eb68c7903 hinzugefügt 2023-12-31 11:00:24 +01:00
Frederik Jaeckel
db17f81c3e Version 6.8.33 2023-12-31 11:00:03 +01:00
Frederik Jaeckel
6b5f17f0e5 cashbook: optimize for speed for checking rows 2023-12-29 22:55:41 +01:00
Frederik Jaeckel
296c1dc204 valuestore: fix test for number of fields 2023-12-29 22:53:27 +01:00
Frederik Jaeckel
31005eab45 cashbook: add (optional) balance_all + balance_ref to list-view 2023-12-29 14:52:50 +01:00
Frederik Jaeckel
4c44872396 optimize searcher/sort, add search/sort to balance_ref 2023-12-29 14:51:39 +01:00
Frederik Jaeckel
65a0e0ce58 add worker-based precalculation of cashbook-values 2023-12-27 15:49:02 +01:00
Frederik Jaeckel
345cef4c8b remove caching 2023-12-23 10:36:58 +01:00
Frederik Jaeckel
c6478add0f Etikett ver 6.8.32 zum Änderungssatz 9a78ff3d6798 hinzugefügt 2023-12-06 21:19:04 +01:00
Frederik Jaeckel
a895d2a0de Version 6.8.32 2023-12-06 21:18:49 +01:00
Frederik Jaeckel
57dea9a65d merge... 2023-12-06 21:15:16 +01:00
Frederik Jaeckel
6008532475 columns optional 2023-12-06 20:20:13 +01:00
Frederik Jaeckel
d2ceb5419e Etikett ver 6.8.31 zum Änderungssatz 78475f7c20a0 hinzugefügt 2023-11-30 13:39:17 +01:00
Frederik Jaeckel
04acb27b60 Version 6.8.31 2023-11-30 13:39:05 +01:00
Frederik Jaeckel
aa7af9844b ir.rule: Eval('user').get('groups') --> Eval('groups') 2023-11-30 13:14:54 +01:00
Frederik Jaeckel
018e265cff merge... 2023-11-30 13:33:46 +01:00
Frederik Jaeckel
9ee924f0d8 formatting, indexes optimized 2023-11-29 15:19:38 +01:00
Frederik Jaeckel
510357a13c Etikett ver 6.8.30 zum Änderungssatz 6b2cd4807eca hinzugefügt 2023-07-25 21:14:47 +02:00
Frederik Jaeckel
b237981a9b Version 6.8.30 2023-07-25 21:14:31 +02:00
Frederik Jaeckel
aac6930999 splitline: add tests 2023-07-25 21:11:32 +02:00
Frederik Jaeckel
7a4fd94981 optimize search-queries, line: fix state-selection 2023-07-24 17:31:34 +02:00
Frederik Jaeckel
6550baa468 Etikett ver 6.8.29 zum Änderungssatz eca41028d0c7 hinzugefügt 2023-07-24 16:35:28 +02:00
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
17 changed files with 71 additions and 46 deletions

View file

@ -1,4 +1,4 @@
*.pyc
syntax: glob
build/*
dist/*
mds_cashbook.egg-info/*

View file

@ -9,7 +9,7 @@ pip install mds-cashbook
Requires
========
- Tryton 7.0
- Tryton 6.8
How to
======
@ -153,6 +153,35 @@ currency are converted into the display currency of the parent cash book.
Changes
=======
*7.0.0 - 30.11.2023*
*6.8.35 - 01.06.2024*
- compatibility to Tryton 7.0
- add: config setting for fixate in booking-wizard
*6.8.34 - 30.05.2024*
- add: fixate of booking from booking-wizard
*6.8.33 - 31.12.2023*
- remove caching
- add worker-based precalculation of cashbook-values
*6.8.32 - 06.12.2023*
- columns optional
*6.8.31 - 30.11.2023*
- optimized ir.rule
*6.8.30 - 25.07.2023*
- updt: optimize code, add tests
*6.8.29 - 24.07.2023*
- fix: type of indexes
*6.8.28 - 05.06.2023*
- init

View file

@ -17,7 +17,6 @@ from .reconciliation import Reconciliation
from .cbreport import ReconciliationReport
from .currency import CurrencyRate
from .valuestore import ValueStore
from .ir import Rule
from .cron import Cron
@ -37,7 +36,6 @@ def register():
RunCbReportStart,
EnterBookingStart,
ValueStore,
Rule,
Cron,
module='cashbook', type_='model')
Pool.register(

View file

@ -121,7 +121,7 @@ full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rg_book_rw_owner-1">
<field name="domain" eval="[
('owner.id', '=', Eval('user_id', -1)),
('owner.id', '=', Eval('user', {}).get('id', -1)),
]" pyson="1"/>
<field name="rule_group" ref="rg_book_rw_owner"/>
</record>

24
ir.py
View file

@ -1,24 +0,0 @@
# -*- coding: utf-8 -*-
# This file is part of the cashbook-module from m-ds.de for Tryton.
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
from trytond.pool import PoolMeta
class Rule(metaclass=PoolMeta):
__name__ = 'ir.rule'
@classmethod
def _context_modelnames(cls):
""" list of models to add 'user_id' to context
"""
result = super(Rule, cls)._context_modelnames()
return result | {
'cashbook.book',
'cashbook.line',
'cashbook.recon',
'cashbook.split'
}
# end Rule

View file

@ -145,7 +145,7 @@ full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rg_line_write-1">
<field name="domain" eval="['OR',
('cashbook.owner.id', '=', Eval('user_id', -1)),
('cashbook.owner.id', '=', Eval('user', {}).get('id', -1)),
('cashbook.reviewer.id', 'in', Eval('groups', [])),
]" pyson="1"/>
<field name="rule_group" ref="rg_line_write"/>

View file

@ -466,6 +466,10 @@ msgctxt "view:cashbook.book:"
msgid "Amount and Numbering"
msgstr "Betrag und Nummerierung"
msgctxt "view:cashbook.book:"
msgid "Balance"
msgstr "Saldo"
msgctxt "view:cashbook.book:"
msgid "Reconciliations"
msgstr "Abstimmungen"
@ -790,6 +794,14 @@ msgctxt "model:cashbook.line,name:"
msgid "Cashbook Line"
msgstr "Kassenbuchzeile"
msgctxt "view:cashbook.line:"
msgid "Credit"
msgstr "Einnahme"
msgctxt "view:cashbook.line:"
msgid "Debit"
msgstr "Ausgabe"
msgctxt "view:cashbook.line:"
msgid "Cashbook Line"
msgstr "Kassenbuchzeile"

View file

@ -426,6 +426,10 @@ msgctxt "view:cashbook.book:"
msgid "Amount and Numbering"
msgstr "Amount and Numbering"
msgctxt "view:cashbook.book:"
msgid "Balance"
msgstr "Balance"
msgctxt "view:cashbook.book:"
msgid "Reconciliations"
msgstr "Reconciliations"
@ -742,6 +746,14 @@ msgctxt "model:cashbook.line,name:"
msgid "Cashbook Line"
msgstr "Cashbook Line"
msgctxt "view:cashbook.line:"
msgid "Credit"
msgstr "Credit"
msgctxt "view:cashbook.line:"
msgid "Debit"
msgstr "Debit"
msgctxt "view:cashbook.line:"
msgid "Cashbook Line"
msgstr "Cashbook Line"

View file

@ -96,7 +96,7 @@ full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rg_recon_write-1">
<field name="domain" eval="['OR',
('cashbook.owner.id', '=', Eval('user_id', -1)),
('cashbook.owner.id', '=', Eval('user', {}).get('id', -1)),
('cashbook.reviewer.id', 'in', Eval('groups', [])),
]" pyson="1"/>
<field name="rule_group" ref="rg_recon_write"/>

View file

@ -39,8 +39,8 @@ with open(path.join(here, 'versiondep.txt'), encoding='utf-8') as f:
modversion[l2[0]] = {'min': l2[1], 'max': l2[2], 'prefix': l2[3]}
# tryton-version
major_version = 7
minor_version = 0
major_version = 6
minor_version = 8
requires = ['python-slugify']
for dep in info.get('depends', []):
@ -91,7 +91,6 @@ setup(
'License :: OSI Approved :: GNU General Public License (GPL)',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='tryton cashbook',

View file

@ -80,7 +80,7 @@ full copyright notices and license terms. -->
</record>
<record model="ir.rule" id="rg_split_write-1">
<field name="domain" eval="['OR',
('line.cashbook.owner.id', '=', Eval('user_id', -1)),
('line.cashbook.owner.id', '=', Eval('user', {}).get('id', -1)),
('line.cashbook.reviewer.id', 'in', Eval('groups', [])),
]" pyson="1"/>
<field name="rule_group" ref="rg_split_write"/>

View file

@ -1,11 +1,10 @@
[tryton]
version=7.0.0
version=6.8.35
depends:
res
currency
party
company
irrulecontext
xml:
icon.xml
group.xml

View file

@ -1 +1 @@
irrulecontext;7.0.1;7.0.999;mds

View file

@ -4,7 +4,7 @@ The COPYRIGHT file at the top level of this repository contains the
full copyright notices and license terms. -->
<tree keyword_open="1">
<field name="rec_name" expand="1"/>
<field name="balance" sum="1" symbol="currency"/>
<field name="balance" sum="Balance" symbol="currency"/>
<field name="balance_all" symbol="currency" optional="1"/>
<field name="balance_ref" symbol="company_currency" optional="1"/>
<field name="state" optional="0"/>

View file

@ -9,8 +9,8 @@ full copyright notices and license terms. -->
<field name="payee"/>
<field name="category_view"/>
<field name="descr_short" expand="1"/>
<field name="credit" sum="1" optional="0"/>
<field name="debit" sum="1" optional="0"/>
<field name="credit" sum="Credit" optional="0"/>
<field name="debit" sum="Debit" optional="0"/>
<field name="balance" optional="0"/>
<field name="state" optional="0"/>
<button name="wfcheck"/>

View file

@ -9,8 +9,8 @@ full copyright notices and license terms. -->
<field name="payee" optional="0"/>
<field name="category_view" optional="0"/>
<field name="descr_short" expand="1" optional="0"/>
<field name="credit" sum="1" optional="0"/>
<field name="debit" sum="1" optional="0"/>
<field name="credit" sum="Credit" optional="0"/>
<field name="debit" sum="Debit" optional="0"/>
<field name="state" optional="0"/>
<button name="wfrecon"/>
</tree>

View file

@ -9,6 +9,6 @@ full copyright notices and license terms. -->
<field name="category"/>
<field name="booktransf"/>
<field name="description" expand="1" optional="0"/>
<field name="amount" sum="1" symbol="currency" optional="0"/>
<field name="amount" sum="Amount" symbol="currency" optional="0"/>
<field name="amount_2nd_currency" symbol="currency2nd" optional="0"/>
</tree>