mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[MIG] document_page_group: Migration to 17.0
This commit is contained in:
parent
05ea367f89
commit
0d0d164402
@ -57,6 +57,9 @@ Contributors
|
||||
------------
|
||||
|
||||
- Enric Tobella <etobella@creublanca.es>
|
||||
- [APSL-Nagarro](https://apsl.tech):
|
||||
|
||||
- Antoni Marroig <amarroig@apsl.net>
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
@ -5,7 +5,7 @@
|
||||
"name": "Document Page Group",
|
||||
"summary": """
|
||||
Define access groups on documents""",
|
||||
"version": "16.0.1.0.1",
|
||||
"version": "17.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"author": "Creu Blanca,Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/knowledge",
|
||||
|
@ -1 +1,3 @@
|
||||
- Enric Tobella \<<etobella@creublanca.es>\>
|
||||
- \[APSL-Nagarro\](<https://apsl.tech>):
|
||||
- Antoni Marroig \<<amarroig@apsl.net>\>
|
||||
|
@ -402,6 +402,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Enric Tobella <<a class="reference external" href="mailto:etobella@creublanca.es">etobella@creublanca.es</a>></li>
|
||||
<li>[APSL-Nagarro](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):<ul>
|
||||
<li>Antoni Marroig <<a class="reference external" href="mailto:amarroig@apsl.net">amarroig@apsl.net</a>></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
|
@ -5,10 +5,11 @@ from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestDocumentPageGroup(TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
knowledge_group = self.browse_ref("document_knowledge.group_document_user").id
|
||||
self.user_id = self.env["res.users"].create(
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
knowledge_group = cls.env.ref("document_knowledge.group_document_user").id
|
||||
cls.user_id = cls.env["res.users"].create(
|
||||
{
|
||||
"name": "user",
|
||||
"login": "login",
|
||||
@ -16,16 +17,16 @@ class TestDocumentPageGroup(TransactionCase):
|
||||
"groups_id": [(4, knowledge_group)],
|
||||
}
|
||||
)
|
||||
self.group = self.browse_ref("document_page.group_document_manager")
|
||||
cls.group = cls.env.ref("document_page.group_document_manager")
|
||||
|
||||
self.categ_1 = self.env["document.page"].create(
|
||||
cls.categ_1 = cls.env["document.page"].create(
|
||||
{"name": "Categ 1", "type": "category"}
|
||||
)
|
||||
self.categ_2 = self.env["document.page"].create(
|
||||
{"name": "Categ 2", "type": "category", "parent_id": self.categ_1.id}
|
||||
cls.categ_2 = cls.env["document.page"].create(
|
||||
{"name": "Categ 2", "type": "category", "parent_id": cls.categ_1.id}
|
||||
)
|
||||
self.page = self.env["document.page"].create(
|
||||
{"name": "Page 1", "type": "content", "parent_id": self.categ_1.id}
|
||||
cls.page = cls.env["document.page"].create(
|
||||
{"name": "Page 1", "type": "content", "parent_id": cls.categ_1.id}
|
||||
)
|
||||
|
||||
def test_document_page_group(self):
|
||||
|
Loading…
Reference in New Issue
Block a user