Skip to content

Commit

Permalink
[FIX] sale_order_line_position: remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangphuc1410 authored and trisdoan committed Mar 26, 2024
1 parent f56e5c1 commit 7b9fb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_order_line_position/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _add_next_position_on_new_line(self, vals_list):
]
if sale_ids:
ids = tuple(set(sale_ids))
self.flush_model()
self.env.flush_all()
query = """
SELECT order_id, max(position) FROM sale_order_line
WHERE order_id in %s GROUP BY order_id;
Expand Down

0 comments on commit 7b9fb9c

Please sign in to comment.