Skip to Content
Menu
This question has been flagged
1197 Views

Hello,


in the invoice form, i've added a button wich add valeu in discount field of each invoice line. It works but i've add a message : 

cannot create unbalanced journal entry ids: [52]

Difference debit - credit : [42,5]


I think that i need to recalculate the amount of each line and the total amount of the invoice, but i don't know how to do that.

Is there a function to call to recalculate all those amounts automatically ?


I'm beginner in Odoo and Python, hope someone could help me :)


Vincent

Avatar
Discard