Skip to content

Commit

Permalink
Merge PR OCA#633 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Mar 12, 2020
2 parents 6d57c77 + 588330a commit 42e5f8e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ def test_sync_cost_price(self):
inventory._action_done()
inventory.move_ids.date = '2019-10-05 00:00:00'

# Include this picking to delay next assertion (aleatory error)
picking_out_3 = self.picking_out.copy()
move_out_3 = picking_out_3.move_lines[:1]
move_out_3.quantity_done = move_out_2.product_uom_qty
picking_out_3.action_done()
move_out_3.date = '2019-10-04 00:00:00'

self.assertEqual(self.product.standard_price, 5.0)
move_in.price_unit = 2.0
self.assertEqual(self.product.standard_price, 2.27)
Expand Down

0 comments on commit 42e5f8e

Please sign in to comment.