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

Hi All,

location_id many2one field  available  in stock.picking form  which showing all type of locations. How to show only those options whose location type is internal location?

Avatar
Discard
Best Answer

Hi,

You can inherit and inherit the corresponding field and set the following domains:   domain=[('usage', '=',  'internal' )]

Inherit the corresponding view and add this domain to the field.

For reference:

  1. Inherit and change existing field properties: https://www.youtube.com/watch?v=ZrCN3L0oAKE

Also once you do the above you have to make sure that the functional flow is not restricted . Like what if a user want to make a picking that receives stock from vendor directly from picking ?

So my suggestion is to keep the domain on the fly based on the picking type.


Domain based on other fields:  https://www.youtube.com/watch?v=dq5Vtj_pwuI


Thanks

Avatar
Discard