Skip to content

[19.0][FIX] report_wkhtmltopdf_param: Add ondelete cascade to paperformat_id - #1247

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-report_wkhtmltopdf_param-cascade
Nov 25, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:19.0from
Tecnativa:19.0-fix-report_wkhtmltopdf_param-cascade

Conversation

@christian-ramos-tecnativa

Copy link
Copy Markdown
Contributor

Avoid the validation error when deleting a paperformat with params:

The operation cannot be completed: Another model is using the record you are trying to delete.

The troublemaker is: 'wkhtmltopdf parameters' (report.paperformat.parameter)
Thanks to the following constraint: 'Paper Format' (paperformat_id)
How about archiving the record instead?

@Tecnativa
@pedrobaeza @Andrii9090-tecnativa

@OCA-git-bot OCA-git-bot added series:19.0 mod:report_wkhtmltopdf_param Module report_wkhtmltopdf_param labels Nov 24, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 19.0-ocabot-merge-pr-1247-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 1ecbefd into OCA:19.0 Nov 25, 2026
8 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza
pedrobaeza deleted the 19.0-fix-report_wkhtmltopdf_param-cascade branch November 25, 2026 11:46
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