Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] sale_order_line_position: Fix function flush doesn't exist in odoo16 #229

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
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
Loading