Skip to Content
Menu
This question has been flagged
1 Reply
1089 Views

Hello 

Can someone provide me the code that I can insert on the domain of the seriela number field related to the Quality check. By accident I removed it. 


The function that I need is that when I chose a product, ODOO shows only the serial numbers linked to that product. 


Thank you 

Avatar
Discard
Best Answer

Hi, 

The default domain for the Serial Number is this.

domain="[('product_id', '=', product_id), '|', ('company_id', '=', False), ('company_id', '=', company_id)]")

this domain is mentioned in the py file so you can replace this in the py side.

Hope it will help you.

Avatar
Discard
Author

Great thx!

Your Welcome,
Please Vote the Answer if it helps you