From d3ab3d05533cd9bef39eae4bc44bf9bcd9d90a67 Mon Sep 17 00:00:00 2001 From: Quentin Date: Tue, 20 Jan 2009 18:29:04 +0100 Subject: [PATCH] [IMP] the importing of invoices from bank.statement are now more generic and allow user to select journals for filtering bzr revid: qdp@jade-20090120172904-8q63hrpj8me3yp31 --- .../wizard/wizard_statement_from_invoice.py | 76 +++++++++---------- 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/addons/account/wizard/wizard_statement_from_invoice.py b/addons/account/wizard/wizard_statement_from_invoice.py index b32d4933ad6..351e7197546 100644 --- a/addons/account/wizard/wizard_statement_from_invoice.py +++ b/addons/account/wizard/wizard_statement_from_invoice.py @@ -40,26 +40,49 @@ FIELDS = { START_FIELD = { 'date': {'string': 'Date payment', 'type': 'date','required':True, 'default': lambda *a: time.strftime('%Y-%m-%d')}, - + 'journal_id': {'string': 'Journal', 'type': 'many2many', 'relation': 'account.journal', 'domain': '[("type","in",["sale","purchase"])]', 'help': 'This field allow you to choose the accounting journals you want for filtering the invoices. If you left this field empty, it will search on all sale and purchase journals.'}, } + START_FORM = '''
-