-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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_date: remove TypeError #3540
[16.0] [FIX] sale_order_line_date: remove TypeError #3540
Conversation
10dbc32
to
1ff8a13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not doing everything in the if block, and checking that "commitment_date" is correctly set only once?
if vals.get("commitment_date"):
moves_to_upd = set()
for move in self.move_ids:
[...]
if moves_to_upd:
[...]
1ff8a13
to
cb9542f
Compare
This PR has the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as #3364, except that one includes a test, and it handles empty values better it seems.
Next time you add a fix, please check any open PR for the same module. |
Yes, but a different solution. |
I'm sorry if you feel me closing this PR was too swift or unjust. Do you want to argue in favor of your solution? |
Oh don't worry. What do you think @LuciaMarchalFactorLibre ? Please review #3364 |
I think it is good to leave this PR closed because #3364 is more complete and is already merged |
FL-556-5216
There is no checking that commitment_date has a correct value, only that it is set.
File "sale-workflow/sale_order_line_date/models/sale_order_line.py", line 40, in write
Translating an empty value is not done correctly in the stock module
File "/odoo-base/odoo-server/addons/stock/models/stock_move.py", line 698, in write
File "/odoo-base/odoo-server/addons/stock/models/stock_move.py", line 539, in _set_date_deadline