http_routing/tests/test_res_lang.py
Старков Евгений Федорович ffa1c89842 odoo replaced to talisman
2024-05-21 15:09:17 +03:00

15 lines
461 B
Python

# -*- coding: utf-8 -*-
# Part of Talisman . See LICENSE file for full copyright and licensing details.
from odoo.tests import TransactionCase, tagged, Form
@tagged('-at_install', 'post_install')
class TestFormCreate(TransactionCase):
def test_create_res_lang(self):
lang_form = Form(self.env['res.lang'])
lang_form.url_code = 'LANG'
lang_form.name = 'a lang name'
lang_form.code = 'a lang code'
lang_form.save()