From f95f68d915d490503e4a7c2eb84aebc82bffec5c Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Mon, 5 May 2014 17:47:58 +0200 Subject: [PATCH] set account_id optional in account_statement_base_completion instead of account_statement_base_import --- account_statement_base_completion/statement.py | 2 ++ account_statement_base_import/statement.py | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/account_statement_base_completion/statement.py b/account_statement_base_completion/statement.py index 8217e917..da850ec2 100644 --- a/account_statement_base_completion/statement.py +++ b/account_statement_base_completion/statement.py @@ -397,6 +397,8 @@ class AccountStatementLine(orm.Model): "Auto-Completed", help="When this checkbox is ticked, the auto-completion " "process/button will ignore this line."), + # Set account_id field as optional by removing required option. + 'account_id': fields.many2one('account.account', 'Account'), } _defaults = { diff --git a/account_statement_base_import/statement.py b/account_statement_base_import/statement.py index e9418fe4..5bd8d6ca 100644 --- a/account_statement_base_import/statement.py +++ b/account_statement_base_import/statement.py @@ -233,16 +233,3 @@ class AccountStatementProfil(Model): raise osv.except_osv(_("Statement import error"), _("The statement cannot be created: %s") % st) return statement_id - - -class AccountBankStatementLine(Model): - _inherit = "account.bank.statement.line" - - _columns = { - 'account_id': fields.many2one('account.account','Account'), - } - - _defaults = { - 'account_id': False, - } -