Skip to content

[FIX] booking_engine: active filter group_by instead of context value#2203

Closed
fw-bot wants to merge 1 commit into
odoo:saas-19.2from
odoo-dev:saas-19.2-19.0-booking-fix-orders-menu-vava-528731-fw
Closed

[FIX] booking_engine: active filter group_by instead of context value#2203
fw-bot wants to merge 1 commit into
odoo:saas-19.2from
odoo-dev:saas-19.2-19.0-booking-fix-orders-menu-vava-528731-fw

Conversation

@fw-bot
Copy link
Copy Markdown

@fw-bot fw-bot commented May 21, 2026

Steps to reproduce:

  • Go to booking engine app > orders > open an order
  • Open the product catalog
  • Traceback

Reason:
the 'group_by' was kept in the context, although the view was changed to another model (product.template instead of sale.order). This leads to an error because the field (rental_status) does not exist on this model.

This commit fixes the issue by activating a group_by filter on the Orders view by default instead of hardcoding the groupby key in the context.

task-6218176

Forward-Port-Of: #2176

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented May 21, 2026

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented May 21, 2026

@vava-odoo cherrypicking of pull request #2176 failed.

stdout:

Auto-merging booking_engine/__manifest__.py
CONFLICT (content): Merge conflict in booking_engine/__manifest__.py
Auto-merging booking_engine/data/ir_actions_act_window.xml

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

:shipit: you can use git-fw to re-do the forward-port for you locally.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

Steps to reproduce:
- Go to booking engine app > orders > open an order
- Open the product catalog
- Traceback

Reason:
the 'group_by' was kept in the context, although the view was changed to
another model (product.template instead of sale.order). This leads to
an error because the field (rental_status) does not exist on this model.

This commit fixes the issue by activating a group_by filter on the
Orders view by default instead of hardcoding the groupby key in the context.

task-6218176

X-original-commit: 7ab662b
@vava-odoo vava-odoo force-pushed the saas-19.2-19.0-booking-fix-orders-menu-vava-528731-fw branch from fadb180 to 7eb7edc Compare May 21, 2026 11:50
@vava-odoo
Copy link
Copy Markdown
Collaborator

@robodoo r+

robodoo pushed a commit that referenced this pull request May 21, 2026
Steps to reproduce:
- Go to booking engine app > orders > open an order
- Open the product catalog
- Traceback

Reason:
the 'group_by' was kept in the context, although the view was changed to
another model (product.template instead of sale.order). This leads to
an error because the field (rental_status) does not exist on this model.

This commit fixes the issue by activating a group_by filter on the
Orders view by default instead of hardcoding the groupby key in the context.

task-6218176

closes #2203

X-original-commit: 7ab662b
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@robodoo robodoo closed this May 21, 2026
@fw-bot fw-bot deleted the saas-19.2-19.0-booking-fix-orders-menu-vava-528731-fw branch May 28, 2026 13:35
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.

3 participants