Skip to content

Commit

Permalink
[FIX] mrp_subcontracting: fix test_several_backorders_2
Browse files Browse the repository at this point in the history
qty_done -> quantity

Breaks tests for community version.
Error is undetected with enterprise module 'stock_barcode' that re-introduce the field 'qty_done'

closes odoo#163729

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
  • Loading branch information
DavidFesquet authored and willylohws committed May 1, 2024
1 parent 394098d commit da82872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mrp_subcontracting/tests/test_subcontracting.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def test_several_backorders_2(self):

def process_picking_with_backorder(picking, qty):
# Process the picking by putting the given quantity on the stock.move.line
picking.move_line_ids.ensure_one().qty_done = qty
picking.move_line_ids.ensure_one().quantity = qty
action = picking.button_validate()
if isinstance(action, dict):
wizard = Form(self.env[action['res_model']].with_context(action['context'])).save()
Expand Down

0 comments on commit da82872

Please sign in to comment.