Hi, I need to define the domain when the view appears (no action required, it should be automatic).
I'm trying to include some functionality on default_get, but I'm not getting results. I mean, in an on_change function you can return domain, but in default_get only the dictionary with values is accepted.
Any suggestion?
This is the function as I have now.
def get_customer(self):
cust = customer_in_pricelist.get_customer()
if cust:
return {'domain': [('cus_id', '=', cust)]}
return {'domain': [('cus_id', '=', 0)]}
I'm trying to use fields_view_get but I'm a bit lost.