OCA / rma

Odoo for Return Merchandise Authorization (RMA)
GNU Affero General Public License v3.0
78 stars 206 forks source link

The quantity done for the product 'Baby Shanghai Bok Choy' must be equal to its initial demand because the stock move is linked to an RMA (RMA0009). #398

Closed suppliesterminal closed 2 months ago

suppliesterminal commented 2 months ago

Module

The name of the module that has a bug. RMA

Describe the bug

A clear and concise description of what the bug is. The logic on line 65 of stock_move.py is not always passed:

if rma_receiver and move.quantity_done != rma_receiver.product_uom_qty

To Reproduce

Affected versions: 15

Steps to reproduce the behavior:

  1. RMA receipt
  2. set quantity
  3. validate

Expected behavior A clear and concise description of what you expected to happen. In my case, quantity_done : 13.700000000000001 product_uom_qty : 13.7 it should return True, but actually False

Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)

image image