Skip to content

Commit e041f7f

Browse files
committed
Merge PR #3696 into 18.0
Signed-off-by pedrobaeza
2 parents 6f93cbf + 35a049a commit e041f7f

18 files changed

Lines changed: 739 additions & 0 deletions

File tree

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
==============================
2+
Portal Sale Personal Data Only
3+
==============================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:e61f135c57f854a198e8c1d4c6a0329d256a7e6582b0251e88886f04bbd509cf
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
20+
:target: https://github.com/OCA/sale-workflow/tree/18.0/portal_sale_personal_data_only
21+
:alt: OCA/sale-workflow
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-portal_sale_personal_data_only
24+
:alt: Translate me on Weblate
25+
.. |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=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
By default, portal users are allowed to see all the sale orders in which
32+
a member of their organization are followers. That could cause a leaking
33+
of documents between members and departments and of the organization
34+
that should stay private.
35+
36+
This module restricts that behaviour so the portal users only see their
37+
own documents.
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Usage
45+
=====
46+
47+
1. Create some portal users belonging to the same company.
48+
2. Place some orders for several of these users.
49+
3. Log in with each portal user credential.
50+
4. Only the sale orders belonging to the logged in user's partner or his
51+
descendants should be accessible.
52+
5. Invoices associated to a partner's sale order will be visible as
53+
well.
54+
55+
Bug Tracker
56+
===========
57+
58+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/issues>`_.
59+
In case of trouble, please check there if your issue has already been reported.
60+
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:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
62+
63+
Do not contact contributors directly about support or help with technical issues.
64+
65+
Credits
66+
=======
67+
68+
Authors
69+
-------
70+
71+
* Tecnativa
72+
73+
Contributors
74+
------------
75+
76+
- Harald Panten <harald.panten@sygel.es>
77+
- `Tecnativa <https://www.tecnativa.com>`__:
78+
79+
- David Vidal
80+
- Víctor Martínez
81+
- Stefan Ungureanu
82+
83+
- Moaad Bourhim <moaad.bourhim@gmail.com>
84+
- Jairo Llopis (`Moduon <https://www.moduon.team/>`__)
85+
- SodexisTeam <dev@sodexis.com>
86+
87+
Maintainers
88+
-----------
89+
90+
This module is maintained by the OCA.
91+
92+
.. image:: https://odoo-community.org/logo.png
93+
:alt: Odoo Community Association
94+
:target: https://odoo-community.org
95+
96+
OCA, or the Odoo Community Association, is a nonprofit organization whose
97+
mission is to support the collaborative development of Odoo features and
98+
promote its widespread use.
99+
100+
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.
101+
102+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .hooks import post_init_hook, uninstall_hook
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2018-19 Tecnativa S.L. - David Vidal
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "Portal Sale Personal Data Only",
5+
"version": "18.0.1.0.0",
6+
"category": "Sale",
7+
"author": "Tecnativa, Odoo Community Association (OCA)",
8+
"website": "https://github.com/OCA/sale-workflow",
9+
"license": "AGPL-3",
10+
"depends": ["sale", "portal_account_personal_data_only"],
11+
"auto_install": True,
12+
"data": ["security/security.xml"],
13+
"installable": True,
14+
"post_init_hook": "post_init_hook",
15+
"uninstall_hook": "uninstall_hook",
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2019 Tecnativa - David Vidal
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
5+
def post_init_hook(env):
6+
"""Archive the ir.rules we want to override"""
7+
env.ref("sale.sale_order_rule_portal").active = False
8+
env.ref("sale.sale_order_line_rule_portal").active = False
9+
10+
11+
def uninstall_hook(env):
12+
"""Unarchive the overriden ir.rules"""
13+
env.ref("sale.sale_order_rule_portal").active = True
14+
env.ref("sale.sale_order_line_rule_portal").active = True

portal_sale_personal_data_only/i18n/de.po

Whitespace-only changes.

portal_sale_personal_data_only/i18n/es.po

Whitespace-only changes.

portal_sale_personal_data_only/i18n/it.po

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
#
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: Odoo Server 17.0\n"
7+
"Report-Msgid-Bugs-To: \n"
8+
"Last-Translator: \n"
9+
"Language-Team: \n"
10+
"MIME-Version: 1.0\n"
11+
"Content-Type: text/plain; charset=UTF-8\n"
12+
"Content-Transfer-Encoding: \n"
13+
"Plural-Forms: \n"

portal_sale_personal_data_only/i18n/zh_CN.po

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

0 commit comments

Comments
 (0)