formatting, line: test for delete of party

This commit is contained in:
Frederik Jaeckel 2023-05-18 12:15:53 +02:00
parent 78f160bf0b
commit 619a17bcd6
16 changed files with 701 additions and 516 deletions

View file

@ -20,7 +20,8 @@ class ReconciliationReport(Report):
Company = Pool().get('company.company')
context2 = Transaction().context
context = super(ReconciliationReport, cls).get_context(records, header, data)
context = super(
ReconciliationReport, cls).get_context(records, header, data)
context['company'] = Company(context2['company'])
return context
@ -41,14 +42,14 @@ class ReconciliationReport(Report):
recon_obj = pool.get(data['model'])(data['id'])
rep_name = gettext(
'cashbook.msg_rep_reconciliation_fname',
recname = recon_obj.cashbook.rec_name[:50],
date_from = recon_obj.date_from.isoformat(),
date_to = recon_obj.date_to.isoformat(),
)
else :
recname=recon_obj.cashbook.rec_name[:50],
date_from=recon_obj.date_from.isoformat(),
date_to=recon_obj.date_to.isoformat())
else:
raise ValueError('invalid model')
(ext1, cont1, dirprint, title) = super(ReconciliationReport, cls).execute(ids, data)
(ext1, cont1, dirprint, title) = super(
ReconciliationReport, cls).execute(ids, data)
return (
ext1,
@ -63,5 +64,3 @@ class ReconciliationReport(Report):
)
# end ReconciliationReport