http_routing/tests/test_res_lang.py

15 lines
461 B
Python
Raw Permalink Normal View History

2024-05-03 12:59:22 +03:00
# -*- coding: utf-8 -*-
2024-05-21 15:09:17 +03:00
# Part of Talisman . See LICENSE file for full copyright and licensing details.
2024-05-03 12:59:22 +03:00
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()