Skip to Content
Menu
This question has been flagged
820 Views

Odoo 15 Ent

Hi guys. 

I will need some help if you don't mind.

In my warehouse i mostly use serialized items. I have added a field on the serial number model called condition_id. This field is set to "Received", "Defective", "Good", "Shipped".

When a serial goes to "Customers" location then is gets Stamped as "Shipped". 

I have created an automated action where i show an error message when a serial number is scanned in an internal transfer. How can i show the serial number on that popup?

i simply use Raise Error:

raise UserError("This unit has been SHIPPED! Please make sure you have scanned the CORRECT part number")


i would like to show something like this: 

This unit has been SHIPPED (S/N: XXXXXXX)! Please make sure you have scanned the CORRECT part number


Thanks in advance

Avatar
Discard
Author

This is the solution:
" + record.lot_id.name +"