Skip to content

Commit d751614

Browse files
[MIG] portal_sale_personal_data_only: Migration to 18.0
1 parent d5e9ad7 commit d751614

File tree

5 files changed

+35
-25
lines changed

5 files changed

+35
-25
lines changed

portal_sale_personal_data_only/README.rst

Lines changed: 11 additions & 7 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
Portal Sale Personal Data Only
37
==============================
@@ -7,23 +11,23 @@ Portal Sale Personal Data Only
711
!! This file is generated by oca-gen-addon-readme !!
812
!! changes will be overwritten. !!
913
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:e61f135c57f854a198e8c1d4c6a0329d256a7e6582b0251e88886f04bbd509cf
14+
!! source digest: sha256:f5654476fb1bc200f5686014d110f6d9f24c4ea06faad54fe5b9ebb5209541bd
1115
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1216
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%2Fsale--workflow-lightgray.png?logo=github
20-
:target: https://github.com/OCA/sale-workflow/tree/17.0/portal_sale_personal_data_only
24+
:target: https://github.com/OCA/sale-workflow/tree/18.0/portal_sale_personal_data_only
2125
:alt: OCA/sale-workflow
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-portal_sale_personal_data_only
27+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-portal_sale_personal_data_only
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/sale-workflow&target_branch=17.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -58,7 +62,7 @@ Bug Tracker
5862
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
5963
In case of trouble, please check there if your issue has already been reported.
6064
If you spotted it first, help us to smash it by providing a detailed and welcomed
61-
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20portal_sale_personal_data_only%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65+
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20portal_sale_personal_data_only%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6266

6367
Do not contact contributors directly about support or help with technical issues.
6468

@@ -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/sale-workflow <https://github.com/OCA/sale-workflow/tree/17.0/portal_sale_personal_data_only>`_ project on GitHub.
104+
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/portal_sale_personal_data_only>`_ project on GitHub.
101105

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

portal_sale_personal_data_only/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "Portal Sale Personal Data Only",
5-
"version": "17.0.1.0.0",
5+
"version": "18.0.1.0.0",
66
"category": "Sale",
77
"author": "Tecnativa, Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/sale-workflow",

portal_sale_personal_data_only/i18n/portal_sale_personal_data_only.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
msgid ""
55
msgstr ""
6-
"Project-Id-Version: Odoo Server 17.0\n"
6+
"Project-Id-Version: Odoo Server 18.0\n"
77
"Report-Msgid-Bugs-To: \n"
88
"Last-Translator: \n"
99
"Language-Team: \n"

portal_sale_personal_data_only/static/description/index.html

Lines changed: 19 additions & 13 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>Portal Sale Personal Data Only</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="portal-sale-personal-data-only">
364-
<h1 class="title">Portal Sale Personal Data Only</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="portal-sale-personal-data-only">
370+
<h1>Portal Sale Personal Data Only</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:e61f135c57f854a198e8c1d4c6a0329d256a7e6582b0251e88886f04bbd509cf
375+
!! source digest: sha256:f5654476fb1bc200f5686014d110f6d9f24c4ea06faad54fe5b9ebb5209541bd
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/sale-workflow/tree/17.0/portal_sale_personal_data_only"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-portal_sale_personal_data_only"><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/sale-workflow&amp;target_branch=17.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/sale-workflow/tree/18.0/portal_sale_personal_data_only"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-portal_sale_personal_data_only"><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/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>By default, portal users are allowed to see all the sale orders in which
374379
a member of their organization are followers. That could cause a leaking
375380
of documents between members and departments and of the organization
@@ -390,7 +395,7 @@ <h1 class="title">Portal Sale Personal Data Only</h1>
390395
</ul>
391396
</div>
392397
<div class="section" id="usage">
393-
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
398+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
394399
<ol class="arabic simple">
395400
<li>Create some portal users belonging to the same company.</li>
396401
<li>Place some orders for several of these users.</li>
@@ -402,23 +407,23 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
402407
</ol>
403408
</div>
404409
<div class="section" id="bug-tracker">
405-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
410+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
406411
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
407412
In case of trouble, please check there if your issue has already been reported.
408413
If you spotted it first, help us to smash it by providing a detailed and welcomed
409-
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20portal_sale_personal_data_only%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
414+
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20portal_sale_personal_data_only%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
410415
<p>Do not contact contributors directly about support or help with technical issues.</p>
411416
</div>
412417
<div class="section" id="credits">
413-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
418+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
414419
<div class="section" id="authors">
415-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
420+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
416421
<ul class="simple">
417422
<li>Tecnativa</li>
418423
</ul>
419424
</div>
420425
<div class="section" id="contributors">
421-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
426+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
422427
<ul class="simple">
423428
<li>Harald Panten &lt;<a class="reference external" href="mailto:harald.panten&#64;sygel.es">harald.panten&#64;sygel.es</a>&gt;</li>
424429
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
@@ -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/sale-workflow/tree/17.0/portal_sale_personal_data_only">OCA/sale-workflow</a> project on GitHub.</p>
449+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/portal_sale_personal_data_only">OCA/sale-workflow</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>

portal_sale_personal_data_only/tests/test_partner_access.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2022 Moduon
33
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
44

5-
from odoo.tests.common import Form, tagged
5+
from odoo.tests import Form, tagged
66

77
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
88

@@ -34,8 +34,8 @@ def setUpClass(cls):
3434
def _create_user(self, letter):
3535
return self.env["res.users"].create(
3636
{
37-
"name": "User %s" % letter,
38-
"login": "user_%s" % letter,
37+
"name": f"User {letter}",
38+
"login": f"user_{letter}",
3939
"groups_id": [(6, 0, [self.group_portal.id])],
4040
}
4141
)

0 commit comments

Comments
 (0)