Skip to content

Commit 80fcbfc

Browse files
committedFeb 25, 2025·
Merge PR #994 into 16.0
Signed-off-by pedrobaeza
2 parents 950830a + c7a466a commit 80fcbfc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎delivery_auto_refresh/tests/test_delivery_auto_refresh.py

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ class TestDeliveryAutoRefresh(common.TransactionCase):
1717
def setUpClass(cls):
1818
super().setUpClass()
1919
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
20+
if not cls.env.company.chart_template_id:
21+
# Load a CoA if there's none in current company
22+
coa = cls.env.ref("l10n_generic_coa.configurable_chart_template", False)
23+
if not coa:
24+
# Load the first available CoA
25+
coa = cls.env["account.chart.template"].search(
26+
[("visible", "=", True)], limit=1
27+
)
28+
coa.try_loading(company=cls.env.company, install_demo=False)
2029
cls.env.user.write(
2130
{
2231
"groups_id": [

0 commit comments

Comments
 (0)
Please sign in to comment.