Skip to content

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

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

[FIX] booking_engine: active filter group_by instead of context value#2202
fw-bot wants to merge 1 commit into
odoo:saas-19.1from
odoo-dev:saas-19.1-19.0-booking-fix-orders-menu-vava-526888-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

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

This PR targets saas-19.1 and is part of the forward-port chain. Further PRs will be created up to master.

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

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented May 21, 2026

@vava-odoo ci/industry failed on this forward-port PR

@vava-odoo
Copy link
Copy Markdown
Collaborator

@robodoo override=ci/industry
@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 #2202

X-original-commit: 7ab662b
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented May 21, 2026

@vava-odoo the next pull request (#2203) is in conflict. You can merge the chain up to here by saying

@robodoo r+

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

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 #2202

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.1-19.0-booking-fix-orders-menu-vava-526888-fw branch May 28, 2026 11:52
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