[19.0][MIG] sale_delivery_split_date: Migration to 19.0#3948
[19.0][MIG] sale_delivery_split_date: Migration to 19.0#3948OCA-git-bot merged 24 commits intoOCA:19.0from
Conversation
|
/ocabot migration sale_delivery_split_date |
| <head> | ||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" /> | ||
| <title>Sale Delivery Split Date</title> |
There was a problem hiding this comment.
Is this change generated by pre-commit? Strange change to <title>README.rst</title>
There was a problem hiding this comment.
Yes, it is precommit doing the change...
yankinmax
left a comment
There was a problem hiding this comment.
pre-approve considering a question
dfe8fef to
9bebdaf
Compare
|
One of the dependencies to be renamed, waiting for the final name to be defined - "#3947" |
9bebdaf to
99c6967
Compare
Updated |
ivantodorovich
left a comment
There was a problem hiding this comment.
small comment, non blocking
| if self.commitment_date: | ||
| comm_date = self._get_security_lead_time_commitment_date() | ||
| vals["name"] += "/" + format_date(self.env, comm_date.date()) | ||
| vals["name"] = ( |
There was a problem hiding this comment.
Maybe it's just me, but I found it was more readable before.
Why this change? it doesn't seem like an useful diff
There was a problem hiding this comment.
To my understanding, usage of "+=" for strings is considered a bad practice, bacause it might lead to unxpected errors when one of arguments is not a string, f.e. "False" as it might be with Sale Line Name
* [ADD] sale_delivery_split_date module * [ADD] sale_delivery_split_date: add computed min_dt to allow deliveries to be searchable by the scheduled date
Note that sale_delivery_split_date is not compatible with sale_procurement_group_by_commitment_date
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-14.0/sale-workflow-14.0-sale_delivery_split_date Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_delivery_split_date/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: sale-workflow-16.0/sale-workflow-16.0-sale_delivery_split_date Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_delivery_split_date/
Currently translated at 100.0% (2 of 2 strings) Translation: sale-workflow-16.0/sale-workflow-16.0-sale_delivery_split_date Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_delivery_split_date/it/
99c6967 to
d2b71a9
Compare
|
Are the 2 failing checks blocking or this can be used? |
d2b71a9 to
b251c21
Compare
It could be used. Warnings were about test coverage and the old status of dependencies. |
|
This PR has the |
|
Hello @rousseldenis can this PR be merged now? All suggestions are taken into account. |
|
Hello @OCA/crm-sales-marketing-maintainers Could you check and merge this PR ? Thanks a lot |
alexey-pelykh
left a comment
There was a problem hiding this comment.
Thorough migration from 18.0 to 19.0. The module correctly adapts to the renamed dependency (sale_procurement_group_by_line -> sale_stock_reference_by_line) and the new stock.reference model API. Both dependency PRs (#3946, #3947) are merged. CI is fully green.
Key migration changes reviewed:
-
Dependency update --
sale_procurement_group_by_linerenamed tosale_stock_reference_by_linewith comment# ex. sale_procurement_group_by_linefor traceability. Good. -
API adaptation --
_prepare_procurement_group_vals()correctly renamed to_prepare_reference_vals()to match the new base module API. The string concatenation refactored fromvals["name"] +=to explicitvals.get("name", "") + ...-- reasonable defensive approach as discussed in prior review comments. -
_prepare_procurement_values-- Method signature correctly drops thegroup_idparameter to match the 19.0 base. The walrus operator usage (if line_com_date := self.commitment_date:) is clean and was already reviewed/approved. The addition ofdate_deadline=line_com_datealongsidedate_plannedis a welcome improvement to propagate the commitment date as the move deadline. -
Tests -- Properly adapted from
TransactionCasetoTestSaleStockCommonto avoid demo data dependency (which Odoo 19.0 no longer provides by default). Allprocurement_group_idreferences updated tostock_reference_id. Newtest_wo_a_datetest covers the no-commitment-date edge case. Thetest_check_same_datesand security lead time tests now also verifydate_deadlineon stock moves -- good additional coverage. -
Views --
stock_picking.xmlunchanged from 18.0 logic, makesscheduled_datevisible in tree and searchable. Standard OCA pattern.
No blocking issues found. LGTM.
|
Hello @OCA/crm-sales-marketing-maintainers Could you check and merge this PR ? |
|
Hello @rousseldenis can you pls 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 c31ef91. Thanks a lot for contributing to OCA. ❤️ |
Depends on: