From 95147bc76b3fc518d6a711b3a6cb402b53d53f66 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Fri, 4 Mar 2022 10:56:07 +0100 Subject: [PATCH] [FIX] rma: rma_custmer_user has no write permissions in partner, so compute method fails. [IMP] rma: use rma user in tests [FIX] rma_account: move_line_id field string [IMP] rma, rma_account, rma_sale, rma_purchase: tests for stock valuation [FIX] account_move_line_rma_order_line: minor lint, make auto-install [IMP] rma_account_unreconciled: use manager user in test --- account_move_line_rma_order_line/__manifest__.py | 1 + .../tests/test_account_move_line_rma_order_line.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/account_move_line_rma_order_line/__manifest__.py b/account_move_line_rma_order_line/__manifest__.py index 285f3c1d..77666408 100644 --- a/account_move_line_rma_order_line/__manifest__.py +++ b/account_move_line_rma_order_line/__manifest__.py @@ -17,4 +17,5 @@ "maintainers": ["ChisOForgeFlow"], "development_status": "Beta", "post_init_hook": "post_init_hook", + "auto_install": True, } diff --git a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py index 8907d16d..7f564cf5 100644 --- a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py +++ b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py @@ -82,14 +82,14 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): return user.id @classmethod - def _create_account_type(cls, name, atype, internal_group): + def _create_account_type(cls, name, account_type, internal_group): acc_type = cls.acc_type_model.create( - {"name": name, "type": atype, "internal_group": internal_group} + {"name": name, "type": account_type, "internal_group": internal_group} ) return acc_type @classmethod - def _create_account(cls, acc_type, name, code, company): + def _create_account(cls, acc_type, name, code, company, reconcile=False): """Create an account.""" account = cls.account_model.create( { @@ -97,6 +97,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): "code": code, "user_type_id": acc_type.id, "company_id": company.id, + "reconcile": reconcile, } ) return account