[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
This commit is contained in:
AaronHForgeFlow
2022-03-04 10:56:07 +01:00
committed by AlexPForgeFlow
parent 2e98a1c3f7
commit 95147bc76b
2 changed files with 5 additions and 3 deletions

View File

@@ -17,4 +17,5 @@
"maintainers": ["ChisOForgeFlow"],
"development_status": "Beta",
"post_init_hook": "post_init_hook",
"auto_install": True,
}

View File

@@ -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