Hi all,
there are major differences between V12 and V13. In V13 i can add an invoice via API and then i try to add account.move.line to that invoice. I always get the error
Cannot create unbalanced journal entry
Differences debit - credit
i set the following fields:
'account_id' => $account_id,
'move_id' => $odoo_move_id,
'product_id' => 174,
'tax_ids' => [[6, 0, [$odoo_tax_id]]],
'quantity' => 2.0,
'price_unit' => 1.99,
'name' => 'TEST'
Do i really have to add serveral lines in order to make it work? whatelse do i have to do in order to have odoo add the lines automatically just as it does when it do it via the UI?
Fritz