odoo-addon-rma 16.0.2.0.1__py3-none-any.whl → 16.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.
@@ -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:9c43e975c251d8039273e5286491967e6d91730f64ede514284fe4d2956cf8e9
10
+ !! source digest: sha256:0cbec4352a7f5d8c1ca96d0cb4339c78bf1b97293fecd44e9605e1c7b020d05b
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -5,7 +5,7 @@
5
5
  {
6
6
  "name": "Return Merchandise Authorization Management",
7
7
  "summary": "Return Merchandise Authorization (RMA)",
8
- "version": "16.0.2.0.1",
8
+ "version": "16.0.2.0.2",
9
9
  "development_status": "Production/Stable",
10
10
  "category": "RMA",
11
11
  "website": "https://github.com/OCA/rma",
@@ -4,6 +4,7 @@
4
4
 
5
5
  from odoo import _, api, fields, models
6
6
  from odoo.exceptions import ValidationError
7
+ from odoo.tools import float_compare
7
8
 
8
9
 
9
10
  class StockMove(models.Model):
@@ -60,7 +61,18 @@ class StockMove(models.Model):
60
61
  """
61
62
  for move in self.filtered(lambda r: r.state not in ("done", "cancel")):
62
63
  rma_receiver = move.sudo().rma_receiver_ids
63
- if rma_receiver and move.quantity_done != rma_receiver.product_uom_qty:
64
+ qty_prec = self.env["decimal.precision"].precision_get(
65
+ "Product Unit of Measure"
66
+ )
67
+ if (
68
+ rma_receiver
69
+ and float_compare(
70
+ move.quantity_done,
71
+ rma_receiver.product_uom_qty,
72
+ precision_digits=qty_prec,
73
+ )
74
+ != 0
75
+ ):
64
76
  raise ValidationError(
65
77
  _(
66
78
  "The quantity done for the product '%(id)s' must "
@@ -31,7 +31,7 @@ class StockPicking(models.Model):
31
31
  def action_view_rma(self):
32
32
  self.ensure_one()
33
33
  action = self.env["ir.actions.act_window"]._for_xml_id("rma.rma_action")
34
- rma = self.move_lines.mapped("rma_ids")
34
+ rma = self.move_ids.rma_ids
35
35
  if len(rma) == 1:
36
36
  action.update(
37
37
  res_id=rma.id,
@@ -366,7 +366,7 @@ ul.auto-toc {
366
366
  !! This file is generated by oca-gen-addon-readme !!
367
367
  !! changes will be overwritten. !!
368
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:9c43e975c251d8039273e5286491967e6d91730f64ede514284fe4d2956cf8e9
369
+ !! source digest: sha256:0cbec4352a7f5d8c1ca96d0cb4339c78bf1b97293fecd44e9605e1c7b020d05b
370
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
371
  <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/16.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-16-0/rma-16-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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
372
  <p>This module allows you to manage <a class="reference external" href="https://en.wikipedia.org/wiki/Return_merchandise_authorization">Return Merchandise Authorization (RMA)</a>.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-rma
3
- Version: 16.0.2.0.1
3
+ Version: 16.0.2.0.2
4
4
  Summary: Return Merchandise Authorization (RMA)
5
5
  Home-page: https://github.com/OCA/rma
6
6
  Author: Tecnativa, Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Return Merchandise Authorization Management
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:9c43e975c251d8039273e5286491967e6d91730f64ede514284fe4d2956cf8e9
27
+ !! source digest: sha256:0cbec4352a7f5d8c1ca96d0cb4339c78bf1b97293fecd44e9605e1c7b020d05b
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
@@ -1,6 +1,6 @@
1
- odoo/addons/rma/README.rst,sha256=-dRsUvKJZX5ACr1KFf_tIf5HOd2oAnE2m4gumFX9BTA,8130
1
+ odoo/addons/rma/README.rst,sha256=JXOu9kXWBjDtJfSM5YfEygBex6aWYPSFWmQpW3EkEUg,8130
2
2
  odoo/addons/rma/__init__.py,sha256=KD8ElbTlUwRgGDQzvMIqp-WeEXGTuHqQT352BCbK2I0,168
3
- odoo/addons/rma/__manifest__.py,sha256=eoQlsr5EJTTHTvlAryvu8TuPtPSi92ZNCbbR--K8TGk,1527
3
+ odoo/addons/rma/__manifest__.py,sha256=eoK_epCZoBV-ObVakgqPUYXyvQnat4IXsl1SchhBK_4,1527
4
4
  odoo/addons/rma/hooks.py,sha256=Zd5KcqVj_ONKV-GyrZiXOAmdRGBRRczJGdhrgUrzY_s,3320
5
5
  odoo/addons/rma/controllers/__init__.py,sha256=ZAYSY9pxyJjumL2QVLuxqtBzjLwKPiQsVXMBAWvNGGY,85
6
6
  odoo/addons/rma/controllers/main.py,sha256=ye0OSKRPZ6YhQzRt_Gv1W0Owd9_gdDScLhUu6ISvAps,5406
@@ -30,8 +30,8 @@ odoo/addons/rma/models/rma_finalization.py,sha256=kgJ6EFWBXJKGCwKy7bbWRUynExsCMQ
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
32
32
  odoo/addons/rma/models/rma_team.py,sha256=5gyghbFOE4RR6dR5TQ1lRC4kK88i6G51V3dlY9gN6EY,1935
33
- odoo/addons/rma/models/stock_move.py,sha256=CJFgGTrDOMOfror6rYNoZI5HYd1ufeinCvn-AyPjqUc,4590
34
- odoo/addons/rma/models/stock_picking.py,sha256=PNSlJMC2VUfvWxYV498sj4ettBqVf-SBrGbqRgSaPrU,1425
33
+ odoo/addons/rma/models/stock_move.py,sha256=DZVdsMTcXGKjkrTVOHfd4Ul8YMpLxlskVXK8ucCNw4c,4939
34
+ odoo/addons/rma/models/stock_picking.py,sha256=z9FcgyEjzQDk4Cptk_b6A4LjY-4J3E7JHF8jFeFnWvw,1413
35
35
  odoo/addons/rma/models/stock_warehouse.py,sha256=GLxl9DsFfGEWpdycWx89fiyZ55xmHiJds7lzz35UARU,8129
36
36
  odoo/addons/rma/readme/CONFIGURE.rst,sha256=18sDF1e6lSdLnaWb6R1MVCgqT1-5QTaazG9HQKySdlg,796
37
37
  odoo/addons/rma/readme/CONTRIBUTORS.rst,sha256=jmL-wDit619nzJdFeRVjx5hec6iqmYa81dKQ0N1g5LE,272
@@ -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=0j6-jduV04KW3a5p8LFOIeUrC7w-A191AdJzCOJRdBM,18840
45
+ odoo/addons/rma/static/description/index.html,sha256=KHlyMJKHfwAhUb_XigVJvPrliknV77I8gQxG-5Nnhzg,18840
46
46
  odoo/addons/rma/tests/__init__.py,sha256=Q2ntkew4ZtzTd3zhA1Ly6e-C1NrU6zIPUVEr7hDD-CY,89
47
47
  odoo/addons/rma/tests/test_rma.py,sha256=DL1yOrR7-8Jqm4zmnHFrwGGjcRWS6fktXhUkPzirKd8,37230
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=w5BpawRSCac3-YsS-doYFX-3kxqWqlfA_4bU9dt_F0o,1087
68
- odoo_addon_rma-16.0.2.0.1.dist-info/METADATA,sha256=_cPPMs1_XlfJuZe08HuC9Vj1H1UGodLucb87D28hQ7Q,8713
69
- odoo_addon_rma-16.0.2.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
70
- odoo_addon_rma-16.0.2.0.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
- odoo_addon_rma-16.0.2.0.1.dist-info/RECORD,,
68
+ odoo_addon_rma-16.0.2.0.2.dist-info/METADATA,sha256=lu2cH9AeqsNHeqO-1pApd0b-RwlSt6_8nccmAZRQXf4,8713
69
+ odoo_addon_rma-16.0.2.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
70
+ odoo_addon_rma-16.0.2.0.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
+ odoo_addon_rma-16.0.2.0.2.dist-info/RECORD,,