Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1183 Weergaven

I need the Domain for the field “source location“ beacuse i need to add it when taking returns from customers 

Avatar
Annuleer
Beste antwoord

Hi,


Try the following code.

@api.onchange('customer_id')

 def onchange_customer_id(self):

     if self.customer_id:

         return { 'domain:

          { 'location_id': [('usage', '=' ,'internal'), ('return_location', '=', True)] }

          }


Hope it helps

Avatar
Annuleer