mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] Improve use of new api for account_default_draft_move
This commit is contained in:
@@ -28,5 +28,5 @@ class AccountBankStatement(models.Model):
|
||||
res = super(AccountBankStatement, self).button_confirm_bank()
|
||||
for st in self:
|
||||
for st_line in st.line_ids:
|
||||
st_line.journal_entry_id.write({'state': 'draft'})
|
||||
st_line.journal_entry_id.state = 'draft'
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user