Hello,
I faced a problem since odoo update of 1st february 21
I letted the problem by side but i need to fix it quickly now.
In the view "account.view_move_form", i've done a modification to open invoice lines like a popup (because i added few custom fields) with the attribute editable = false
Everythings worked very well
But since the odoo version of 1st feb 2021, there is an error. I'm sure of that, because (when it was possible) if i changed odoo version for the previous one (01/25/21), it worked and if i changed for any followings versions from 02/01/21, it failed.
Now, if i create an invoice with a line with, for example, qty=1 and unit price = 50, no problem for creation.
But if i want to modify the line, for example, i change the unit price from 50 to 120, then i click on save button on the popup. Popup close, but in the line of the one2many invoice_line_ids, i can see that column "price_unit" change from 50 to 120, but the column "subtotal" doesn't changed, and the invoice amounts don't changed either.
Therefore when i click on save button, i've got the following error :
Cannot create unbalanced journal entry. ids[5571]
Difference debit-credit: [-70.0]
Is somebody could help me to fix this problem?
How could i force recompute of those differents amounts?
Vincent
same error pls help me.