I want to run group by on a company dependent field. As, this field is not stored so i cant use it in group by. But i have created other stored fields based on this company dependent field. Now all i need is to get current company in xml.
Here is my code, I want to make this groupby invisible based on current_company_id.
<filter string="Equipment Status" domain="[]"
attrs="{'invisible':[(current_company_id,'=',1)]}"
context="{'group_by' : 'equipment_status_id'}"/>
Hope this will helps: https://learnopenerp.tumblr.com/
Can i do it using fields_view_get? If yes can you tell me how does field view work?