[18.0][MIG] delivery_carrier_pricelist: Migration to 18.0#920
Merged
OCA-git-bot merged 16 commits intoOCA:18.0from Dec 31, 2024
Merged
[18.0][MIG] delivery_carrier_pricelist: Migration to 18.0#920OCA-git-bot merged 16 commits intoOCA:18.0from
OCA-git-bot merged 16 commits intoOCA:18.0from
Conversation
New module allowing to compute a delivery cost based on the sales order pricelist. Most of the code of the module is to update the many 'attrs' of the 'delivery' module which have domains based on the "delivery_type" field and cannot be extended in XML without breaking compatibility. When using an external provider (such as DHL, UPS), the "Pricelist" provider cannot be used. In this case, the invoice policy, which is by default "Estimate" or "Real" has a third option "Pricelist Cost". This option would not make sense with "Estimate" or "Real", which is why this field is used.
Previous implementation was writing _every_ time on the carrier for _every_ price compute request. This was causing many write conflicts.
Currently translated at 100.0% (12 of 12 strings) Translation: delivery-carrier-14.0/delivery-carrier-14.0-delivery_carrier_pricelist Translate-URL: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-delivery_carrier_pricelist/es/
311f11b to
6bff3f5
Compare
jbaudoux
reviewed
Dec 30, 2024
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
| { | ||
| "name": "Shipping Method Pricelist", | ||
| "summary": "Compute method method fees based on the product's pricelist.", |
Contributor
There was a problem hiding this comment.
Suggested change
| "summary": "Compute method method fees based on the product's pricelist.", | |
| "summary": "Compute delivery method price based on the product's pricelist.", |
| @@ -0,0 +1,13 @@ | |||
| Compute shipping methods fees based on Product Pricelists. | |||
Contributor
There was a problem hiding this comment.
Suggested change
| Compute shipping methods fees based on Product Pricelists. | |
| Compute the delivery method price based on its related delivery product price according to the sales order pricelist. |
| Compute shipping methods fees based on Product Pricelists. | ||
|
|
||
| It allows to have different pricing per customer, prices depending on | ||
| dates, ... The pricelist based cost is computed from the shipping |
Contributor
There was a problem hiding this comment.
Suggested change
| dates, ... The pricelist based cost is computed from the shipping | |
| dates, ... The pricelist based cost is computed from the delivery |
Comment on lines
15
to
24
| selection_add=[("pricelist", "Pricelist Cost")], | ||
| ondelete={"pricelist": "set default"}, | ||
| help="Estimated Cost: the customer will be invoiced the estimated" | ||
| " cost of the shipping.\n" | ||
| "Real Cost: the customer will be invoiced the real cost of the" | ||
| " shipping, the cost of the shipping will be updated on the" | ||
| " SO after the delivery.\n" | ||
| "Pricelist Cost: the customer will be invoiced the price of the " | ||
| "product based on the pricelist of the sales order. The provider's " | ||
| "cost is ignored.", |
Contributor
There was a problem hiding this comment.
Suggested change
| selection_add=[("pricelist", "Pricelist Cost")], | |
| ondelete={"pricelist": "set default"}, | |
| help="Estimated Cost: the customer will be invoiced the estimated" | |
| " cost of the shipping.\n" | |
| "Real Cost: the customer will be invoiced the real cost of the" | |
| " shipping, the cost of the shipping will be updated on the" | |
| " SO after the delivery.\n" | |
| "Pricelist Cost: the customer will be invoiced the price of the " | |
| "product based on the pricelist of the sales order. The provider's " | |
| "cost is ignored.", | |
| selection_add=[("pricelist", "Delivery Product Price")], | |
| ondelete={"pricelist": "set default"}, | |
| help="Estimated Cost: the customer will be invoiced the estimated" | |
| " cost of the shipping.\n" | |
| "Real Cost: the customer will be invoiced the real cost of the" | |
| " shipping, the cost of the shipping will be updated on the" | |
| " SO after the delivery.\n" | |
| "Delivery Product Price: the customer will be invoiced the price of the " | |
| "related delivery product based on the pricelist of the sales order. The provider's " | |
| "cost is ignored.", |
| # Copyright 2020 Camptocamp | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
| { | ||
| "name": "Shipping Method Pricelist", |
Contributor
There was a problem hiding this comment.
Suggested change
| "name": "Shipping Method Pricelist", | |
| "name": "Delivery Method Pricelist", |
6bff3f5 to
3868e22
Compare
jbaudoux
approved these changes
Dec 31, 2024
ajaniszewska-dev
approved these changes
Dec 31, 2024
Contributor
|
/ocabot migration delivery_carrier_pricelist |
Contributor
|
/ocabot merge nobump |
Contributor
|
Hey, thanks for contributing! Proceeding to merge this for you. |
OCA-git-bot
added a commit
that referenced
this pull request
Dec 31, 2024
Contributor
|
It looks like something changed on |
Contributor
|
Congratulations, your PR was merged at 22534cc. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
saleinstead ofsale_stock, I need to update thedelivery_carrier_pricelistmodule to depend onstock_deliveryinstead ofdelivery.