Skip to content

Conversation

david-s73
Copy link
Contributor

@david-s73 david-s73 commented May 21, 2025

  • The change has been made because it skipped the base functionality to check if the shipment has to be free or not if it exceeded the price set in the field free_over I leave the exact line of the Odoo code, as it is forcing the delivery_type to be the same as this in the price_method then does not make the if when it should be done.
    Odoo code

@david-s73
Copy link
Contributor Author

@rousseldenis Can you check the fix when you can?

@david-s73 david-s73 changed the title [18,0][FIX] delivery_price_method: Skip base functionality [18.0][FIX] delivery_price_method: Skip base functionality May 26, 2025
@david-s73
Copy link
Contributor Author

@pedrobaeza Can you check the fix when you can?

previous_method = False
if self.price_method in ("fixed", "base_on_rule"):
if self.price_method in ("fixed", "base_on_rule") and (
not self.free_over or not self.amount or order.amount_total < self.amount
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not using self._compute_currency() as in base code ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand that you mean changing the order.amount to self._compute_currency() right?

@david-s73 david-s73 force-pushed the 18.0-fix-delivery_price_method branch from 5e360a3 to ab70172 Compare June 25, 2025 08:57
If the pricing method is 'rule-based' it does not take into account the ‘free_over’ field so if it receives a price higher than any rule it will get a base error message.
@david-s73 david-s73 force-pushed the 18.0-fix-delivery_price_method branch from ab70172 to f564bac Compare June 25, 2025 11:29
Vicent-S73 pushed a commit to Studio73/e-commerce that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants