flectra/addons/note/tests/test_note.py

22 lines
608 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2018-01-16 11:34:37 +01:00
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
2018-01-16 11:34:37 +01:00
from flectra.tests import common
class TestNote(common.TransactionCase):
def test_bug_lp_1156215(self):
""" ensure any users can create new users """
demo_user = self.env.ref('base.user_demo')
group_erp = self.env.ref('base.group_erp_manager')
demo_user.write({
'groups_id': [(4, group_erp.id)],
})
# must not fail
demo_user.create({
'name': 'test bug lp:1156215',
'login': 'lp_1156215',
})