Skip to content

Commit

Permalink
[FIX] Trigger the auto compute if flag changes but not the computed_v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
lmarion-source authored and rousseldenis committed Sep 18, 2023
1 parent 5c0092d commit 58eb9e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def _sale_stock_data_to_vals(self, sale_stock_data, create=False):
{
"product_id": sale_stock_data.product.id,
"profile_id": sale_stock_data.profile.id,
"auto_apply_computed_value": sale_stock_data.profile.auto_apply_computed_value
}
)
return res
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,4 @@ def test_02(self):
self.assertEqual(len(levels.sale_stock_level_history_ids), 1)
self.stock_profile._compute_abc_classification()
self.assertEqual(len(levels.sale_stock_level_history_ids), 2)

0 comments on commit 58eb9e7

Please sign in to comment.