Skip to content

[16.0][IMP] ignore containers when computing delivery fees#401

Open
mihien wants to merge 1 commit into
16.0from
16.0-imp-container_meals
Open

[16.0][IMP] ignore containers when computing delivery fees#401
mihien wants to merge 1 commit into
16.0from
16.0-imp-container_meals

Conversation

@mihien

@mihien mihien commented Apr 9, 2026

Copy link
Copy Markdown
Member

Description

Containers are not to be taken into account when computing the delivery costs.

Odoo task (if applicable)

14592

Checklist before approval

  • Tests are present (or not needed).
  • Credits/copyright have been changed correctly.
  • Change log snippet is present.
  • (If a new module) Moving this to OCA has been considered.

@polchampion polchampion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

successful functional test on cookingo-test

@huguesdk huguesdk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

at first, i was surprised that this change touched 34 files and needed 27 commits. ☺️ a message on the pr explaining that this is based on #382 would help. also, the title of the pr should be more descriptive, as the name of the branch.

the commit message should use the imperative (as explained here): ”ignore containers for delivery computation”

Comment thread container_meals/controllers/main.py Outdated
@@ -0,0 +1,35 @@
# SPDX-FileCopyrightText: 2022 Coop IT Easy SC

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

has this really be written in 2022?

Comment thread container_meals/controllers/main.py Outdated
from odoo import http
from odoo.http import request

from odoo.addons.website_sale_delivery.controllers.main import WebsiteSaleDelivery

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should add website_sale_delivery to depends in __manifest__.py.

Comment thread container_meals/controllers/main.py Outdated
Comment thread container_meals/controllers/main.py Outdated
@huguesdk huguesdk force-pushed the 16.0-imp-container_meals branch from 5e3720e to bb01079 Compare June 8, 2026 15:15
@huguesdk

huguesdk commented Jun 8, 2026

Copy link
Copy Markdown
Member

@mihien i rebased on top of the rebased #382, changed the logic and added a test. what do you think?

@huguesdk huguesdk changed the title [16.0][IMP] container meals [16.0][IMP] ignore containers when computing delivery fees Jun 8, 2026
ignore containers when computing delivery fees.
@huguesdk huguesdk force-pushed the 16.0-imp-container_meals branch from bb01079 to b9cc7b3 Compare June 9, 2026 07:27
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.

4 participants