| 1 |
from odoo.addons.account.tests.common import AccountTestInvoicingCommon |
| 2 |
from odoo.addons.point_of_sale.tests.test_generic_localization import TestGenericLocalization |
| 3 |
from odoo.tests import tagged |
| 4 |
|
| 5 |
|
| 6 |
@tagged('post_install', '-at_install', 'post_install_l10n') |
| 7 |
class TestGenericGCC(TestGenericLocalization): |
| 8 |
@classmethod |
| 9 |
@AccountTestInvoicingCommon.setup_country('sa') |
| 10 |
def setUpClass(cls): |
| 11 |
super().setUpClass() |
| 12 |
if cls.env['ir.module.module']._get('l10n_sa_edi').state == 'installed': |
| 13 |
cls.skipTest(cls, "l10n_sa_edi should not be installed") |
| 14 |
cls.main_pos_config.company_id.name = 'Generic GCC' |
| 15 |
cls.company.write({ |
| 16 |
'email': '[email protected]', |
| 17 |
'phone': '+966 51 234 5678', |
| 18 |
'street2': 'Testomania', |
| 19 |
'vat': '311111111111113', |
| 20 |
'state_id': cls.env['res.country.state'].create({ |
| 21 |
'name': 'Riyadh', |
| 22 |
'code': 'RYA', |
| 23 |
'country_id': cls.company.country_id.id |
| 24 |
}), |
| 25 |
'street': 'Al Amir Mohammed Bin Abdul Aziz Street', |
| 26 |
'city': 'المدينة المنورة', |
| 27 |
'zip': '42317', |
| 28 |
}) |