odoo-addon-rma 16.0.1.3.0__py3-none-any.whl → 16.0.2.0.0__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.
@@ -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:fc1ebcf484947c613431d205e84ea341b3dfb003b0d988afd52854643ff91259
10
+ !! source digest: sha256:62d0c2b19f67175025b621f74656297363fe9b028799723026166ed8d24b7b8b
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -134,6 +134,9 @@ Known issues / Roadmap
134
134
  * As soon as the picking is selected, the user should select the move,
135
135
  but perhaps stock.move _rec_name could be improved to better show what
136
136
  the product of that move is.
137
+ * Add RMA reception and/or RMA delivery on several steps - 2 or 3 - like
138
+ normal receptions/deliveries. It should be a separate option inside the
139
+ warehouse definition.
137
140
 
138
141
  Bug Tracker
139
142
  ===========
@@ -165,6 +168,7 @@ Contributors
165
168
 
166
169
  * Chafique Delli <chafique.delli@akretion.com>
167
170
  * Giovanni Serra - Ooops <giovanni@ooops404.com>
171
+ * Michael Tietz (MT Software) <mtietz@mt-software.de>
168
172
 
169
173
  Maintainers
170
174
  ~~~~~~~~~~~
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "Return Merchandise Authorization Management",
7
7
  "summary": "Return Merchandise Authorization (RMA)",
8
- "version": "16.0.1.3.0",
8
+ "version": "16.0.2.0.0",
9
9
  "development_status": "Production/Stable",
10
10
  "category": "RMA",
11
11
  "website": "https://github.com/OCA/rma",
odoo/addons/rma/hooks.py CHANGED
@@ -1,4 +1,5 @@
1
1
  # Copyright 2020 Tecnativa - Ernesto Tejeda
2
+ # Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
2
3
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
4
 
4
5
  from odoo import SUPERUSER_ID, api
@@ -24,7 +25,9 @@ def post_init_hook(cr, registry):
24
25
  def create_rma_locations(warehouse):
25
26
  stock_location = env["stock.location"]
26
27
  if not warehouse.rma_loc_id:
27
- rma_location_vals = warehouse._get_rma_location_values()
28
+ rma_location_vals = warehouse._get_rma_location_values(
29
+ {"company_id": warehouse.company_id.id}, warehouse.code
30
+ )
28
31
  warehouse.rma_loc_id = (
29
32
  stock_location.with_context(active_test=False)
30
33
  .create(rma_location_vals)
@@ -61,11 +64,19 @@ def post_init_hook(cr, registry):
61
64
  whs.rma_in_type_id.return_picking_type_id = whs.rma_out_type_id.id
62
65
  whs.rma_out_type_id.return_picking_type_id = whs.rma_in_type_id.id
63
66
 
67
+ def create_rma_routes(warehouses):
68
+ """Create initially rma in/out stock.location.routes and stock.rules"""
69
+ warehouses = warehouses.with_context(rma_post_init_hook=True)
70
+ for wh in warehouses:
71
+ route_vals = wh._create_or_update_route()
72
+ wh.write(route_vals)
73
+
64
74
  # Create rma locations and picking types
65
75
  warehouses = env["stock.warehouse"].search([])
66
76
  for warehouse in warehouses:
67
77
  create_rma_locations(warehouse)
68
78
  create_rma_picking_types(warehouse)
79
+ create_rma_routes(warehouses)
69
80
  # Create rma sequence per company
70
81
  for company in env["res.company"].search([]):
71
82
  company.create_rma_index()
@@ -6,15 +6,16 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 12.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2020-07-27 20:19+0000\n"
10
- "Last-Translator: Fernando Colus <fcolus1@gmail.com>\n"
9
+ "PO-Revision-Date: 2024-05-22 23:59+0000\n"
10
+ "Last-Translator: Rodrigo Macedo <sottomaiormacedotec@users.noreply."
11
+ "translation.odoo-community.org>\n"
11
12
  "Language-Team: none\n"
12
13
  "Language: pt_BR\n"
13
14
  "MIME-Version: 1.0\n"
14
15
  "Content-Type: text/plain; charset=UTF-8\n"
15
16
  "Content-Transfer-Encoding: \n"
16
17
  "Plural-Forms: nplurals=2; plural=n > 1;\n"
17
- "X-Generator: Weblate 3.10\n"
18
+ "X-Generator: Weblate 4.17\n"
18
19
 
19
20
  #. module: rma
20
21
  #. odoo-python
@@ -973,7 +974,7 @@ msgstr "É Seguidor"
973
974
  #. module: rma
974
975
  #: model:ir.model,name:rma.model_account_move
975
976
  msgid "Journal Entry"
976
- msgstr ""
977
+ msgstr "Entrada Diária"
977
978
 
978
979
  #. module: rma
979
980
  #: model:ir.model,name:rma.model_account_move_line
@@ -1459,11 +1459,21 @@ msgstr ""
1459
1459
  msgid "RMA draft notification Email"
1460
1460
  msgstr ""
1461
1461
 
1462
+ #. module: rma
1463
+ #: model:ir.model.fields,field_description:rma.field_stock_warehouse__rma_in_route_id
1464
+ msgid "RMA in Route"
1465
+ msgstr ""
1466
+
1462
1467
  #. module: rma
1463
1468
  #: model:mail.message.subtype,description:rma.mt_rma_draft
1464
1469
  msgid "RMA in draft state"
1465
1470
  msgstr ""
1466
1471
 
1472
+ #. module: rma
1473
+ #: model:ir.model.fields,field_description:rma.field_stock_warehouse__rma_out_route_id
1474
+ msgid "RMA out Route"
1475
+ msgstr ""
1476
+
1467
1477
  #. module: rma
1468
1478
  #: model:ir.model.fields,field_description:rma.field_stock_move__rma_receiver_ids
1469
1479
  msgid "RMA receivers"
@@ -1660,6 +1670,11 @@ msgstr ""
1660
1670
  msgid "Return Picking"
1661
1671
  msgstr ""
1662
1672
 
1673
+ #. module: rma
1674
+ #: model:ir.model,name:rma.model_stock_return_picking_line
1675
+ msgid "Return Picking Line"
1676
+ msgstr ""
1677
+
1663
1678
  #. module: rma
1664
1679
  #: model:ir.actions.act_window,name:rma.rma_delivery_wizard_action
1665
1680
  #: model:ir.model.fields.selection,name:rma.selection__rma_delivery_wizard__type__return
@@ -1681,6 +1696,13 @@ msgstr ""
1681
1696
  msgid "Returned"
1682
1697
  msgstr ""
1683
1698
 
1699
+ #. module: rma
1700
+ #. odoo-python
1701
+ #: code:addons/rma/wizard/stock_picking_return.py:0
1702
+ #, python-format
1703
+ msgid "Returned Picking"
1704
+ msgstr ""
1705
+
1684
1706
  #. module: rma
1685
1707
  #: model:ir.model.fields,field_description:rma.field_rma_tag__rma_ids
1686
1708
  msgid "Rma"
@@ -0,0 +1,14 @@
1
+ # Copyright 2024 Tecnativa - Víctor Martínez
2
+ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
+
4
+ from openupgradelib import openupgrade
5
+
6
+
7
+ @openupgrade.migrate()
8
+ def migrate(env, version):
9
+ """Similar behavior to create_rma_routes of post_init_hook."""
10
+ warehouses = env["stock.warehouse"].search([])
11
+ warehouses = warehouses.with_context(rma_post_init_hook=True)
12
+ for wh in warehouses:
13
+ route_vals = wh._create_or_update_route()
14
+ wh.write(route_vals)