Skip to content

[18.0][FIX] purchase_blanket_order: add company_id filter to eligible BO lines domain#3064

Open
fsmw wants to merge 1 commit into
OCA:18.0from
fsmw:18.0-fix-purchase-blanket-order-company-domain
Open

[18.0][FIX] purchase_blanket_order: add company_id filter to eligible BO lines domain#3064
fsmw wants to merge 1 commit into
OCA:18.0from
fsmw:18.0-fix-purchase-blanket-order-company-domain

Conversation

@fsmw
Copy link
Copy Markdown
Contributor

@fsmw fsmw commented May 17, 2026

Fixes #2958

In multi-company environments, _get_eligible_bo_lines_domain did not filter by company_id. This could match blanket order lines from other companies or raise AccessError when the other company was not active.

Changes:

  • Add ('company_id', 'in', [False, self.order_id.company_id.id]) to the domain
  • Supports shared/global blanket orders (company_id=False)
  • Add test asserting company_id appears in the returned domain

@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_blanket_order Module purchase_blanket_order labels May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:purchase_blanket_order Module purchase_blanket_order series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

purchase_blanket_order: Blanket Ordre Line company Filter

2 participants