Skip to content

[19.0][FIX] sale_financial_risk: set require_signature=False in payment test - #572

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
versada:19.0-fix-sale-financial-risk-require-signature-usi
Aug 19, 2026
Merged

[19.0][FIX] sale_financial_risk: set require_signature=False in payment test#572
OCA-git-bot merged 1 commit into
OCA:19.0from
versada:19.0-fix-sale-financial-risk-require-signature-usi

Conversation

@psugne

@psugne psugne commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

[FIX] sale_financial_risk: set require_signature=False in payment test

Odoo 19.0 (odoo/odoo#278854) made sale.payment.transaction
_check_amount_and_confirm_order check _has_to_be_signed(), so an online
payment no longer auto-confirms a quotation that still requires an online
signature. On databases where the company enables Online Signature, the
test order gets require_signature=True and stays in 'draft', breaking
test_payment_risk_bypass with 'draft' != 'sale'.

Disable signature on the test order, matching the fix odoo applied to its own sale/pos tests, so the test isolates the risk-bypass behaviour it
actually checks.

Odoo 19.0 (odoo/odoo#280403) re-added a `_has_to_be_signed()` check to
sale.payment.transaction._check_amount_and_confirm_order, so an online
payment no longer auto-confirms a quotation that still requires an online
signature. On databases where the company enables Online Signature, the
test order gets require_signature=True and stays in 'draft', breaking
test_payment_risk_bypass. Disable signature on the test order, matching
the fix odoo applied to its own sale/pos tests.
@OCA-git-bot OCA-git-bot added series:19.0 mod:sale_financial_risk Module sale_financial_risk labels Aug 19, 2026

@carlos-lopez-tecnativa carlos-lopez-tecnativa 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, just clarify that the PR that introduces this change is odoo/odoo#280403.

@pedrobaeza, please review this.

@pedrobaeza pedrobaeza changed the title [FIX] sale_financial_risk: set require_signature=False in payment test [19.0][FIX] sale_financial_risk: set require_signature=False in payment test Aug 19, 2026

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-572-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 26aef64 into OCA:19.0 Aug 19, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 153ffd6. Thanks a lot for contributing to OCA. ❤️

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.

4 participants