Skip to content

[16.0][FIX] shopfloor_reception: prevent response validation error on lot data without name - #1245

Open
nicolas-delbovier-acsone wants to merge 1 commit into
OCA:16.0from
acsone:16.0-fix-shopfloor_reception-lot-parsing
Open

nicolas-delbovier-acsone wants to merge 1 commit into
OCA:16.0from
acsone:16.0-fix-shopfloor_reception-lot-parsing

Conversation

@nicolas-delbovier-acsone

@nicolas-delbovier-acsone nicolas-delbovier-acsone commented Aug 20, 2026 •

Copy link
Copy Markdown

The error

Put an expiration_date on the selected move line (but no lot_id nor lot_name).

Note

There is also this other PR that would solve the problem here: #1241

image

SystemError: Invalid Response {'data': [{'set_lot': [{'selected_move_line': [{0: [{'lot': [{'name': ['required field']}]}]}]}]}]}

@jbaudoux

…ata without name

When serializing a move line that has an expiration
date but no lot name, the response payload generates a lot dictionary missing
the required 'name' key (or an incomplete dictionary).

This fails Cerberus REST response validation ('name' is a required field)
and causes an HTTP 500 error.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @JuMiSanAr, @mmequignon,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:16.0 mod:shopfloor_reception Module shopfloor_reception labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:shopfloor_reception Module shopfloor_reception series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants