muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 231 forks source link

Domain and invisible using context_get does not work in search pannel #140

Closed pradhanashwin closed 4 years ago

pradhanashwin commented 4 years ago

I am trying to show directory of specific model in search panel. I tried adding domain in the search panel by using inherit in that specific model but it doesn't work. Plus using attrs="{'invisible': [('patient_id', '=', context.get('default_res_id'))]}" doesnt work even if modifier for invisible in Fields View Get in debug is set to true

keshrath commented 4 years ago

The attribute attrs or invisible is not supported. But you can override those methods: https://github.com/muk-it/muk_web/blob/12.0/muk_web_searchpanel/models/base.py