set account_id optional in account_statement_base_completion instead of account_statement_base_import

This commit is contained in:
Yannick Vaucher
2014-05-05 17:47:58 +02:00
parent 46a5f67193
commit f95f68d915
2 changed files with 2 additions and 13 deletions

View File

@@ -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 = {

View File

@@ -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,
}