[MIG] sale_order_line_remove: Migration to 16.0#2978
Conversation
|
/ocabot migration sale_order_line_remove |
| and not line.invoice_lines | ||
| and not line.move_ids.filtered(lambda move: move.state == "done") | ||
| ) | ||
| invoiced_lines = self.sudo().filtered( |
There was a problem hiding this comment.
There was a problem hiding this comment.
@rousseldenis Using sudo() addressed access issues, ensuring all possible lines are found and filtered. Since this sudo() is used to raise an error and prevent deletion, it actually makes the process more secure.
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
This PR has the |
|
@rousseldenis Please, can you merge this PR? |
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 5ce9db8. Thanks a lot for contributing to OCA. ❤️ |
No description provided.