odoo-addon-rma 17.0.2.0.1__py3-none-any.whl → 17.0.2.0.2__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 +1 -1
- odoo/addons/rma/__manifest__.py +1 -1
- odoo/addons/rma/models/rma.py +35 -32
- odoo/addons/rma/static/description/index.html +1 -1
- {odoo_addon_rma-17.0.2.0.1.dist-info → odoo_addon_rma-17.0.2.0.2.dist-info}/METADATA +2 -2
- {odoo_addon_rma-17.0.2.0.1.dist-info → odoo_addon_rma-17.0.2.0.2.dist-info}/RECORD +8 -8
- {odoo_addon_rma-17.0.2.0.1.dist-info → odoo_addon_rma-17.0.2.0.2.dist-info}/WHEEL +0 -0
- {odoo_addon_rma-17.0.2.0.1.dist-info → odoo_addon_rma-17.0.2.0.2.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:ceb070f6cb473ec4b9f5bcd29d182d66b5b775dacf7dddcdbb155e2444608e96
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
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": "17.0.2.0.
|
8
|
+
"version": "17.0.2.0.2",
|
9
9
|
"development_status": "Production/Stable",
|
10
10
|
"category": "RMA",
|
11
11
|
"website": "https://github.com/OCA/rma",
|
odoo/addons/rma/models/rma.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
# Copyright 2020 Tecnativa - Ernesto Tejeda
|
2
2
|
# Copyright 2023 Tecnativa - Pedro M. Baeza
|
3
3
|
# Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
|
4
|
+
# Copyright 2025 Tecnativa - Víctor Martínez
|
4
5
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
5
6
|
import logging
|
6
7
|
from collections import defaultdict
|
7
8
|
from itertools import groupby
|
8
9
|
|
10
|
+
from markupsafe import Markup
|
11
|
+
|
9
12
|
from odoo import _, api, fields, models
|
10
13
|
from odoo.exceptions import AccessError, ValidationError
|
11
14
|
from odoo.tools import html2plaintext
|
@@ -303,16 +306,10 @@ class Rma(models.Model):
|
|
303
306
|
|
304
307
|
@api.depends("product_uom_qty", "delivered_qty")
|
305
308
|
def _compute_remaining_qty(self):
|
306
|
-
"""Compute 'remaining_qty'
|
309
|
+
"""Compute 'remaining_qty' field.
|
307
310
|
|
308
311
|
remaining_qty: is used to set a default quantity of replacing
|
309
312
|
or returning of product to the customer.
|
310
|
-
|
311
|
-
remaining_qty_to_done: the aim of this field to control when the
|
312
|
-
RMA cam be set to 'delivered' state. An RMA with
|
313
|
-
remaining_qty_to_done <= 0 can be set to 'delivery'. It is used
|
314
|
-
in stock.move._action_done method of stock.move and
|
315
|
-
rma.extract_quantity.
|
316
313
|
"""
|
317
314
|
for r in self:
|
318
315
|
r.remaining_qty = r.product_uom_qty - r.delivered_qty
|
@@ -377,7 +374,7 @@ class Rma(models.Model):
|
|
377
374
|
for r in self:
|
378
375
|
if r.product_uom_qty > 1 and (
|
379
376
|
(r.state == "waiting_return" and r.remaining_qty > 0)
|
380
|
-
or (r.state == "waiting_replacement" and r.
|
377
|
+
or (r.state == "waiting_replacement" and r.remaining_qty > 0)
|
381
378
|
):
|
382
379
|
r.can_be_split = True
|
383
380
|
else:
|
@@ -981,11 +978,13 @@ class Rma(models.Model):
|
|
981
978
|
subtype_id=self.env["ir.model.data"]._xmlid_to_res_id("mail.mt_note"),
|
982
979
|
)
|
983
980
|
self.message_post(
|
984
|
-
body=
|
985
|
-
|
986
|
-
|
981
|
+
body=Markup(
|
982
|
+
_(
|
983
|
+
'Split: <a href="#" data-oe-model="rma" '
|
984
|
+
'data-oe-id="%(id)d">%(name)s</a> has been created.'
|
985
|
+
)
|
986
|
+
% ({"id": extracted_rma.id, "name": extracted_rma.name})
|
987
987
|
)
|
988
|
-
% ({"id": extracted_rma.id, "name": extracted_rma.name})
|
989
988
|
)
|
990
989
|
return extracted_rma
|
991
990
|
|
@@ -1115,11 +1114,13 @@ class Rma(models.Model):
|
|
1115
1114
|
picking = rma.delivery_move_ids.picking_id.sorted("id", reverse=True)[0]
|
1116
1115
|
pickings[picking] |= rma
|
1117
1116
|
rma.message_post(
|
1118
|
-
body=
|
1119
|
-
|
1120
|
-
|
1117
|
+
body=Markup(
|
1118
|
+
_(
|
1119
|
+
'Return: <a href="#" data-oe-model="stock.picking" '
|
1120
|
+
'data-oe-id="%(id)d">%(name)s</a> has been created.'
|
1121
|
+
)
|
1122
|
+
% ({"id": picking.id, "name": picking.name})
|
1121
1123
|
)
|
1122
|
-
% ({"id": picking.id, "name": picking.name})
|
1123
1124
|
)
|
1124
1125
|
for picking, rmas in pickings.items():
|
1125
1126
|
picking.action_confirm()
|
@@ -1183,7 +1184,7 @@ class Rma(models.Model):
|
|
1183
1184
|
# The product replacement could explode into several moves like in the case of
|
1184
1185
|
# MRP BoM Kits
|
1185
1186
|
for new_move in new_moves:
|
1186
|
-
body += (
|
1187
|
+
body += Markup(
|
1187
1188
|
_(
|
1188
1189
|
'Replacement: Move <a href="#" data-oe-model="stock.move"'
|
1189
1190
|
' data-oe-id="%(move_id)d">%(move_name)s</a> (Picking <a'
|
@@ -1209,21 +1210,23 @@ class Rma(models.Model):
|
|
1209
1210
|
self.ensure_one()
|
1210
1211
|
self.message_post(
|
1211
1212
|
body=body
|
1212
|
-
or
|
1213
|
-
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1213
|
+
or Markup(
|
1214
|
+
_(
|
1215
|
+
"Replacement:<br/>"
|
1216
|
+
'Product <a href="#" data-oe-model="product.product" '
|
1217
|
+
'data-oe-id="%(id)d">%(name)s</a><br/>'
|
1218
|
+
"Quantity %(qty)s %(uom)s<br/>"
|
1219
|
+
"This replacement did not create a new move, but one of "
|
1220
|
+
"the previously created moves was updated with this data."
|
1221
|
+
)
|
1222
|
+
% (
|
1223
|
+
{
|
1224
|
+
"id": self.product_id.id,
|
1225
|
+
"name": self.product_id.display_name,
|
1226
|
+
"qty": qty,
|
1227
|
+
"uom": uom.name,
|
1228
|
+
}
|
1229
|
+
)
|
1227
1230
|
)
|
1228
1231
|
)
|
1229
1232
|
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:ceb070f6cb473ec4b9f5bcd29d182d66b5b775dacf7dddcdbb155e2444608e96
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
372
|
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.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/rma/tree/17.0/rma"><img alt="OCA/rma" src="https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/rma-17-0/rma-17-0-rma"><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/rma&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>This module allows you to manage <a class="reference external" href="https://en.wikipedia.org/wiki/Return_merchandise_authorization">Return Merchandise Authorization
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-rma
|
3
|
-
Version: 17.0.2.0.
|
3
|
+
Version: 17.0.2.0.2
|
4
4
|
Requires-Python: >=3.10
|
5
5
|
Requires-Dist: odoo>=17.0a,<17.1dev
|
6
6
|
Summary: Return Merchandise Authorization (RMA)
|
@@ -23,7 +23,7 @@ Return Merchandise Authorization Management
|
|
23
23
|
!! This file is generated by oca-gen-addon-readme !!
|
24
24
|
!! changes will be overwritten. !!
|
25
25
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
26
|
-
!! source digest: sha256:
|
26
|
+
!! source digest: sha256:ceb070f6cb473ec4b9f5bcd29d182d66b5b775dacf7dddcdbb155e2444608e96
|
27
27
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
28
28
|
|
29
29
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
|
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/rma/README.rst,sha256=
|
1
|
+
odoo/addons/rma/README.rst,sha256=VBlV_6LbCwNEFef5Ac_T1lmtyDTJ0bjU0wA9ef5TA3c,8246
|
2
2
|
odoo/addons/rma/__init__.py,sha256=KD8ElbTlUwRgGDQzvMIqp-WeEXGTuHqQT352BCbK2I0,168
|
3
|
-
odoo/addons/rma/__manifest__.py,sha256=
|
3
|
+
odoo/addons/rma/__manifest__.py,sha256=xtksz2Q4NnH9duIaf6Q_rFzjQO9ZaRT96urgPOT43-Y,1527
|
4
4
|
odoo/addons/rma/hooks.py,sha256=60r6gSDlRMblJByj8Gp1j1oGBOEfloFjDXFNkp72uMk,3226
|
5
5
|
odoo/addons/rma/controllers/__init__.py,sha256=ZAYSY9pxyJjumL2QVLuxqtBzjLwKPiQsVXMBAWvNGGY,85
|
6
6
|
odoo/addons/rma/controllers/main.py,sha256=luAXQnt-pSpM0QpZjZqLwyz-ktPWGCN-jhjM3oJpY7w,5455
|
@@ -25,7 +25,7 @@ odoo/addons/rma/models/res_company.py,sha256=46aercxmY3p3t0JoIzlSSP_pjkvjaQb1pHR
|
|
25
25
|
odoo/addons/rma/models/res_config_settings.py,sha256=-X3NWCfEG1LJ2iE2dYl3Ut-suDskrHMkp0D597EFhIw,1493
|
26
26
|
odoo/addons/rma/models/res_partner.py,sha256=PEjLvtn7RpZVO5Ez_Fts9cDI2UgAIGfJUsMJU8WDNpg,1233
|
27
27
|
odoo/addons/rma/models/res_users.py,sha256=43A5IHYXEXe9M4G0cONf1l7EZ1AWl5mhWJ24EdtAfhI,351
|
28
|
-
odoo/addons/rma/models/rma.py,sha256=
|
28
|
+
odoo/addons/rma/models/rma.py,sha256=a6-3b-tHSmyAn_Iyz24KTEaZf_LZxFZJosehWrmoSyU,49828
|
29
29
|
odoo/addons/rma/models/rma_finalization.py,sha256=kgJ6EFWBXJKGCwKy7bbWRUynExsCMQyjqcflDpvwtaE,681
|
30
30
|
odoo/addons/rma/models/rma_operation.py,sha256=xbDjthojPoZpSpqKg3eNyYcctv40hPsmrFcUHV3BUyg,460
|
31
31
|
odoo/addons/rma/models/rma_tag.py,sha256=RVFLyo8XmgjK_ftrRHWiEtzUQGs4b-OMhg0hwr-5Rzw,833
|
@@ -42,7 +42,7 @@ odoo/addons/rma/report/report.xml,sha256=rMg9_lccL-dJClHvMCmRI1Feh499gnExeskIylc
|
|
42
42
|
odoo/addons/rma/security/ir.model.access.csv,sha256=zACDkLgOfICGiJGb4A9RNKbtlpBcFIC4rDZxESyBzbQ,1724
|
43
43
|
odoo/addons/rma/security/rma_security.xml,sha256=_tz_MXqW8bWfzGhgQ3pDI7xdx6tX321DrkIaRAd2W6E,5374
|
44
44
|
odoo/addons/rma/static/description/icon.png,sha256=0VH8J6xmJMYW0dBaW-Ts-Gm5oRvbf9mOglT4vqUKxdU,7450
|
45
|
-
odoo/addons/rma/static/description/index.html,sha256=
|
45
|
+
odoo/addons/rma/static/description/index.html,sha256=qWDkrK6FoWwTc51XM3cF1UoWb1abbdlupb74gTroOUM,19139
|
46
46
|
odoo/addons/rma/tests/__init__.py,sha256=Q2ntkew4ZtzTd3zhA1Ly6e-C1NrU6zIPUVEr7hDD-CY,89
|
47
47
|
odoo/addons/rma/tests/test_rma.py,sha256=M5Glq4B1HGAPvanKFv76mNK3c49fx-5IuhGWWlQCWfQ,36034
|
48
48
|
odoo/addons/rma/views/menus.xml,sha256=KWrTOvwY6IB-liNjRvBxTkdCSkes-CMTFI0iakxoavE,603
|
@@ -65,7 +65,7 @@ odoo/addons/rma/wizard/rma_split.py,sha256=PZuVAGCXzRkycxJQIgfbPY__EPRXGPAkiKaGX
|
|
65
65
|
odoo/addons/rma/wizard/rma_split_views.xml,sha256=jtrUmgS9rsUfbgx6y77cUXPnmd1ObY7lmQ_8XZDxxuo,1581
|
66
66
|
odoo/addons/rma/wizard/stock_picking_return.py,sha256=KQljpW-kNL9h35-H20kbW6T20WyjCIT9SYQg-HKc-Dg,6510
|
67
67
|
odoo/addons/rma/wizard/stock_picking_return_views.xml,sha256=g34JqBFRZ0g-yk2bhWylrhzyKPXMCTE66MZ4np2OUfQ,1129
|
68
|
-
odoo_addon_rma-17.0.2.0.
|
69
|
-
odoo_addon_rma-17.0.2.0.
|
70
|
-
odoo_addon_rma-17.0.2.0.
|
71
|
-
odoo_addon_rma-17.0.2.0.
|
68
|
+
odoo_addon_rma-17.0.2.0.2.dist-info/METADATA,sha256=-JsDNp229UzCP6J9KWHyn9iHnv0yO4tmDnfs93Ys0dE,8808
|
69
|
+
odoo_addon_rma-17.0.2.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
70
|
+
odoo_addon_rma-17.0.2.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
71
|
+
odoo_addon_rma-17.0.2.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|