Skip to content

[18.0][IMP] purchase_order_import: replace assert statements in favor of UserError#1367

Open
yankinmax wants to merge 1 commit into
OCA:18.0from
camptocamp:imp-purchase_order_import-remove-assert
Open

[18.0][IMP] purchase_order_import: replace assert statements in favor of UserError#1367
yankinmax wants to merge 1 commit into
OCA:18.0from
camptocamp:imp-purchase_order_import-remove-assert

Conversation

@yankinmax

Copy link
Copy Markdown
Contributor

We should not use assert statements in business code. Python ignores assertions when running in optimized mode.

@OCA-git-bot OCA-git-bot added series:18.0 mod:purchase_order_import Module purchase_order_import labels Jul 6, 2026
@yankinmax

Copy link
Copy Markdown
Contributor Author

Hello @simahawk
Addressed your request here: #1335 (comment)

@simahawk simahawk changed the title [18.0][IMP] purchase_order_import: replace assert statements in favor for UserError [18.0][IMP] purchase_order_import: replace assert statements in favor of UserError Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:purchase_order_import Module purchase_order_import series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants