Hi, Can i show only selected records in a one2many field using a domain, I have tried this
<field name="func_details_inno" nolabel="1" context="{'functional_dep' : 'Innovation'}" domain="[('functional_dep','=','Innovation')]">
where func_details_inno is a one2many field with functional_dep a char field in the model for func_details_inno
How can i do it?
You haven't closed the balise "/>". This is wanted ?
Yes this is wanted and intentional, i'm defining the tree view and the form view inside for the one2many field, something like <field name="func_details_inno" nolabel="1" context="{'functional_dep' : 'Innovation'}" domain="[('functional_dep','=','Innovation')]"><tree>...</tree><form>...</form></field>
This is what i was thinking, but now i'm sure. Can you, for clarify, put all the field in the question please ?
Its a bit long i have pastebinned the most relevant part of it and here is the link http://pastebin.com/PJqY6uwk Hope that helps to solve the problem