Skip to content
Snippets Groups Projects
Commit 8f3d3e90 authored by Nik Jmaeff's avatar Nik Jmaeff
Browse files

[FIX] account: reference correct move type field for tax group

- The `move_type` property is undefined, and we miss the `in_invoice` branch condition.

Fixes #75549

closes odoo/odoo#75551

Signed-off-by: default avatarFlorian Gilbert <FlorianGilbert@users.noreply.github.com>
parent 33ceb303
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ odoo.define('account.tax_group', function (require) {
let creditAmount = 0;
let amount_currency = 0;
if (line_id.data.currency_id) { // If multi currency enable
if (self.record.data.move_type === "in_invoice") {
if (self.record.data.type === "in_invoice") {
amount_currency = line_id.data.amount_currency - deltaAmount;
} else {
amount_currency = line_id.data.amount_currency + deltaAmount;
......@@ -45,7 +45,7 @@ odoo.define('account.tax_group', function (require) {
} else {
let balance = line_id.data.price_subtotal;
balance -= deltaAmount;
if (self.record.data.move_type === "in_invoice") { // For vendor bill
if (self.record.data.type === "in_invoice") { // For vendor bill
if (balance > 0) {
debitAmount = balance;
} else if (balance < 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment