Files
odoo_source/addons/stock/tests/test_report_tours.py
T
Martin Trigaux d823b90220 [FIX] base: add fake fields
Values for "context" and "data" key were injected into the action
dictionnary by report_action to be used by the /report controller
later

Courtesy of William Henrotin (whe) for the test

X-original-commit: 4d43a301fd10cfeb498d9bf6b614779e26e12d16
2020-09-04 16:21:41 +00:00

20 lines
604 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo
from odoo.tests import Form, HttpCase, tagged
@tagged('-at_install', 'post_install')
class TestStockReportTour(HttpCase):
def setUp(self):
super().setUp()
def _get_report_url(self):
return '/web#&model=product.template&action=stock.product_template_action_product'
def test_stock_route_diagram_report(self):
""" Open the route diagram report."""
url = self._get_report_url()
self.start_tour(url, 'test_stock_route_diagram_report', login='admin', timeout=180)