mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
set account_id optional in account_statement_base_completion instead of account_statement_base_import
This commit is contained in:
@@ -397,6 +397,8 @@ class AccountStatementLine(orm.Model):
|
|||||||
"Auto-Completed",
|
"Auto-Completed",
|
||||||
help="When this checkbox is ticked, the auto-completion "
|
help="When this checkbox is ticked, the auto-completion "
|
||||||
"process/button will ignore this line."),
|
"process/button will ignore this line."),
|
||||||
|
# Set account_id field as optional by removing required option.
|
||||||
|
'account_id': fields.many2one('account.account', 'Account'),
|
||||||
}
|
}
|
||||||
|
|
||||||
_defaults = {
|
_defaults = {
|
||||||
|
|||||||
@@ -233,16 +233,3 @@ class AccountStatementProfil(Model):
|
|||||||
raise osv.except_osv(_("Statement import error"),
|
raise osv.except_osv(_("Statement import error"),
|
||||||
_("The statement cannot be created: %s") % st)
|
_("The statement cannot be created: %s") % st)
|
||||||
return statement_id
|
return statement_id
|
||||||
|
|
||||||
|
|
||||||
class AccountBankStatementLine(Model):
|
|
||||||
_inherit = "account.bank.statement.line"
|
|
||||||
|
|
||||||
_columns = {
|
|
||||||
'account_id': fields.many2one('account.account','Account'),
|
|
||||||
}
|
|
||||||
|
|
||||||
_defaults = {
|
|
||||||
'account_id': False,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user