Skip to content

TA#77476 [14.0][INP] stock_serial_single_quant : bypass constraint by warehous…#241

Merged
abenzbiria merged 6 commits into
14.0from
77476
Jun 9, 2026
Merged

TA#77476 [14.0][INP] stock_serial_single_quant : bypass constraint by warehous…#241
abenzbiria merged 6 commits into
14.0from
77476

Conversation

@abenzbiria

Copy link
Copy Markdown
Contributor

…e and fix singleton error

This commit introduces the following changes:

  • Adds a boolean field bypass_serial_single_quant on stock.warehouse. When enabled, it bypasses the serial number constraints for moves destined to this warehouse.
  • Refactors _requires_serial_check in stock.move.line to filter lines needing validation, avoiding the use of forbidden continue statements.
  • Fixes a ValueError: Expected singleton in _check_serial_number_source_location when a serial number has positive quants in multiple locations. The system now properly formats a ValidationError joining all location names.
  • Adds comprehensive unit tests using pytest to cover the new warehouse bypass feature and the multiple quants inconsistency scenario.

@codacy-production

codacy-production Bot commented Jun 9, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@abenzbiria
abenzbiria merged commit ef9dbc9 into 14.0 Jun 9, 2026
3 of 4 checks passed
@abenzbiria
abenzbiria deleted the 77476 branch June 9, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant