Compare commits
36 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
d2419560c7 | ||
![]() |
bfdb9d33b6 | ||
![]() |
c337f00497 | ||
![]() |
cd3accdc02 | ||
![]() |
009da91751 | ||
![]() |
4384ed052a | ||
![]() |
5f1d5f21e6 | ||
![]() |
150b564788 | ||
![]() |
e8493cd07e | ||
![]() |
62445bfa44 | ||
![]() |
d9f317f9e4 | ||
![]() |
db17f81c3e | ||
![]() |
6b5f17f0e5 | ||
![]() |
296c1dc204 | ||
![]() |
31005eab45 | ||
![]() |
4c44872396 | ||
![]() |
65a0e0ce58 | ||
![]() |
345cef4c8b | ||
![]() |
c6478add0f | ||
![]() |
a895d2a0de | ||
![]() |
57dea9a65d | ||
![]() |
6008532475 | ||
![]() |
d2ceb5419e | ||
![]() |
04acb27b60 | ||
![]() |
aa7af9844b | ||
![]() |
018e265cff | ||
![]() |
9ee924f0d8 | ||
![]() |
510357a13c | ||
![]() |
b237981a9b | ||
![]() |
aac6930999 | ||
![]() |
7a4fd94981 | ||
![]() |
6550baa468 | ||
![]() |
e017f20df4 | ||
![]() |
3a0df50d52 | ||
![]() |
eaa502a626 | ||
![]() |
7769f5f14a |
17 changed files with 71 additions and 46 deletions
|
@ -1,4 +1,4 @@
|
|||
*.pyc
|
||||
syntax: glob
|
||||
build/*
|
||||
dist/*
|
||||
mds_cashbook.egg-info/*
|
35
README.rst
35
README.rst
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
2
book.xml
2
book.xml
|
@ -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
24
ir.py
|
@ -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
|
2
line.xml
2
line.xml
|
@ -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"/>
|
||||
|
|
12
locale/de.po
12
locale/de.po
|
@ -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"
|
||||
|
|
12
locale/en.po
12
locale/en.po
|
@ -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"
|
||||
|
|
|
@ -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"/>
|
||||
|
|
5
setup.py
5
setup.py
|
@ -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',
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
[tryton]
|
||||
version=7.0.0
|
||||
version=6.8.35
|
||||
depends:
|
||||
res
|
||||
currency
|
||||
party
|
||||
company
|
||||
irrulecontext
|
||||
xml:
|
||||
icon.xml
|
||||
group.xml
|
||||
|
|
|
@ -1 +1 @@
|
|||
irrulecontext;7.0.1;7.0.999;mds
|
||||
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue