From 23852531fb66db1ac40cb47a76dac999353c04ca Mon Sep 17 00:00:00 2001 From: resteve Date: Sat, 10 Jan 2015 17:15:15 +0100 Subject: [PATCH] Required name field in account statement when Open Statement --- statement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/statement.py b/statement.py index 9ce4bc7..01120a1 100644 --- a/statement.py +++ b/statement.py @@ -180,6 +180,7 @@ class OpenStatement(Wizard): for journal in device.journals: if journal not in journals_of_draft_statements: values = { + 'name': '%s - %s' % (device.rec_name, journal.rec_name), 'journal': journal.id, 'company': user.company.id, 'start_balance': start_balances.get(journal.id,