Debian Codegraph @

addons/point_of_sale/tests/test_generic_localization.py

raw
1 from odoo.addons.point_of_sale.tests.test_frontend import TestPointOfSaleHttpCommon
2 from odoo.tests import tagged
3 from odoo.fields import Command
4
5
6 @tagged('post_install', '-at_install', 'post_install_l10n')
7 class TestGenericLocalization(TestPointOfSaleHttpCommon):
8 allow_inherited_tests_method = True
9
10 @classmethod
11 def setUpClass(cls):
12 super().setUpClass()
13 cls.partner_a.name = "AAAA Generic Partner"
14 cls.partner_a.vat = "32345678"
15 cls.whiteboard_pen.write({
16 'standard_price': 10.0,
17 'taxes_id': [Command.link(cls.tax_sale_a.id)]
18 })
19
20 cls.wall_shelf.write({
21 'standard_price': 10.0,
22 'taxes_id': [Command.link(cls.tax_sale_a.id)]
23 })
24
25 def test_generic_localization(self):
26 self.main_pos_config.open_ui()
27 url = "/pos/ui?config_id=%d" % self.main_pos_config.id
28 url += "&company_name=%s" % self.main_pos_config.company_id.name
29 self.start_tour(url, "generic_localization_tour", login="accountman")