Skip to content

Commit 5569db8

Browse files
committed
[MIG] document_page_access_group: Migration to 16.0
1 parent 9546601 commit 5569db8

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

document_page_access_group/README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Document Page Access Group
1616
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
19-
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
20-
:target: https://github.com/OCA/knowledge/tree/15.0/document_page_access_group
21-
:alt: OCA/knowledge
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdocument_knowledge-lightgray.png?logo=github
20+
:target: https://github.com/OCA/document_knowledge/tree/16.0/document_page_access_group
21+
:alt: OCA/document_knowledge
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/knowledge-15-0/knowledge-15-0-document_page_access_group
23+
:target: https://translation.odoo-community.org/projects/document_knowledge-15-0/document_knowledge-15-0-document_page_access_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=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/document_knowledge&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -43,7 +43,7 @@ To select the users that have access to a given document page
4343
you need to open a document, go to the 'Security' tab
4444
and select which groups will have access.
4545

46-
Only users that belong to the 'Knowledge / Manager' group can
46+
Only users that belong to the 'document_knowledge / Manager' group can
4747
manage access groups to documents.
4848

4949
If no groups are selected in a document, all users that can access
@@ -52,10 +52,10 @@ document pages can access this document.
5252
Bug Tracker
5353
===========
5454

55-
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
55+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/document_knowledge/issues>`_.
5656
In case of trouble, please check there if your issue has already been reported.
5757
If you spotted it first, help us to smash it by providing a detailed and welcomed
58-
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
`feedback <https://github.com/OCA/document_knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5959

6060
Do not contact contributors directly about support or help with technical issues.
6161

@@ -86,6 +86,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8686
mission is to support the collaborative development of Odoo features and
8787
promote its widespread use.
8888

89-
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/15.0/document_page_access_group>`_ project on GitHub.
89+
This module is part of the `OCA/document_knowledge <https://github.com/OCA/document_knowledge/tree/16.0/document_page_access_group>`_ project on GitHub.
9090

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

document_page_access_group/__manifest__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
{
55
"name": "Document Page Access Group",
66
"summary": "Choose groups to access document pages",
7-
"version": "15.0.1.0.0",
8-
"category": "Knowledge",
9-
"website": "https://github.com/OCA/knowledge",
7+
"version": "16.0.1.0.0",
8+
"category": "document_knowledge",
9+
"website": "https://github.com/OCA/document_knowledge",
1010
"author": "Sygel, Odoo Community Association (OCA)",
1111
"license": "AGPL-3",
1212
"application": False,
1313
"installable": True,
1414
"depends": [
1515
"document_page",
16-
"knowledge",
16+
"document_knowledge",
1717
],
1818
"data": ["views/document_page.xml", "security/security.xml"],
1919
}

document_page_access_group/readme/USAGE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ To select the users that have access to a given document page
22
you need to open a document, go to the 'Security' tab
33
and select which groups will have access.
44

5-
Only users that belong to the 'Knowledge / Manager' group can
5+
Only users that belong to the 'document_knowledge / Manager' group can
66
manage access groups to documents.
77

88
If no groups are selected in a document, all users that can access

document_page_access_group/security/security.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<field name="name">Document Page Access</field>
77
<field name="model_id" ref="model_document_page" />
88
<field eval="False" name="global" />
9-
<field name="groups" eval="[(4, ref('knowledge.group_document_user'))]" />
9+
<field name="groups" eval="[(4, ref('document_knowledge.group_document_user'))]" />
1010
<field
1111
name="domain_force"
1212
>['|', ('groups_id', '=', False), ('groups_id', 'in', [g.id for g in user.groups_id])]</field>

document_page_access_group/static/description/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ <h1 class="title">Document Page Access Group</h1>
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370370
!! source digest: sha256:c21399e1330aae842cb6046755b0816a2ef30f70268aa70cdf38441c5fded1b2
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/15.0/document_page_access_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-15-0/knowledge-15-0-document_page_access_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=15.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/document_knowledge/tree/16.0/document_page_access_group"><img alt="OCA/document_knowledge" src="https://img.shields.io/badge/github-OCA%2Fdocument_knowledge-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/document_knowledge-15-0/document_knowledge-15-0-document_page_access_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/document_knowledge&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module allows to select which users groups have access to the
374374
document pages.</p>
375375
<p><strong>Table of contents</strong></p>
@@ -390,17 +390,17 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
390390
<p>To select the users that have access to a given document page
391391
you need to open a document, go to the ‘Security’ tab
392392
and select which groups will have access.</p>
393-
<p>Only users that belong to the ‘Knowledge / Manager’ group can
393+
<p>Only users that belong to the ‘document_knowledge / Manager’ group can
394394
manage access groups to documents.</p>
395395
<p>If no groups are selected in a document, all users that can access
396396
document pages can access this document.</p>
397397
</div>
398398
<div class="section" id="bug-tracker">
399399
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
400-
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
400+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/document_knowledge/issues">GitHub Issues</a>.
401401
In case of trouble, please check there if your issue has already been reported.
402402
If you spotted it first, help us to smash it by providing a detailed and welcomed
403-
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
403+
<a class="reference external" href="https://github.com/OCA/document_knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
404404
<p>Do not contact contributors directly about support or help with technical issues.</p>
405405
</div>
406406
<div class="section" id="credits">
@@ -425,7 +425,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
425425
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
426426
mission is to support the collaborative development of Odoo features and
427427
promote its widespread use.</p>
428-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/15.0/document_page_access_group">OCA/knowledge</a> project on GitHub.</p>
428+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/document_knowledge/tree/16.0/document_page_access_group">OCA/document_knowledge</a> project on GitHub.</p>
429429
<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>
430430
</div>
431431
</div>

document_page_access_group/tests/test_document_page_access_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class TestDocumentPageAccessGroup(common.TransactionCase):
77
def setUp(self):
88
super(TestDocumentPageAccessGroup, self).setUp()
9-
self.document_user_group = self.browse_ref("knowledge.group_document_user").id
9+
self.document_user_group = self.browse_ref("document_knowledge.group_document_user").id
1010
self.test_group = self.browse_ref("base.group_erp_manager").id
1111
self.user_id = self.env["res.users"].create(
1212
{

0 commit comments

Comments
 (0)