Skip to content

Commit 2b3671b

Browse files
BhaveshHeliconiahspl-parbo
authored andcommitted
[MIG] document_page_access_group: Migration to 19.0
1 parent 53a8663 commit 2b3671b

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

document_page_access_group/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
==========================
26
Document Page Access Group
37
==========================
@@ -13,17 +17,17 @@ Document Page Access Group
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Beta
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github
20-
:target: https://github.com/OCA/knowledge/tree/18.0/document_page_access_group
24+
:target: https://github.com/OCA/knowledge/tree/19.0/document_page_access_group
2125
:alt: OCA/knowledge
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page_access_group
27+
:target: https://translation.odoo-community.org/projects/knowledge-19-0/knowledge-19-0-document_page_access_group
2428
:alt: Translate me on Weblate
2529
.. |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=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=19.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -53,7 +57,7 @@ Bug Tracker
5357
Bugs are tracked on `GitHub Issues <https://github.com/OCA/knowledge/issues>`_.
5458
In case of trouble, please check there if your issue has already been reported.
5559
If you spotted it first, help us to smash it by providing a detailed and welcomed
56-
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
60+
`feedback <https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5761

5862
Do not contact contributors directly about support or help with technical issues.
5963

@@ -97,6 +101,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
97101
mission is to support the collaborative development of Odoo features and
98102
promote its widespread use.
99103

100-
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/18.0/document_page_access_group>`_ project on GitHub.
104+
This module is part of the `OCA/knowledge <https://github.com/OCA/knowledge/tree/19.0/document_page_access_group>`_ project on GitHub.
101105

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

document_page_access_group/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Document Page Access Group",
66
"summary": "Choose groups to access document pages",
7-
"version": "18.0.1.0.1",
7+
"version": "19.0.1.0.0",
88
"category": "document_knowledge",
99
"website": "https://github.com/OCA/knowledge",
1010
"author": "Sygel, Creu Blanca, Odoo Community Association (OCA)",

document_page_access_group/security/security.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/>
1313
<field
1414
name="domain_force"
15-
>['|', ('groups_id', 'in', [g.id for g in user.groups_id]), '|', ('user_ids', 'in', [user.id]), '&amp;', ('groups_id', '=', False), ('user_ids', '=', False)]</field>
15+
>['|', ('groups_id', 'in', [g.id for g in user.group_ids]), '|', ('user_ids', 'in', [user.id]), '&amp;', ('groups_id', '=', False), ('user_ids', '=', False)]</field>
1616
</record>
1717
<record id="document_page_rule_full_access" model="ir.rule">
1818
<field name="name">Document Page Full Access</field>

document_page_access_group/static/description/index.html

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Document Page Access Group</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="document-page-access-group">
364-
<h1 class="title">Document Page Access Group</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="document-page-access-group">
370+
<h1>Document Page Access Group</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:e8eb8a033737ed252b5c1198683cc7df9f0773817836d80e33e7b76058ba44de
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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_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-18-0/knowledge-18-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=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/knowledge/tree/19.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-19-0/knowledge-19-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=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>This module allows to select which users groups have access to the
374379
document pages.</p>
375380
<p><strong>Table of contents</strong></p>
@@ -386,7 +391,7 @@ <h1 class="title">Document Page Access Group</h1>
386391
</ul>
387392
</div>
388393
<div class="section" id="usage">
389-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
394+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
390395
<p>To select the users that have access to a given document page you need
391396
to open a document, go to the ‘Security’ tab and you have 3 options:</p>
392397
<ul class="simple">
@@ -397,24 +402,24 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
397402
</ul>
398403
</div>
399404
<div class="section" id="bug-tracker">
400-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
405+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
401406
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/knowledge/issues">GitHub Issues</a>.
402407
In case of trouble, please check there if your issue has already been reported.
403408
If you spotted it first, help us to smash it by providing a detailed and welcomed
404-
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409+
<a class="reference external" href="https://github.com/OCA/knowledge/issues/new?body=module:%20document_page_access_group%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
405410
<p>Do not contact contributors directly about support or help with technical issues.</p>
406411
</div>
407412
<div class="section" id="credits">
408-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
413+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
409414
<div class="section" id="authors">
410-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
415+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
411416
<ul class="simple">
412417
<li>Sygel</li>
413418
<li>Creu Blanca</li>
414419
</ul>
415420
</div>
416421
<div class="section" id="contributors">
417-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
422+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
418423
<ul class="simple">
419424
<li>Manuel Regidor &lt;<a class="reference external" href="mailto:manuel.regidor&#64;sygel.es">manuel.regidor&#64;sygel.es</a>&gt;</li>
420425
<li>Alberto Martínez &lt;<a class="reference external" href="mailto:alberto.martinez&#64;sygel.es">alberto.martinez&#64;sygel.es</a>&gt;</li>
@@ -433,18 +438,19 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
433438
</ul>
434439
</div>
435440
<div class="section" id="maintainers">
436-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
441+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
437442
<p>This module is maintained by the OCA.</p>
438443
<a class="reference external image-reference" href="https://odoo-community.org">
439444
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
440445
</a>
441446
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
442447
mission is to support the collaborative development of Odoo features and
443448
promote its widespread use.</p>
444-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/18.0/document_page_access_group">OCA/knowledge</a> project on GitHub.</p>
449+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/knowledge/tree/19.0/document_page_access_group">OCA/knowledge</a> project on GitHub.</p>
445450
<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>
446451
</div>
447452
</div>
448453
</div>
454+
</div>
449455
</body>
450456
</html>

document_page_access_group/tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def setUpClass(cls):
1818
login="test-manager-user",
1919
groups="document_knowledge.group_document_user",
2020
)
21-
cls.manager_user.write({"groups_id": [Command.link(cls.group.id)]})
21+
cls.manager_user.write({"group_ids": [Command.link(cls.group.id)]})
2222
cls.public_page = cls.env["document.page"].create(
2323
{"name": "Public Page", "type": "content"}
2424
)

0 commit comments

Comments
 (0)