I am trying to create new bank transactions automatically instead of having users input the info manually as described here: https://odoo.com/documentation/17.0/applications/finance/accounting/bank/transactions.html#transactions-register
I have tried the following code but it did not work:
name = 'account.bank.statement.line'
id = models.execute_kw(db, uid, password, name, 'create',
[{
'move_id': 1,
'payment_ref': 'TEST/0001',
'amount': 100,
}])
What did I do wrong?
Thank you!