[FIX] account_constraint: set default value for statement state on statement line

Although this should not be necessary and is probably a framework regression.
This commit is contained in:
Stéphane Bidoul
2015-02-23 10:42:43 +01:00
parent 3852f600a6
commit 35f1a2f164

View File

@@ -46,7 +46,8 @@ class AccountBankStatementLine(models.Model):
_inherit = "account.bank.statement.line"
state = fields.Selection(string='Statement state',
related='statement_id.state')
related='statement_id.state',
default='draft')
@api.multi
def cancel(self):