Skip to content

Commit 196d7a8

Browse files
committed
Merge PR #467 into 16.0
Signed-off-by pedrobaeza
2 parents 4e386f5 + f30284a commit 196d7a8

File tree

25 files changed

+1009
-0
lines changed

25 files changed

+1009
-0
lines changed

rma_repair/README.rst

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
==========
2+
RMA Repair
3+
==========
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:738f25801ddfeab591ce87f91178550d333e0a3045a1b117149c007bcdad59e5
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%2Frma-lightgray.png?logo=github
20+
:target: https://github.com/OCA/rma/tree/16.0/rma_repair
21+
:alt: OCA/rma
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/rma-16-0/rma-16-0-rma_repair
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/rma&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module allows to create a repair order from RMA and depends of the
32+
repair if it's success can return the article to customer otherwise make
33+
a refund or replace for a new product.
34+
35+
**Table of contents**
36+
37+
.. contents::
38+
:local:
39+
40+
Usage
41+
=====
42+
43+
To use this module, you need to:
44+
45+
Create a RMA:
46+
47+
1. Go to RMA > New rma.
48+
2. Create new rma, confirm it and receipt the products.
49+
3. Create a repair order from the header button called "Create Repair
50+
Order"
51+
52+
You can access from rma to repair order directly with a smart button and
53+
the same backwards.
54+
55+
Bug Tracker
56+
===========
57+
58+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/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/rma/issues/new?body=module:%20rma_repair%0Aversion:%2016.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+
* Antoni Marroig
72+
73+
Contributors
74+
------------
75+
76+
- `APSL-Nagarro <https://www.apsl.tech>`__:
77+
78+
- Antoni Marroig <[email protected]>
79+
80+
- `ACSONE SA/NV <https://acsone.eu>`__:
81+
82+
- Souheil Bejaoui <[email protected]>
83+
84+
Maintainers
85+
-----------
86+
87+
This module is maintained by the OCA.
88+
89+
.. image:: https://odoo-community.org/logo.png
90+
:alt: Odoo Community Association
91+
:target: https://odoo-community.org
92+
93+
OCA, or the Odoo Community Association, is a nonprofit organization whose
94+
mission is to support the collaborative development of Odoo features and
95+
promote its widespread use.
96+
97+
.. |maintainer-peluko00| image:: https://github.com/peluko00.png?size=40px
98+
:target: https://github.com/peluko00
99+
:alt: peluko00
100+
101+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
102+
103+
|maintainer-peluko00|
104+
105+
This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/16.0/rma_repair>`_ project on GitHub.
106+
107+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

rma_repair/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models

rma_repair/__manifest__.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 APSL-Nagarro Antoni Marroig
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
{
4+
"name": "RMA Repair",
5+
"summary": "Create a repair order from rma",
6+
"version": "16.0.1.0.0",
7+
"category": "RMA",
8+
"website": "https://github.com/OCA/rma",
9+
"author": "Antoni Marroig, Odoo Community Association (OCA)",
10+
"maintainers": ["peluko00"],
11+
"license": "AGPL-3",
12+
"application": False,
13+
"installable": True,
14+
"depends": ["rma_lot", "repair"],
15+
"data": [
16+
"views/rma_operation.xml",
17+
"views/rma_views.xml",
18+
"views/repair_views.xml",
19+
],
20+
}

rma_repair/i18n/ca.po

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * rma_repair
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-10-21 11:01+0000\n"
10+
"PO-Revision-Date: 2024-10-21 11:01+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: \n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: \n"
17+
"Plural-Forms: \n"
18+
19+
#. module: rma_repair
20+
#: model_terms:ir.ui.view,arch_db:rma_repair.view_repair_order_form_inherit
21+
msgid "<span class=\"o_stat_text\">RMA</span>"
22+
msgstr ""
23+
24+
#. module: rma_repair
25+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
26+
msgid "<span class=\"o_stat_text\">Repair order</span>"
27+
msgstr "<span class=\"o_stat_text\">Ordre de Reparació</span>"
28+
29+
#. module: rma_repair
30+
#. odoo-python
31+
#: code:addons/rma_repair/models/rma.py:0
32+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
33+
#, python-format
34+
msgid "Create Repair Order"
35+
msgstr "Crear Ordre de Reparació"
36+
37+
#. module: rma_repair
38+
#: model:ir.model,name:rma_repair.model_rma
39+
msgid "RMA"
40+
msgstr ""
41+
42+
#. module: rma_repair
43+
#: model:ir.model.fields,field_description:rma_repair.field_repair_order__rma_ids
44+
msgid "RMAs"
45+
msgstr ""
46+
47+
#. module: rma_repair
48+
#: model:ir.model.fields,field_description:rma_repair.field_rma__repair_id
49+
msgid "Repair"
50+
msgstr "Reparació"
51+
52+
#. module: rma_repair
53+
#: model:ir.model,name:rma_repair.model_repair_order
54+
msgid "Repair Order"
55+
msgstr "Ordre de reparació"

rma_repair/i18n/es.po

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * rma_repair
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-10-21 11:01+0000\n"
10+
"PO-Revision-Date: 2024-10-21 11:01+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"Language: \n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: \n"
17+
"Plural-Forms: \n"
18+
19+
#. module: rma_repair
20+
#: model_terms:ir.ui.view,arch_db:rma_repair.view_repair_order_form_inherit
21+
msgid "<span class=\"o_stat_text\">RMA</span>"
22+
msgstr ""
23+
24+
#. module: rma_repair
25+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
26+
msgid "<span class=\"o_stat_text\">Repair order</span>"
27+
msgstr "<span class=\"o_stat_text\">Orden de Reparación</span>"
28+
29+
#. module: rma_repair
30+
#. odoo-python
31+
#: code:addons/rma_repair/models/rma.py:0
32+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
33+
#, python-format
34+
msgid "Create Repair Order"
35+
msgstr "Crear Orden de Reparación"
36+
37+
#. module: rma_repair
38+
#: model:ir.model,name:rma_repair.model_rma
39+
msgid "RMA"
40+
msgstr ""
41+
42+
#. module: rma_repair
43+
#: model:ir.model.fields,field_description:rma_repair.field_repair_order__rma_ids
44+
msgid "RMAs"
45+
msgstr ""
46+
47+
#. module: rma_repair
48+
#: model:ir.model.fields,field_description:rma_repair.field_rma__repair_id
49+
msgid "Repair"
50+
msgstr "Reparación"
51+
52+
#. module: rma_repair
53+
#: model:ir.model,name:rma_repair.model_repair_order
54+
msgid "Repair Order"
55+
msgstr "Orden de reparación"

rma_repair/i18n/it.po

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * rma_repair
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2025-06-03 09:27+0000\n"
10+
"Last-Translator: mymage <[email protected]>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 5.10.4\n"
18+
19+
#. module: rma_repair
20+
#: model_terms:ir.ui.view,arch_db:rma_repair.view_repair_order_form_inherit
21+
msgid "<span class=\"o_stat_text\">RMA</span>"
22+
msgstr "<span class=\"o_stat_text\">RMA</span>"
23+
24+
#. module: rma_repair
25+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
26+
msgid "<span class=\"o_stat_text\">Repair order</span>"
27+
msgstr "<span class=\"o_stat_text\">Ordine di riparazione</span>"
28+
29+
#. module: rma_repair
30+
#. odoo-python
31+
#: code:addons/rma_repair/models/rma.py:0
32+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
33+
#, python-format
34+
msgid "Create Repair Order"
35+
msgstr "Crea ordine riparazione"
36+
37+
#. module: rma_repair
38+
#: model:ir.model,name:rma_repair.model_rma
39+
msgid "RMA"
40+
msgstr "RMA"
41+
42+
#. module: rma_repair
43+
#: model:ir.model.fields,field_description:rma_repair.field_repair_order__rma_ids
44+
msgid "RMAs"
45+
msgstr "RMA"
46+
47+
#. module: rma_repair
48+
#: model:ir.model.fields,field_description:rma_repair.field_rma__repair_id
49+
msgid "Repair"
50+
msgstr "Riparazione"
51+
52+
#. module: rma_repair
53+
#: model:ir.model,name:rma_repair.model_repair_order
54+
msgid "Repair Order"
55+
msgstr "Ordine di riparazione"

rma_repair/i18n/rma_repair.pot

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * rma_repair
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: rma_repair
17+
#: model_terms:ir.ui.view,arch_db:rma_repair.view_repair_order_form_inherit
18+
msgid "<span class=\"o_stat_text\">RMA</span>"
19+
msgstr ""
20+
21+
#. module: rma_repair
22+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
23+
msgid "<span class=\"o_stat_text\">Repair order</span>"
24+
msgstr ""
25+
26+
#. module: rma_repair
27+
#. odoo-python
28+
#: code:addons/rma_repair/models/rma.py:0
29+
#: model_terms:ir.ui.view,arch_db:rma_repair.rma_view_form
30+
#, python-format
31+
msgid "Create Repair Order"
32+
msgstr ""
33+
34+
#. module: rma_repair
35+
#: model:ir.model,name:rma_repair.model_rma
36+
msgid "RMA"
37+
msgstr ""
38+
39+
#. module: rma_repair
40+
#: model:ir.model.fields,field_description:rma_repair.field_repair_order__rma_ids
41+
msgid "RMAs"
42+
msgstr ""
43+
44+
#. module: rma_repair
45+
#: model:ir.model.fields,field_description:rma_repair.field_rma__repair_id
46+
msgid "Repair"
47+
msgstr ""
48+
49+
#. module: rma_repair
50+
#: model:ir.model,name:rma_repair.model_repair_order
51+
msgid "Repair Order"
52+
msgstr ""

rma_repair/models/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import rma
4+
from . import repair
5+
from . import rma_operation

rma_repair/models/repair.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2024 APSL-Nagarro Antoni Marroig
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import fields, models
5+
6+
7+
class RepairOrder(models.Model):
8+
_inherit = "repair.order"
9+
10+
rma_ids = fields.One2many(
11+
comodel_name="rma",
12+
inverse_name="repair_id",
13+
string="RMAs",
14+
)
15+
16+
def action_view_repair_rma(self):
17+
return {
18+
"name": "RMAs - " + self.name,
19+
"type": "ir.actions.act_window",
20+
"view_mode": "tree,form",
21+
"res_model": "rma",
22+
"domain": [("id", "in", self.rma_ids.ids)],
23+
}

0 commit comments

Comments
 (0)