Skip to content

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

Closed
vava-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-booking-fix-orders-menu-vava
Closed

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

Conversation

@vava-odoo
Copy link
Copy Markdown
Collaborator

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

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented May 15, 2026

Pull request status dashboard

@vava-odoo vava-odoo force-pushed the 19.0-booking-fix-orders-menu-vava branch from a6bd2f8 to 2b88aea Compare May 21, 2026 08:18
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
@vava-odoo vava-odoo force-pushed the 19.0-booking-fix-orders-menu-vava branch from 2b88aea to 1f8b52c Compare May 21, 2026 08:19
Copy link
Copy Markdown
Contributor

@dhrs-odoo dhrs-odoo left a comment

Choose a reason for hiding this comment

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

Hello @vava-odoo
LGTM 🚀

@vava-odoo
Copy link
Copy Markdown
Collaborator Author

@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 #2176

Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@robodoo robodoo closed this in 7ab662b May 21, 2026
@fw-bot fw-bot deleted the 19.0-booking-fix-orders-menu-vava branch May 28, 2026 10:18
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.

3 participants