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

[ADD] sale_order_line_date : add test for commitment date removal on … #3364

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

metaminux
Copy link

…sale order line

Closes #3363

@metaminux
Copy link
Author

First commit is a test confirming issue #3363
Second one is my attempt to fix it.

@ferran-S73 @rousseldenis @Kev-Roche Ready for your reviews...

Regards,

)
line.move_ids.filtered(
lambda sm: sm.state not in ["cancel", "done"]
).write({"date_deadline": date_deadline})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@metaminux Here, try to build ids set as before to write just once

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to loop on lines because _expected_date calls ensure_one at first and we could call the write method on lines that don't belong to the same order, so date_deadline wont be the same for each line...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[16.0] sale_order_line_date : removing the date after sale has been confirmed raises TypeError
2 participants