mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[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:
committed by
AlexPForgeFlow
parent
2e98a1c3f7
commit
95147bc76b
@@ -17,4 +17,5 @@
|
|||||||
"maintainers": ["ChisOForgeFlow"],
|
"maintainers": ["ChisOForgeFlow"],
|
||||||
"development_status": "Beta",
|
"development_status": "Beta",
|
||||||
"post_init_hook": "post_init_hook",
|
"post_init_hook": "post_init_hook",
|
||||||
|
"auto_install": True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,14 +82,14 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase):
|
|||||||
return user.id
|
return user.id
|
||||||
|
|
||||||
@classmethod
|
@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(
|
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
|
return acc_type
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _create_account(cls, acc_type, name, code, company):
|
def _create_account(cls, acc_type, name, code, company, reconcile=False):
|
||||||
"""Create an account."""
|
"""Create an account."""
|
||||||
account = cls.account_model.create(
|
account = cls.account_model.create(
|
||||||
{
|
{
|
||||||
@@ -97,6 +97,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase):
|
|||||||
"code": code,
|
"code": code,
|
||||||
"user_type_id": acc_type.id,
|
"user_type_id": acc_type.id,
|
||||||
"company_id": company.id,
|
"company_id": company.id,
|
||||||
|
"reconcile": reconcile,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
return account
|
return account
|
||||||
|
|||||||
Reference in New Issue
Block a user