tabelle 'reconciliation' neu

This commit is contained in:
Frederik Jaeckel 2022-08-11 15:00:35 +02:00
parent ae5303658e
commit 01825cc09c
13 changed files with 571 additions and 36 deletions

View file

@ -77,6 +77,8 @@ class Line(Workflow, ModelSQL, ModelView):
required=True, readonly=True, depends=['currency_digits'])
credit = fields.Numeric(string='Credit', digits=(16, Eval('currency_digits', 2)),
required=True, readonly=True, depends=['currency_digits'])
reconciliation = fields.Many2One(string='Reconciliation', readonly=True,
model_name='cashbook.recon', ondelete='SET NULL')
balance = fields.Function(fields.Numeric(string='Balance',
digits=(16, Eval('currency_digits', 2)),
@ -494,7 +496,6 @@ class LineContext(ModelView):
""" get number of accessible cashbooks,
depends on user-permissions
"""
print('-- on_change_with_num_cashbook:', Transaction().context)
LineContext = Pool().get('cashbook.line.context')
return LineContext.default_num_cashbook()