odoo/odoo#233602

Created by fw-bot
Merged at efa6a147062c8ae932db19a6c53a8c0bcc60746b

Statuses:

label
odoo-dev:19.0-17.0-repair-fix-serial-number-on-stock-move-loug-473633-fw
head
fff93119460b85defc356e28e7cd3926325d6f68
merged
1 week ago by Training, Louis Gobert (loug)
odoo/odoo
17.0 #232973
18.0 #233264
saas-18.2 #233543
saas-18.3 #233546
saas-18.4 #233548
19.0 #233602
master #233624

[FIX] repair: allow serial number only after save

When creating a repair order, if you add a line and assign a serial
number before saving the line, the serial number is removed when saving.

Steps to reproduce:
- Create a repair order and save it.
- Add a repair line with a product tracked by serial number.
- Without saving the repair order, add a serial number on the line.
- Save the repair order.
- You will notice that the serial number is no longer assigned to the
repair line.

This PR fixes the issue by making the serial number field read-only
until the repair line is saved.

opw-5156267

Forward-Port-Of: #233548
Forward-Port-Of: #232973