Skip to content

Commit

Permalink
[MIG] document_page_group: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peluko00 committed Jun 18, 2024
1 parent 05ea367 commit 0d0d164
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
3 changes: 3 additions & 0 deletions document_page_group/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Contributors
------------

- Enric Tobella <etobella@creublanca.es>
- [APSL-Nagarro](https://apsl.tech):

- Antoni Marroig <amarroig@apsl.net>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion document_page_group/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions document_page_group/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- Enric Tobella \<<etobella@creublanca.es>\>
- \[APSL-Nagarro\](<https://apsl.tech>):
- Antoni Marroig \<<amarroig@apsl.net>\>
4 changes: 4 additions & 0 deletions document_page_group/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li>
<li>[APSL-Nagarro](<a class="reference external" href="https://apsl.tech">https://apsl.tech</a>):<ul>
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
21 changes: 11 additions & 10 deletions document_page_group/tests/test_document_page_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@


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",
"email": "email",
"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):
Expand Down

0 comments on commit 0d0d164

Please sign in to comment.