odoo-addon-rma 17.0.2.2.1__py3-none-any.whl → 18.0.1.0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/rma/README.rst +6 -6
- odoo/addons/rma/__manifest__.py +1 -1
- odoo/addons/rma/controllers/main.py +4 -7
- odoo/addons/rma/data/mail_data.xml +12 -13
- odoo/addons/rma/i18n/de.po +134 -350
- odoo/addons/rma/i18n/de_AT.po +65 -97
- odoo/addons/rma/i18n/es.po +212 -349
- odoo/addons/rma/i18n/fr.po +300 -222
- odoo/addons/rma/i18n/it.po +282 -454
- odoo/addons/rma/i18n/nl.po +65 -97
- odoo/addons/rma/i18n/pt.po +66 -242
- odoo/addons/rma/i18n/pt_BR.po +65 -239
- odoo/addons/rma/i18n/rma.pot +65 -96
- odoo/addons/rma/i18n/ro.po +79 -220
- odoo/addons/rma/i18n/zh_CN.po +65 -97
- odoo/addons/rma/models/account_move.py +2 -2
- odoo/addons/rma/models/res_company.py +2 -2
- odoo/addons/rma/models/res_config_settings.py +3 -0
- odoo/addons/rma/models/rma.py +40 -39
- odoo/addons/rma/models/rma_team.py +12 -13
- odoo/addons/rma/models/stock_move.py +2 -2
- odoo/addons/rma/models/stock_picking.py +0 -12
- odoo/addons/rma/models/stock_warehouse.py +20 -14
- odoo/addons/rma/security/rma_security.xml +3 -9
- odoo/addons/rma/static/description/index.html +4 -4
- odoo/addons/rma/tests/test_rma.py +58 -16
- odoo/addons/rma/views/report_rma.xml +9 -3
- odoo/addons/rma/views/res_config_settings_views.xml +8 -11
- odoo/addons/rma/views/rma_finalization_views.xml +2 -2
- odoo/addons/rma/views/rma_portal_templates.xml +303 -361
- odoo/addons/rma/views/rma_tag_views.xml +2 -2
- odoo/addons/rma/views/rma_team_views.xml +35 -36
- odoo/addons/rma/views/rma_views.xml +7 -29
- odoo/addons/rma/wizard/rma_delivery.py +2 -2
- odoo/addons/rma/wizard/rma_delivery_views.xml +0 -3
- odoo/addons/rma/wizard/rma_split.py +2 -2
- odoo/addons/rma/wizard/rma_split_views.xml +0 -1
- odoo/addons/rma/wizard/stock_picking_return.py +12 -42
- odoo/addons/rma/wizard/stock_picking_return_views.xml +1 -5
- {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.3.dist-info}/METADATA +9 -9
- odoo_addon_rma-18.0.1.0.0.3.dist-info/RECORD +70 -0
- odoo/addons/rma/migrations/17.0.1.2.0/post-migration.py +0 -17
- odoo_addon_rma-17.0.2.2.1.dist-info/RECORD +0 -71
- {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.3.dist-info}/WHEEL +0 -0
- {odoo_addon_rma-17.0.2.2.1.dist-info → odoo_addon_rma-18.0.1.0.0.3.dist-info}/top_level.txt +0 -0
odoo/addons/rma/README.rst
CHANGED
@@ -7,7 +7,7 @@ Return Merchandise Authorization Management
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:6ea461b6c1041acb71b7933199e58032ecb6d1fb5cb65544d84ec0e1758065d0
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
@@ -17,13 +17,13 @@ Return Merchandise Authorization Management
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
18
18
|
:alt: License: AGPL-3
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github
|
20
|
-
:target: https://github.com/OCA/rma/tree/
|
20
|
+
:target: https://github.com/OCA/rma/tree/18.0/rma
|
21
21
|
:alt: OCA/rma
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
23
|
-
:target: https://translation.odoo-community.org/projects/rma-
|
23
|
+
:target: https://translation.odoo-community.org/projects/rma-18-0/rma-18-0-rma
|
24
24
|
:alt: Translate me on Weblate
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/rma&target_branch=
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/rma&target_branch=18.0
|
27
27
|
:alt: Try me on Runboat
|
28
28
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
@@ -150,7 +150,7 @@ Bug Tracker
|
|
150
150
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_.
|
151
151
|
In case of trouble, please check there if your issue has already been reported.
|
152
152
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
153
|
-
`feedback <https://github.com/OCA/rma/issues/new?body=module:%20rma%0Aversion:%
|
153
|
+
`feedback <https://github.com/OCA/rma/issues/new?body=module:%20rma%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
154
154
|
|
155
155
|
Do not contact contributors directly about support or help with technical issues.
|
156
156
|
|
@@ -206,6 +206,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
|
206
206
|
|
207
207
|
|maintainer-pedrobaeza| |maintainer-chienandalu|
|
208
208
|
|
209
|
-
This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/
|
209
|
+
This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/18.0/rma>`_ project on GitHub.
|
210
210
|
|
211
211
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
odoo/addons/rma/__manifest__.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
{
|
6
6
|
"name": "Return Merchandise Authorization Management",
|
7
7
|
"summary": "Return Merchandise Authorization (RMA)",
|
8
|
-
"version": "
|
8
|
+
"version": "18.0.1.0.0",
|
9
9
|
"development_status": "Production/Stable",
|
10
10
|
"category": "RMA",
|
11
11
|
"website": "https://github.com/OCA/rma",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Copyright 2020 Tecnativa - Ernesto Tejeda
|
2
|
-
# Copyright 2022 Tecnativa - Víctor Martínez
|
2
|
+
# Copyright 2022-2025 Tecnativa - Víctor Martínez
|
3
3
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
4
4
|
|
5
5
|
from odoo import _, exceptions, http
|
@@ -17,9 +17,7 @@ class PortalRma(CustomerPortal):
|
|
17
17
|
if "rma_count" in counters:
|
18
18
|
rma_model = request.env["rma"]
|
19
19
|
rma_count = (
|
20
|
-
rma_model.search_count([])
|
21
|
-
if rma_model.check_access_rights("read", raise_exception=False)
|
22
|
-
else 0
|
20
|
+
rma_model.search_count([]) if rma_model.has_access("read") else 0
|
23
21
|
)
|
24
22
|
values["rma_count"] = rma_count
|
25
23
|
return values
|
@@ -43,7 +41,7 @@ class PortalRma(CustomerPortal):
|
|
43
41
|
values = self._prepare_portal_layout_values()
|
44
42
|
rma_obj = request.env["rma"]
|
45
43
|
# Avoid error if the user does not have access.
|
46
|
-
if not rma_obj.
|
44
|
+
if not rma_obj.has_access("read"):
|
47
45
|
return request.redirect("/my")
|
48
46
|
domain = self._get_filter_domain(kw)
|
49
47
|
searchbar_sortings = {
|
@@ -137,8 +135,7 @@ class PortalRma(CustomerPortal):
|
|
137
135
|
picking = request.env["stock.picking"].browse([picking_id])
|
138
136
|
picking_sudo = picking.sudo()
|
139
137
|
try:
|
140
|
-
picking.
|
141
|
-
picking.check_access_rule("read")
|
138
|
+
picking.check_access("read")
|
142
139
|
except exceptions.AccessError:
|
143
140
|
if not access_token or not consteq(rma.access_token, access_token):
|
144
141
|
raise
|
@@ -31,7 +31,6 @@
|
|
31
31
|
<field name="relation_field">team_id</field>
|
32
32
|
</record>
|
33
33
|
|
34
|
-
|
35
34
|
<!--RMA email template -->
|
36
35
|
<record id="mail_template_rma_notification" model="mail.template">
|
37
36
|
<field name="name">RMA Notification</field>
|
@@ -50,14 +49,14 @@
|
|
50
49
|
Dear
|
51
50
|
<t t-out="object.partner_id.name" />
|
52
51
|
<t t-if="object.partner_id.parent_id">
|
53
|
-
|
54
|
-
|
52
|
+
<t t-out="object.partner_id.parent_id.name" />
|
53
|
+
</t>
|
55
54
|
<br />
|
56
55
|
<br />
|
57
56
|
Here is the RMA
|
58
57
|
<strong>
|
59
|
-
|
60
|
-
|
58
|
+
<t t-out="object.name" />
|
59
|
+
</strong>
|
61
60
|
from
|
62
61
|
<t t-out="object.company_id.name" />
|
63
62
|
.
|
@@ -86,14 +85,14 @@
|
|
86
85
|
Dear
|
87
86
|
<t t-out="object.partner_id.name" />
|
88
87
|
<t t-if="object.partner_id.parent_id">
|
89
|
-
|
90
|
-
|
88
|
+
<t t-out="object.partner_id.parent_id.name" />
|
89
|
+
</t>
|
91
90
|
<br />
|
92
91
|
<br />
|
93
92
|
The products for your RMA
|
94
93
|
<strong>
|
95
|
-
|
96
|
-
|
94
|
+
<t t-out="object.name" />
|
95
|
+
</strong>
|
97
96
|
from
|
98
97
|
<t t-out="object.company_id.name" />
|
99
98
|
have been received in our warehouse.
|
@@ -121,14 +120,14 @@
|
|
121
120
|
Dear
|
122
121
|
<t t-out="object.partner_id.name" />
|
123
122
|
<t t-if="object.partner_id.parent_id">
|
124
|
-
|
125
|
-
|
123
|
+
<t t-out="object.partner_id.parent_id.name" />
|
124
|
+
</t>
|
126
125
|
<br />
|
127
126
|
<br />
|
128
127
|
You've succesfully placed your RMA
|
129
128
|
<strong>
|
130
|
-
|
131
|
-
|
129
|
+
<t t-out="object.name" />
|
130
|
+
</strong>
|
132
131
|
on
|
133
132
|
<t t-out="object.company_id.name" />
|
134
133
|
. Our team will check it and will validate it as soon as possible.
|