[FIX] include anglo-saxon price unit calculation in refunds.

Otherwise the anglo saxon entries won't be correct.
For example, the Interim (Delivered) account should balance
after receiving and triggering a refund on a customer rma.
This commit is contained in:
Jordi Ballester Alomar
2022-11-21 15:13:06 +01:00
committed by AlexPForgeFlow
parent 95147bc76b
commit b11832004a

View File

@@ -42,8 +42,8 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase):
# Create account for Cost of Goods Sold # Create account for Cost of Goods Sold
acc_type = cls._create_account_type("expense", "other", "expense") acc_type = cls._create_account_type("expense", "other", "expense")
name = "Cost of Goods Sold" name = "Goods Delivered Not Invoiced"
code = "cogs" code = "gdni"
cls.account_cogs = cls._create_account(acc_type, name, code, cls.company) cls.account_cogs = cls._create_account(acc_type, name, code, cls.company)
# Create account for Inventory # Create account for Inventory
acc_type = cls._create_account_type("asset", "other", "asset") acc_type = cls._create_account_type("asset", "other", "asset")