Skip to content
Snippets Groups Projects
Commit c6127aee authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] purchase_mrp: set anglo_saxon flag in the test

If the module `l10n_de` is installed, the test
`test_kit_anglo_saxo_price_diff` will failed. This is because the flag
`use_anglo_saxon` is not enabled by default in the chart template of
German companies. Therefore, when posting the invoice, we skip the
anglo-saxon lines generation:
https://github.com/odoo/odoo/blob/f3ae759f2d54829f91badd32cacf70e8a8211288/addons/purchase_stock/models/account_invoice.py#L40-L42


This explains why the test fails.

OPW-2843861

closes odoo/odoo#94466

X-original-commit: 5af6d037
Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
parent f18d9969
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,8 @@ class TestAngloSaxonValuationPurchaseMRP(SavepointCase):
'property_stock_valuation_account_id': cls.stock_valuation_account.id,
})
cls.env.company.anglo_saxon_accounting = True
def test_kit_anglo_saxo_price_diff(self):
"""
Suppose an automated-AVCO configuration and a Price Difference Account defined on
......
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