Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
from . import test_web_quick_start_screen
from .test_web_quick_start_screen import TestQuickStartActionsCommon

View File

@@ -0,0 +1,26 @@
# Copyright 2024 Tecnativa - David Vidal
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests import TransactionCase
class TestQuickStartActionsCommon(TransactionCase):
def _test_screen_action(self, screen_action):
"""Basic test helper. For a more complete one we'd need a tour"""
action = screen_action.run_action()
if action["type"] == "ir.actions.server":
action = (
self.env.ref(action["xml_id"])
.with_context(**screen_action._get_extra_context())
.run()
)
return action
class TestQuickStartActions(TestQuickStartActionsCommon):
def test_demo_screen_actions(self):
"""Let's test every action screen in our demo data"""
demo_start_screen = self.env.ref(
"web_quick_start_screen.quick_start_screen_demo"
)
for action in demo_start_screen.action_ids:
self._test_screen_action(action)