Skip to content

Commit 660788b

Browse files
[MIG] document_page_group: Migration to 18.0
1 parent 767bb91 commit 660788b

File tree

5 files changed

+35
-20
lines changed

5 files changed

+35
-20
lines changed

document_page_group/README.rst

+12-8
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Document Page Group
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
20-
:target: https://github.com/OCA/knowledge/tree/17.0/document_page_group
20+
:target: https://github.com/OCA/knowledge/tree/18.0/document_page_group
2121
:alt: OCA/knowledge
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page_group
23+
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_group
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=17.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -41,7 +41,7 @@ Bug Tracker
4141
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
4242
In case of trouble, please check there if your issue has already been reported.
4343
If you spotted it first, help us to smash it by providing a detailed and welcomed
44-
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_group%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_group%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4545

4646
Do not contact contributors directly about support or help with technical issues.
4747

@@ -56,10 +56,14 @@ Authors
5656
Contributors
5757
------------
5858

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

62-
- Antoni Marroig <amarroig@apsl.net>
62+
- Antoni Marroig <amarroig@apsl.net>
63+
64+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
65+
66+
- Bhavesh Heliconia
6367

6468
Maintainers
6569
-----------
@@ -74,6 +78,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
7478
mission is to support the collaborative development of Odoo features and
7579
promote its widespread use.
7680

77-
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/17.0/document_page_group>`_ project on GitHub.
81+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/document_page_group>`_ project on GitHub.
7882

7983
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

document_page_group/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Document Page Group",
66
"summary": """
77
Define access groups on documents""",
8-
"version": "17.0.1.0.0",
8+
"version": "18.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Creu Blanca,Odoo Community Association (OCA)",
1111
"website": "https://github.com/OCA/knowledge",
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
- Enric Tobella \<<etobella@creublanca.es>\>
22
- \[APSL-Nagarro\](<https://apsl.tech>):
33
- Antoni Marroig \<<amarroig@apsl.net>\>
4+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
5+
- Bhavesh Heliconia

document_page_group/static/description/index.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger (goodger@python.org)
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -368,7 +369,7 @@ <h1 class="title">Document Page Group</h1>
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369370
!! source digest: sha256:f45c4b222f68eeb262b2d35167de6f02623d4b6119dcdaa58f979270cd5cb849
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/17.0/document_page_group"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page_group"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/18.0/document_page_group"><img alt="OCA/knowledge" src="https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_group"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/knowledge&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372373
<p>This module allows to define groups on a category.</p>
373374
<p><strong>Table of contents</strong></p>
374375
<div class="contents local topic" id="contents">
@@ -387,7 +388,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
387388
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
388389
In case of trouble, please check there if your issue has already been reported.
389390
If you spotted it first, help us to smash it by providing a detailed and welcomed
390-
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_group%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391+
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_group%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
391392
<p>Do not contact contributors directly about support or help with technical issues.</p>
392393
</div>
393394
<div class="section" id="credits">
@@ -406,16 +407,22 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
406407
<li>Antoni Marroig &lt;<a class="reference external" href="mailto:amarroig&#64;apsl.net">amarroig&#64;apsl.net</a>&gt;</li>
407408
</ul>
408409
</li>
410+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
411+
<li>Bhavesh Heliconia</li>
412+
</ul>
413+
</li>
409414
</ul>
410415
</div>
411416
<div class="section" id="maintainers">
412417
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
413418
<p>This module is maintained by the OCA.</p>
414-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
419+
<a class="reference external image-reference" href="https://odoo-community.org">
420+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
421+
</a>
415422
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
416423
mission is to support the collaborative development of Odoo features and
417424
promote its widespread use.</p>
418-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/17.0/document_page_group">OCA/knowledge</a> project on GitHub.</p>
425+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/18.0/document_page_group">OCA/knowledge</a> project on GitHub.</p>
419426
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
420427
</div>
421428
</div>

document_page_group/tests/test_document_page_group.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Copyright 2020 Creu Blanca
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33

4-
from odoo.tests.common import TransactionCase
4+
from odoo import Command
55

6+
from odoo.addons.base.tests.common import BaseCommon
67

7-
class TestDocumentPageGroup(TransactionCase):
8+
9+
class TestDocumentPageGroup(BaseCommon):
810
@classmethod
911
def setUpClass(cls):
1012
super().setUpClass()
@@ -14,7 +16,7 @@ def setUpClass(cls):
1416
"name": "user",
1517
"login": "login",
1618
"email": "email",
17-
"groups_id": [(4, knowledge_group)],
19+
"groups_id": [Command.link(knowledge_group)],
1820
}
1921
)
2022
cls.group = cls.env.ref("document_page.group_document_manager")
@@ -37,7 +39,7 @@ def test_document_page_group(self):
3739
)
3840
self.assertIn(self.page.id, pages.ids)
3941

40-
self.categ_1.write({"direct_group_ids": [(4, self.group.id)]})
42+
self.categ_1.write({"direct_group_ids": [Command.link(self.group.id)]})
4143
self.assertIn(self.group.id, self.categ_2.group_ids.ids)
4244

4345
pages = (

0 commit comments

Comments
 (0)