http_routing/tests/test_res_lang.py
Данил Воробьев 6355581bf6 initial commit
2024-05-03 09:59:22 +00:00

15 lines
455 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. 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()