odoo-addon-rma 17.0.2.2.0.2__py3-none-any.whl → 18.0.1.0.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.
Files changed (45) hide show
  1. odoo/addons/rma/README.rst +6 -6
  2. odoo/addons/rma/__manifest__.py +1 -1
  3. odoo/addons/rma/controllers/main.py +5 -8
  4. odoo/addons/rma/data/mail_data.xml +12 -13
  5. odoo/addons/rma/i18n/de.po +32 -316
  6. odoo/addons/rma/i18n/de_AT.po +32 -75
  7. odoo/addons/rma/i18n/es.po +32 -336
  8. odoo/addons/rma/i18n/fr.po +32 -118
  9. odoo/addons/rma/i18n/it.po +35 -380
  10. odoo/addons/rma/i18n/nl.po +32 -75
  11. odoo/addons/rma/i18n/pt.po +32 -234
  12. odoo/addons/rma/i18n/pt_BR.po +32 -232
  13. odoo/addons/rma/i18n/rma.pot +65 -96
  14. odoo/addons/rma/i18n/ro.po +32 -209
  15. odoo/addons/rma/i18n/zh_CN.po +32 -75
  16. odoo/addons/rma/models/account_move.py +2 -2
  17. odoo/addons/rma/models/res_company.py +2 -2
  18. odoo/addons/rma/models/res_config_settings.py +3 -0
  19. odoo/addons/rma/models/rma.py +40 -39
  20. odoo/addons/rma/models/rma_team.py +12 -13
  21. odoo/addons/rma/models/stock_move.py +2 -2
  22. odoo/addons/rma/models/stock_picking.py +0 -12
  23. odoo/addons/rma/models/stock_warehouse.py +20 -14
  24. odoo/addons/rma/security/rma_security.xml +3 -9
  25. odoo/addons/rma/static/description/index.html +4 -4
  26. odoo/addons/rma/tests/test_rma.py +58 -16
  27. odoo/addons/rma/views/report_rma.xml +9 -3
  28. odoo/addons/rma/views/res_config_settings_views.xml +8 -11
  29. odoo/addons/rma/views/rma_finalization_views.xml +2 -2
  30. odoo/addons/rma/views/rma_portal_templates.xml +303 -361
  31. odoo/addons/rma/views/rma_tag_views.xml +2 -2
  32. odoo/addons/rma/views/rma_team_views.xml +35 -36
  33. odoo/addons/rma/views/rma_views.xml +7 -29
  34. odoo/addons/rma/wizard/rma_delivery.py +2 -2
  35. odoo/addons/rma/wizard/rma_delivery_views.xml +0 -3
  36. odoo/addons/rma/wizard/rma_split.py +2 -2
  37. odoo/addons/rma/wizard/rma_split_views.xml +0 -1
  38. odoo/addons/rma/wizard/stock_picking_return.py +12 -42
  39. odoo/addons/rma/wizard/stock_picking_return_views.xml +1 -5
  40. {odoo_addon_rma-17.0.2.2.0.2.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/METADATA +9 -9
  41. odoo_addon_rma-18.0.1.0.0.2.dist-info/RECORD +70 -0
  42. odoo/addons/rma/migrations/17.0.1.2.0/post-migration.py +0 -17
  43. odoo_addon_rma-17.0.2.2.0.2.dist-info/RECORD +0 -71
  44. {odoo_addon_rma-17.0.2.2.0.2.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/WHEEL +0 -0
  45. {odoo_addon_rma-17.0.2.2.0.2.dist-info → odoo_addon_rma-18.0.1.0.0.2.dist-info}/top_level.txt +0 -0
@@ -37,11 +37,11 @@
37
37
  <field name="model">rma.tag</field>
38
38
  <field eval="6" name="priority" />
39
39
  <field name="arch" type="xml">
40
- <tree>
40
+ <list>
41
41
  <field name="name" />
42
42
  <field name="is_public" />
43
43
  <field name="active" />
44
- </tree>
44
+ </list>
45
45
  </field>
46
46
  </record>
47
47
  <record id="action_rma_tag" model="ir.actions.act_window">
@@ -5,13 +5,13 @@
5
5
  <record id="rma_team_view_tree" model="ir.ui.view">
6
6
  <field name="model">rma.team</field>
7
7
  <field name="arch" type="xml">
8
- <tree>
8
+ <list>
9
9
  <field name="sequence" widget="handle" />
10
10
  <field name="name" />
11
11
  <field name="user_id" />
12
12
  <field name="company_id" groups="base.group_multi_company" />
13
13
  <field name="company_id" column_invisible="1" />
14
- </tree>
14
+ </list>
15
15
  </field>
16
16
  </record>
17
17
  <record id="rma_team_view_form" model="ir.ui.view">
@@ -52,30 +52,32 @@
52
52
  <field name="id" />
53
53
  <field name="name" />
54
54
  <templates>
55
- <t t-name="kanban-box">
56
- <div
57
- class="oe_kanban_global_click"
58
- style="max-width: 200px"
59
- >
60
- <div class="o_kanban_record_top">
61
- <img
62
- t-att-src="kanban_image('res.users', 'avatar_128', record.id.raw_value)"
63
- height="40"
64
- width="40"
65
- class="oe_avatar oe_kanban_avatar_smallbox mb0"
66
- alt="Avatar"
55
+ <t t-name="card" class="flex-row">
56
+ <aside>
57
+ <field
58
+ name="avatar_128"
59
+ widget="image"
60
+ class="o_image_64_cover"
61
+ alt="Avatar"
62
+ />
63
+ </aside>
64
+ <main class="ms-3">
65
+ <field
66
+ name="name"
67
+ class="fw-bold fs-5"
68
+ />
69
+ <div
70
+ class="d-flex align-items-baseline text-break"
71
+ >
72
+ <i
73
+ class="fa fa-envelope me-1"
74
+ role="img"
75
+ aria-label="Email"
76
+ title="Email"
67
77
  />
68
- <div
69
- class="o_kanban_record_headings ml8"
70
- >
71
- <strong
72
- class="o_kanban_record_title"
73
- >
74
- <field name="name" />
75
- </strong>
76
- </div>
78
+ <field name="email" />
77
79
  </div>
78
- </div>
80
+ </main>
79
81
  </t>
80
82
  </templates>
81
83
  </kanban>
@@ -97,13 +99,13 @@
97
99
  style="display: inline;"
98
100
  >
99
101
  <field
100
- name="alias_name"
101
- class="oe_inline"
102
- />@<field
103
- name="alias_domain"
104
- class="oe_inline"
105
- readonly="1"
106
- />
102
+ name="alias_name"
103
+ class="oe_inline"
104
+ />@<field
105
+ name="alias_domain"
106
+ class="oe_inline"
107
+ readonly="1"
108
+ />
107
109
  </div>
108
110
  </div>
109
111
  <field
@@ -115,17 +117,14 @@
115
117
  </page>
116
118
  </notebook>
117
119
  </sheet>
118
- <div class="oe_chatter">
119
- <field name="message_follower_ids" widget="mail_followers" />
120
- <field name="message_ids" widget="mail_thread" />
121
- </div>
120
+ <chatter />
122
121
  </form>
123
122
  </field>
124
123
  </record>
125
124
  <record id="rma_team_action" model="ir.actions.act_window">
126
125
  <field name="name">RMA team</field>
127
126
  <field name="res_model">rma.team</field>
128
- <field name="view_mode">tree,form</field>
127
+ <field name="view_mode">list,form</field>
129
128
  <field name="help" type="html">
130
129
  <p class="o_view_nocontent_smiling_face">
131
130
  Click to add a new RMA.
@@ -103,7 +103,7 @@
103
103
  <field name="name">rma.view.tree</field>
104
104
  <field name="model">rma</field>
105
105
  <field name="arch" type="xml">
106
- <tree
106
+ <list
107
107
  decoration-muted="state in ['cancelled', 'locked']"
108
108
  decoration-bf="state == 'draft' and product_id == False"
109
109
  decoration-danger="deadline and (deadline &lt; current_date)"
@@ -119,7 +119,7 @@
119
119
  <field name="deadline" />
120
120
  <field name="finalization_id" optional="hide" />
121
121
  <field name="state" />
122
- </tree>
122
+ </list>
123
123
  </field>
124
124
  </record>
125
125
  <record id="rma_view_form" model="ir.ui.view">
@@ -222,8 +222,7 @@
222
222
  class="oe_stat_button"
223
223
  icon="fa-truck"
224
224
  invisible="not reception_move_id"
225
- >
226
- </button>
225
+ />
227
226
  <button
228
227
  type="object"
229
228
  name="action_view_delivery"
@@ -244,8 +243,7 @@
244
243
  class="oe_stat_button"
245
244
  icon="fa-pencil-square-o"
246
245
  invisible="not refund_id"
247
- >
248
- </button>
246
+ />
249
247
  </div>
250
248
  <div class="oe_title">
251
249
  <h1>
@@ -342,11 +340,7 @@
342
340
  groups="base.group_multi_company"
343
341
  readonly="state in ['locked', 'cancelled']"
344
342
  />
345
- <field
346
- name="company_id"
347
- invisible="1"
348
- readonly="state in ['locked', 'cancelled']"
349
- />
343
+ <field name="company_id" invisible="1" />
350
344
  </group>
351
345
  </group>
352
346
  <notebook>
@@ -375,7 +369,6 @@
375
369
  widget="priority"
376
370
  readonly="state != 'draft'"
377
371
  />
378
- <field name="origin_split_rma_id" invisible="1" />
379
372
  </group>
380
373
  </group>
381
374
  <group>
@@ -388,23 +381,8 @@
388
381
  </group>
389
382
  </page>
390
383
  </notebook>
391
- <field name="sent" invisible="1" />
392
- <field name="reception_move_id" invisible="1" />
393
- <field name="refund_id" invisible="1" />
394
- <field name="can_be_refunded" invisible="1" />
395
- <field name="can_be_returned" invisible="1" />
396
- <field name="can_be_replaced" invisible="1" />
397
- <field name="can_be_split" invisible="1" />
398
- <field name="can_be_locked" invisible="1" />
399
- <field name="can_be_finished" invisible="1" />
400
- <field name="commercial_partner_id" invisible="1" />
401
- <field name="remaining_qty" invisible="1" />
402
384
  </sheet>
403
- <div class="oe_chatter">
404
- <field name="message_follower_ids" widget="mail_followers" />
405
- <field name="activity_ids" widget="mail_activity" />
406
- <field name="message_ids" widget="mail_thread" />
407
- </div>
385
+ <chatter />
408
386
  </form>
409
387
  </field>
410
388
  </record>
@@ -460,7 +438,7 @@
460
438
  <record id="rma_action" model="ir.actions.act_window">
461
439
  <field name="name">RMA</field>
462
440
  <field name="res_model">rma</field>
463
- <field name="view_mode">tree,form,pivot,calendar,activity</field>
441
+ <field name="view_mode">list,form,pivot,calendar,activity</field>
464
442
  <field name="context">{}</field>
465
443
  <field name="help" type="html">
466
444
  <p class="o_view_nocontent_smiling_face">
@@ -1,7 +1,7 @@
1
1
  # Copyright 2020 Tecnativa - Ernesto Tejeda
2
2
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
3
 
4
- from odoo import _, api, fields, models
4
+ from odoo import api, fields, models
5
5
  from odoo.exceptions import ValidationError
6
6
 
7
7
 
@@ -40,7 +40,7 @@ class RmaReDeliveryWizard(models.TransientModel):
40
40
  self.ensure_one()
41
41
  rma_ids = self.env.context.get("active_ids")
42
42
  if len(rma_ids) == 1 and self.product_uom_qty <= 0:
43
- raise ValidationError(_("Quantity must be greater than 0."))
43
+ raise ValidationError(self.env._("Quantity must be greater than 0."))
44
44
 
45
45
  @api.model
46
46
  def default_get(self, fields_list):
@@ -18,7 +18,6 @@
18
18
  />
19
19
  </group>
20
20
  <group>
21
- <field name="uom_category_id" invisible="1" />
22
21
  <field
23
22
  name="product_id"
24
23
  invisible="type != 'replace' or rma_count > 1"
@@ -37,8 +36,6 @@
37
36
  </div>
38
37
  </group>
39
38
  </group>
40
- <field name="rma_count" invisible="1" />
41
- <field name="type" invisible="1" />
42
39
  <footer>
43
40
  <button
44
41
  name="action_deliver"
@@ -1,7 +1,7 @@
1
1
  # Copyright 2020 Tecnativa - Ernesto Tejeda
2
2
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
3
 
4
- from odoo import _, api, fields, models
4
+ from odoo import api, fields, models
5
5
 
6
6
 
7
7
  class RmaReSplitWizard(models.TransientModel):
@@ -60,7 +60,7 @@ class RmaReSplitWizard(models.TransientModel):
60
60
  self.product_uom_qty, self.product_uom
61
61
  )
62
62
  return {
63
- "name": _("Extracted RMA"),
63
+ "name": self.env._("Extracted RMA"),
64
64
  "type": "ir.actions.act_window",
65
65
  "view_type": "form",
66
66
  "view_mode": "form",
@@ -14,7 +14,6 @@
14
14
  <div class="o_row">
15
15
  <field name="product_uom_qty" />
16
16
  <field name="product_uom" groups="uom.group_uom" />
17
- <field name="product_uom" invisible="1" />
18
17
  </div>
19
18
  </group>
20
19
  </group>
@@ -1,11 +1,12 @@
1
1
  # Copyright 2020 Tecnativa - Ernesto Tejeda
2
2
  # Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
3
+ # Copyright 2025 Tecnativa - Víctor Martínez
3
4
  # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
4
5
  from copy import deepcopy
5
6
 
6
- from odoo import _, api, fields, models
7
+ from odoo import api, fields, models
7
8
  from odoo.exceptions import ValidationError
8
- from odoo.tools import float_compare
9
+ from odoo.tools import float_is_zero
9
10
 
10
11
 
11
12
  class ReturnPickingLine(models.TransientModel):
@@ -27,12 +28,13 @@ class ReturnPickingLine(models.TransientModel):
27
28
 
28
29
  def _prepare_rma_vals(self):
29
30
  self.ensure_one()
31
+ warehouse = self.move_id.picking_id.picking_type_id.warehouse_id
30
32
  return {
31
33
  "move_id": self.move_id.id,
32
34
  "product_id": self.move_id.product_id.id,
33
35
  "product_uom_qty": self.quantity,
34
36
  "product_uom": self.product_id.uom_id.id,
35
- "location_id": self.wizard_id.location_id.id or self.move_id.location_id.id,
37
+ "location_id": warehouse.rma_loc_id.id,
36
38
  "operation_id": self.rma_operation_id.id,
37
39
  }
38
40
 
@@ -42,47 +44,17 @@ class ReturnPicking(models.TransientModel):
42
44
 
43
45
  create_rma = fields.Boolean(string="Create RMAs")
44
46
  picking_type_code = fields.Selection(related="picking_id.picking_type_id.code")
45
- rma_location_ids = fields.Many2many(
46
- comodel_name="stock.location", compute="_compute_rma_location_id"
47
- )
48
47
  rma_operation_id = fields.Many2one(
49
48
  comodel_name="rma.operation",
50
49
  string="Requested operation",
51
50
  )
52
- # Expand domain for RMAs
53
- location_id = fields.Many2one(
54
- domain="create_rma and [('id', 'child_of', rma_location_ids)]"
55
- "or "
56
- "['|', ('id', '=', original_location_id), '|', '&', "
57
- "('return_location', '=', True), ('company_id', '=', False), '&', "
58
- "('return_location', '=', True), ('company_id', '=', company_id)]"
59
- )
60
-
61
- @api.depends("picking_id")
62
- def _compute_rma_location_id(self):
63
- for record in self:
64
- record.rma_location_ids = (
65
- self.env["stock.warehouse"]
66
- .search([("company_id", "=", record.picking_id.company_id.id)])
67
- .rma_loc_id
68
- )
69
51
 
70
52
  @api.onchange("create_rma")
71
53
  def _onchange_create_rma(self):
72
54
  if self.create_rma:
73
- warehouse = self.picking_id.picking_type_id.warehouse_id
74
- self.location_id = warehouse.rma_loc_id.id
75
55
  # We want to avoid setting the return move `to_refund` as it will change
76
56
  # the delivered quantities in the sale and set them to invoice.
77
57
  self.product_return_moves.to_refund = False
78
- else:
79
- # If self.create_rma is not True, the value of the location will be the
80
- # same as assigned by default
81
- location_id = self.picking_id.location_id.id
82
- return_picking_type = self.picking_id.picking_type_id.return_picking_type_id
83
- if return_picking_type.default_location_dest_id.return_location:
84
- location_id = return_picking_type.default_location_dest_id.id
85
- self.location_id = location_id
86
58
 
87
59
  def _prepare_rma_partner_values(self):
88
60
  self.ensure_one()
@@ -119,10 +91,8 @@ class ReturnPicking(models.TransientModel):
119
91
  for return_picking in self:
120
92
  global_vals = return_picking._prepare_rma_vals()
121
93
  for line in return_picking.product_return_moves:
122
- if (
123
- not line.move_id
124
- or float_compare(line.quantity, 0, line.product_id.uom_id.rounding)
125
- <= 0
94
+ if not line.move_id or float_is_zero(
95
+ line.quantity, precision_rounding=line.uom_id.rounding
126
96
  ):
127
97
  continue
128
98
  vals = deepcopy(global_vals)
@@ -130,7 +100,7 @@ class ReturnPicking(models.TransientModel):
130
100
  vals_list.append(vals)
131
101
  return vals_list
132
102
 
133
- def create_returns(self):
103
+ def action_create_returns(self):
134
104
  """Override create_returns method for creating one or more
135
105
  'confirmed' RMAs after return a delivery picking in case
136
106
  'Create RMAs' checkbox is checked in this wizard.
@@ -141,7 +111,7 @@ class ReturnPicking(models.TransientModel):
141
111
  if self.create_rma:
142
112
  if not self.picking_id.partner_id:
143
113
  raise ValidationError(
144
- _(
114
+ self.env._(
145
115
  "You must specify the 'Customer' in the "
146
116
  "'Stock Picking' from which RMAs will be created"
147
117
  )
@@ -165,11 +135,11 @@ class ReturnPicking(models.TransientModel):
165
135
  }
166
136
  )
167
137
  return {
168
- "name": _("Returned Picking"),
169
- "view_mode": "form,tree,calendar",
138
+ "name": self.env._("Returned Picking"),
139
+ "view_mode": "form,list,calendar",
170
140
  "res_model": "stock.picking",
171
141
  "res_id": picking.id,
172
142
  "type": "ir.actions.act_window",
173
143
  "context": ctx,
174
144
  }
175
- return super().create_returns()
145
+ return super().action_create_returns()
@@ -8,7 +8,7 @@
8
8
  <field name="model">stock.return.picking</field>
9
9
  <field name="inherit_id" ref="stock.view_stock_return_picking_form" />
10
10
  <field name="arch" type="xml">
11
- <xpath expr="//field[@name='product_return_moves']//tree" position="inside">
11
+ <xpath expr="//field[@name='product_return_moves']//list" position="inside">
12
12
  <field
13
13
  name="rma_operation_id"
14
14
  required="parent.create_rma and quantity>0"
@@ -22,10 +22,6 @@
22
22
  invisible="picking_type_code != 'outgoing'"
23
23
  />
24
24
  <field name="rma_operation_id" invisible="not create_rma" />
25
- <field name="rma_location_ids" invisible="1" />
26
- <field name="picking_id" invisible="1" />
27
- <field name="picking_type_code" invisible="1" />
28
- <field name="location_id" invisible="1" />
29
25
  </group>
30
26
  </field>
31
27
  </field>
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-rma
3
- Version: 17.0.2.2.0.2
3
+ Version: 18.0.1.0.0.2
4
4
  Requires-Python: >=3.10
5
- Requires-Dist: odoo>=17.0a,<17.1dev
5
+ Requires-Dist: odoo==18.0.*
6
6
  Summary: Return Merchandise Authorization (RMA)
7
7
  Home-page: https://github.com/OCA/rma
8
8
  License: AGPL-3
@@ -10,7 +10,7 @@ Author: Tecnativa, Odoo Community Association (OCA)
10
10
  Author-email: support@odoo-community.org
11
11
  Classifier: Programming Language :: Python
12
12
  Classifier: Framework :: Odoo
13
- Classifier: Framework :: Odoo :: 17.0
13
+ Classifier: Framework :: Odoo :: 18.0
14
14
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
15
15
  Classifier: Development Status :: 5 - Production/Stable
16
16
 
@@ -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:332aee253ea006150dd84367588b401c225d097053614131e9c2f1ff01fef4cc
26
+ !! source digest: sha256:6ea461b6c1041acb71b7933199e58032ecb6d1fb5cb65544d84ec0e1758065d0
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -33,13 +33,13 @@ Return Merchandise Authorization Management
33
33
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
34
34
  :alt: License: AGPL-3
35
35
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frma-lightgray.png?logo=github
36
- :target: https://github.com/OCA/rma/tree/17.0/rma
36
+ :target: https://github.com/OCA/rma/tree/18.0/rma
37
37
  :alt: OCA/rma
38
38
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
39
- :target: https://translation.odoo-community.org/projects/rma-17-0/rma-17-0-rma
39
+ :target: https://translation.odoo-community.org/projects/rma-18-0/rma-18-0-rma
40
40
  :alt: Translate me on Weblate
41
41
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
42
- :target: https://runboat.odoo-community.org/builds?repo=OCA/rma&target_branch=17.0
42
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/rma&target_branch=18.0
43
43
  :alt: Try me on Runboat
44
44
 
45
45
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -166,7 +166,7 @@ Bug Tracker
166
166
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/rma/issues>`_.
167
167
  In case of trouble, please check there if your issue has already been reported.
168
168
  If you spotted it first, help us to smash it by providing a detailed and welcomed
169
- `feedback <https://github.com/OCA/rma/issues/new?body=module:%20rma%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
169
+ `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**>`_.
170
170
 
171
171
  Do not contact contributors directly about support or help with technical issues.
172
172
 
@@ -222,6 +222,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
222
222
 
223
223
  |maintainer-pedrobaeza| |maintainer-chienandalu|
224
224
 
225
- This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/17.0/rma>`_ project on GitHub.
225
+ This module is part of the `OCA/rma <https://github.com/OCA/rma/tree/18.0/rma>`_ project on GitHub.
226
226
 
227
227
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1,70 @@
1
+ odoo/addons/rma/README.rst,sha256=mEpUb424qcz02k0oB3RMyhuC7BEo5QHgxAH7n7BQSW8,8349
2
+ odoo/addons/rma/__init__.py,sha256=KD8ElbTlUwRgGDQzvMIqp-WeEXGTuHqQT352BCbK2I0,168
3
+ odoo/addons/rma/__manifest__.py,sha256=DQGYSeXg7MKMcZmUrWU02rLqWkX3Hxt-ccCiUl0gkPA,1527
4
+ odoo/addons/rma/hooks.py,sha256=60r6gSDlRMblJByj8Gp1j1oGBOEfloFjDXFNkp72uMk,3226
5
+ odoo/addons/rma/controllers/__init__.py,sha256=ZAYSY9pxyJjumL2QVLuxqtBzjLwKPiQsVXMBAWvNGGY,85
6
+ odoo/addons/rma/controllers/main.py,sha256=58Bf4VMuZ_uUh5EzK_T7fcklDPmqALbknZQixoxwM-8,5331
7
+ odoo/addons/rma/data/mail_data.xml,sha256=1AIXxU_OISfR4mW_RgmbXtHEYOVGF2Tcc_jzKsr-4a0,6433
8
+ odoo/addons/rma/data/rma_operation_data.xml,sha256=fYq_1YP1sgRq7zvQ5gU4SJsZnq2TL-YihJcTXohuNzM,421
9
+ odoo/addons/rma/data/stock_data.xml,sha256=_zwGmuGjhpptZWyXXdev9snSTjNekBpUsMXKD0bH8zE,332
10
+ odoo/addons/rma/i18n/de.po,sha256=IBaVV-MM48ekJMKHBiLlSawTztxYCZ7epE4ijVIKwEI,75750
11
+ odoo/addons/rma/i18n/de_AT.po,sha256=dyhGZUzwm0A7cDixBBUNHBrelARhJ1YH1rLMirk8VQ0,62233
12
+ odoo/addons/rma/i18n/es.po,sha256=YDgzRbNdmTuaYUEQELg3x2fmwjHmYNijeKu6vu1sYL0,79150
13
+ odoo/addons/rma/i18n/fr.po,sha256=lNIKhgKbjPNQvrBPFGrdEcETqEqKWLIo0EsdXRFvpSA,77431
14
+ odoo/addons/rma/i18n/it.po,sha256=oue5yFSYzJs58LgFITY_He29ku7HjiSoeQ_JbDMUKJQ,78352
15
+ odoo/addons/rma/i18n/nl.po,sha256=w9cAnQ_myaElrODNn6zghbD1JL1JBZGVRcDIvTOEdiE,62230
16
+ odoo/addons/rma/i18n/pt.po,sha256=Bv8zhVyPMB05lNYMdoktbF2HhzFfhYV5M8jdSuJIryA,69293
17
+ odoo/addons/rma/i18n/pt_BR.po,sha256=m4YshvyNIJ9hmdUgqlGDSgJN_1GFM8u94rcEavIonaI,68646
18
+ odoo/addons/rma/i18n/rma.pot,sha256=kXEEvEbs4hr-iN_D4iF2uYjsmYH91ib4Yn-_3SvAoaM,62900
19
+ odoo/addons/rma/i18n/ro.po,sha256=kO8mO2unXsVhIYf9yil-TyGh2_ybniJlFvzjCUSmpZ0,65932
20
+ odoo/addons/rma/i18n/zh_CN.po,sha256=Da3X5EY_ZAT0EU9QQLhEktQ4GQkFwGR112399VZ2BEk,62341
21
+ odoo/addons/rma/models/__init__.py,sha256=SwBeY3SB1s7Nrn54Mw0LvlOF7LTLCGU7mzyy5kUR4qs,408
22
+ odoo/addons/rma/models/account_move.py,sha256=50FicLA37KGBQjBfYNxE3RTJ2K3mA1vimQ-i4RDq7GQ,1659
23
+ odoo/addons/rma/models/res_company.py,sha256=9aireYGy_zrkD6rVGZW8nKpyWzyYcjuwHUDRRrJNqu0,3165
24
+ odoo/addons/rma/models/res_config_settings.py,sha256=EUgneMvrN7vxjs45ZYi8OQ5VwTefydqLqur_6PTPEfU,1619
25
+ odoo/addons/rma/models/res_partner.py,sha256=PEjLvtn7RpZVO5Ez_Fts9cDI2UgAIGfJUsMJU8WDNpg,1233
26
+ odoo/addons/rma/models/res_users.py,sha256=43A5IHYXEXe9M4G0cONf1l7EZ1AWl5mhWJ24EdtAfhI,351
27
+ odoo/addons/rma/models/rma.py,sha256=qRXaMxCVCSo_pG8p249e9Vo-5aWHeMxFq56LIK40bLg,50078
28
+ odoo/addons/rma/models/rma_finalization.py,sha256=kgJ6EFWBXJKGCwKy7bbWRUynExsCMQyjqcflDpvwtaE,681
29
+ odoo/addons/rma/models/rma_operation.py,sha256=xbDjthojPoZpSpqKg3eNyYcctv40hPsmrFcUHV3BUyg,460
30
+ odoo/addons/rma/models/rma_tag.py,sha256=RVFLyo8XmgjK_ftrRHWiEtzUQGs4b-OMhg0hwr-5Rzw,833
31
+ odoo/addons/rma/models/rma_team.py,sha256=Spu-uyju3-NauDVWUE4O41tRbHNcI9Ricpt6mEOSOlE,2018
32
+ odoo/addons/rma/models/stock_move.py,sha256=5Pa8_eYlmgzagcF-rhZOOQ0fPMW3o1bHGEr8-bjJz7g,4935
33
+ odoo/addons/rma/models/stock_picking.py,sha256=HJIlnzq0hyiufoNPb87-K5-DCLObraBaoLODL6fbniU,896
34
+ odoo/addons/rma/models/stock_warehouse.py,sha256=gYFIAN1gs0lMJE3AenrZsAD2VYCmvAdZUybYvTHfGdY,8283
35
+ odoo/addons/rma/readme/CONFIGURE.md,sha256=6ra3zJk5dFGFCaXnWqmwEQpr9nhe9bNLrgxnQ_mx8hs,815
36
+ odoo/addons/rma/readme/CONTRIBUTORS.md,sha256=Qx-OTUn-h1CYt2JUaf_I8UiCeIvQcqe1uhw3cxoj-bY,467
37
+ odoo/addons/rma/readme/DESCRIPTION.md,sha256=WWwGgoqa_WcT8k0SHH5KMOy2quzqO7uM6LyJIi1XHsI,555
38
+ odoo/addons/rma/readme/ROADMAP.md,sha256=QLDgd3EOa6A3q2oVG_5CTN72iq2IExaM59Xid1CVhbQ,347
39
+ odoo/addons/rma/readme/USAGE.md,sha256=AMvBduxDTfEeD73OLs2ZAk-kkMmawB5N7QaUkd2HQrg,3029
40
+ odoo/addons/rma/report/report.xml,sha256=rMg9_lccL-dJClHvMCmRI1Feh499gnExeskIylcvEhQ,467
41
+ odoo/addons/rma/security/ir.model.access.csv,sha256=zACDkLgOfICGiJGb4A9RNKbtlpBcFIC4rDZxESyBzbQ,1724
42
+ odoo/addons/rma/security/rma_security.xml,sha256=-KddXF9QUaRP73IH0YiEDzvhcNWyCPFZmhAyuxoBcWo,5253
43
+ odoo/addons/rma/static/description/icon.png,sha256=0VH8J6xmJMYW0dBaW-Ts-Gm5oRvbf9mOglT4vqUKxdU,7450
44
+ odoo/addons/rma/static/description/index.html,sha256=VqLFM6bBDWRulv3kLCD6S608C0SX9dsWO1f86XG9OyY,19405
45
+ odoo/addons/rma/tests/__init__.py,sha256=Q2ntkew4ZtzTd3zhA1Ly6e-C1NrU6zIPUVEr7hDD-CY,89
46
+ odoo/addons/rma/tests/test_rma.py,sha256=ZDnknmddU9kZWqjZw0gDfE1ZyRldLR4-yAqZj-Y43lY,38955
47
+ odoo/addons/rma/views/menus.xml,sha256=KWrTOvwY6IB-liNjRvBxTkdCSkes-CMTFI0iakxoavE,603
48
+ odoo/addons/rma/views/report_rma.xml,sha256=0gjKgVEt03yvgLA4jFb-154df6OhV3qqh4ISk-u0l6M,7163
49
+ odoo/addons/rma/views/res_config_settings_views.xml,sha256=Nk6gAgZ8WRQzl_9wZc4jSynfKaiw_noNKQGo8HTOgjY,9490
50
+ odoo/addons/rma/views/res_partner_views.xml,sha256=3tTGUOwoAk1KWTfNsBCo7KF7zMNZnx_d-8KXFD2R9OI,967
51
+ odoo/addons/rma/views/rma_finalization_views.xml,sha256=i_mi1AMtZevTzY0ANMZ2hr8MhgbPQDAQseJ-93ikzX8,2910
52
+ odoo/addons/rma/views/rma_portal_templates.xml,sha256=czetu-cXmHTccOcIuWXFAVmKpB-pWVpivkeEeYa6mGE,21936
53
+ odoo/addons/rma/views/rma_tag_views.xml,sha256=7w25nGbfDFn3IJdXikrDOp2-KyoChm6w9Vn5vpycRKc,2217
54
+ odoo/addons/rma/views/rma_team_views.xml,sha256=O3CsYUnKHs7o_Fe6H4ru1yO1dlCVItX-Xw9sFIPmToI,6636
55
+ odoo/addons/rma/views/rma_views.xml,sha256=YM-ITaxh9feA9USu_nOXTEUuiyDh7z2bdFHtiXyvpSs,19722
56
+ odoo/addons/rma/views/stock_picking_views.xml,sha256=n_zvjeQS8wedbvPLjbN-mZh53p41jYCcuyOATP2AZ2w,925
57
+ odoo/addons/rma/views/stock_warehouse_views.xml,sha256=01zLs5FioabWQSAICyn2BaKBwADex9Ct6JAVeN5vIYM,775
58
+ odoo/addons/rma/wizard/__init__.py,sha256=v5BQZoM0R5d2jOPuFiq500H2QAEee9eJB-4hKm5Wk7U,190
59
+ odoo/addons/rma/wizard/rma_delivery.py,sha256=sP3QiS6i9DmawmQMyS585mwM5xyUyhk9CC_WjiY8FtI,3475
60
+ odoo/addons/rma/wizard/rma_delivery_views.xml,sha256=fZs1mXjPMNKvfT0QYu_T0qPsFqWiu6svXg3AfXBJnNA,2747
61
+ odoo/addons/rma/wizard/rma_finalization_wizard.py,sha256=nT5Gb_Itl4289pIsN7h7vNa3Ngt63qF2ykVqtbMNzcs,630
62
+ odoo/addons/rma/wizard/rma_finalization_wizard_views.xml,sha256=q0rKm6iQum0P73muhWo_CxisVv5rExesPbR_FExV8fg,1346
63
+ odoo/addons/rma/wizard/rma_split.py,sha256=u_ITIr6aSit5uaZJE72wXiVysRTvRl_lKgypcHmBQnM,2105
64
+ odoo/addons/rma/wizard/rma_split_views.xml,sha256=0pegjQ4fMY53lsYSrSiKHFviis_Q2vOLqLZnouCn0vU,1510
65
+ odoo/addons/rma/wizard/stock_picking_return.py,sha256=kCqfVz3CgYkqO7vcGqR4ASgv-iz1B76atoDOAG4Cx4g,5786
66
+ odoo/addons/rma/wizard/stock_picking_return_views.xml,sha256=uNGl8QqY_ge3xn7fZE9HrHixS7mFdclLyejDiCfsyQs,1270
67
+ odoo_addon_rma-18.0.1.0.0.2.dist-info/METADATA,sha256=jZPnaDOXdObUzjFpFVOE4bfUWCXfAsbtc1NNfA5MRBA,8905
68
+ odoo_addon_rma-18.0.1.0.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
69
+ odoo_addon_rma-18.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
70
+ odoo_addon_rma-18.0.1.0.0.2.dist-info/RECORD,,
@@ -1,17 +0,0 @@
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
- if not wh.rma_in_type_id or not wh.rma_out_type_id:
14
- data = wh._create_or_update_sequences_and_picking_types()
15
- wh.write(data)
16
- route_vals = wh._create_or_update_route()
17
- wh.write(route_vals)