Skip to content

[7186][IMP] purchase_order_no_owner: skip the owner check during test runs - #155

Open
AungKoKoLin1997 wants to merge 1 commit into
16.0from
16.0-imp-purchase_order_no_owner
Open

[7186][IMP] purchase_order_no_owner: skip the owner check during test runs#155
AungKoKoLin1997 wants to merge 1 commit into
16.0from
16.0-imp-purchase_order_no_owner

Conversation

@AungKoKoLin1997

@AungKoKoLin1997 AungKoKoLin1997 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The owner check in button_confirm() raised on every call, so any test of another
module that confirms a purchase order failed as soon as this module was installed.

The check is now skipped while test_enable is set, unless the caller opts in with
the test_purchase_order_no_owner context key - the same pattern core uses for
force_report_rendering in ir_actions_report. Production behaviour is unchanged:
form, list view, API and scheduled calls are all still checked.

Tests added for confirm-without-owner (raises), confirm with owner_id, confirm with
no_owner, the skip when the context key is absent, and the no_owner onchange.

QT7186

The check raised on every button_confirm() call, so tests of other modules
that confirm a purchase order failed as soon as this module was installed.
Skip it while test_enable is set, unless the caller opts in with the
test_purchase_order_no_owner context key, and cover both paths with tests.
@AungKoKoLin1997 AungKoKoLin1997 changed the title [IMP] purchase_order_no_owner: skip the owner check during test runs [7186][IMP] purchase_order_no_owner: skip the owner check during test runs Aug 25, 2026

@nobuQuartile nobuQuartile left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

2 participants