mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user