Hello everyone ๐
I'm currently working on **Odoo 18 POS** and added a custom field `serial_id` to `pos.order.line` (Many2one to `product.serial`).ย
The field works fine in the frontend โ I can assign a serial to a line using a popup, and the line correctly holds:
```js
line.serial_id = 2;
line.serial_display = "iphone 13 - new new";
However, when the order is validated and synced to the backend, the field is missing in the synced JSON data.
The order lines in the backend always show:
"serial_id": false
I tried adding the field in several methods:
- export_as_JSON() โ not called anymore
- serialize() in PosOrderline โ didnโt include the field in sync_from_ui
- _order_line_fields() on the backend โ never receives the serial_id
So my question is:
๐งฉ What is the correct method in Odoo 18 POS to include a custom field (like serial_id) from order lines in the synced JSON sent by sync_from_ui?
I believe the new serialization logic may require patching serialize_for_order() or adding the field in another place, but Iโd like confirmation from the Odoo team or others who have handled custom POS fields in v18.
Thanks in advance ๐