mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-18 11:32:03 +02:00
Initial commit: Technical packages
This commit is contained in:
commit
3473fa71a0
873 changed files with 297766 additions and 0 deletions
4
odoo-bringout-oca-ocb-note/note/tests/__init__.py
Normal file
4
odoo-bringout-oca-ocb-note/note/tests/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import test_note
|
||||
22
odoo-bringout-oca-ocb-note/note/tests/test_note.py
Normal file
22
odoo-bringout-oca-ocb-note/note/tests/test_note.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.addons.base.tests.common import TransactionCaseWithUserDemo
|
||||
|
||||
|
||||
class TestNote(TransactionCaseWithUserDemo):
|
||||
|
||||
def test_bug_lp_1156215(self):
|
||||
""" ensure any users can create new users """
|
||||
demo_user = self.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',
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue