# Display different columns/fields in list view in different domain window

**URL:** https://discuss.tryton.org/t/display-different-columns-fields-in-list-view-in-different-domain-window/2050
**Category:** Developer
**Created:** [December 9, 2019, 6:21am UTC](https://discuss.tryton.org/t/display-different-columns-fields-in-list-view-in-different-domain-window/2050 "2019-12-09T06:21:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kakamble](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/kakamble/32/494_2.png) [@kakamble](https://discuss.tryton.org/u/kakamble)
#### Post date: [December 9, 2019, 6:21am UTC](https://discuss.tryton.org/t/display-different-columns-fields-in-list-view-in-different-domain-window/2050/1 "2019-12-09T06:21:43Z")

</div>

Is it possible to display different columns/fields in list/tree view in different domain window of an action?  
If yes, please explain.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 9, 2019, 9:30am UTC](https://discuss.tryton.org/t/display-different-columns-fields-in-list-view-in-different-domain-window/2050/2 "2019-12-09T09:30:23Z")

</div>

No, the view is linked to the action. But you can have multiple tree view on it and if your domain has a constraint like `('field', '=', <value>)`, the `field` will be hidden.  
For example on the sale list, there is a `state` field defined but you do not see it except on the “All” tab.

---

<div class="post-metadata">

### Author: ![kakamble](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/kakamble/32/494_2.png) [@kakamble](https://discuss.tryton.org/u/kakamble)
#### Post date: [December 9, 2019, 10:56am UTC](https://discuss.tryton.org/t/display-different-columns-fields-in-list-view-in-different-domain-window/2050/3 "2019-12-09T10:56:06Z")

</div>

I have two fields:

```
employee = fields.Many2One('company.employee', 'Employee', states={
    'invisible': Eval('type_of_examiner').in_(['external']),
    'readonly': ~Eval('state').in_(['draft'])
}, depends=['type_of_examiner', 'state'],)

examiner_name = fields.Char('Name of Examiner', states={
    'invisible': Eval('type_of_examiner').in_(['internal']),
    'readonly': ~Eval('state').in_(['draft'])
}, depends=['type_of_examiner', 'state'])

```

I have a tree as follows:

```
<?xml version="1.0"?>
<tree>
    <field name="employee"/>
    <field name="examiner_name"/>
    <field name="exam"/>
    <field name="state"/>
</tree>

```

I have two domain windows defined as follows:

```
    <!-- Renumeration Bills Internal Bucket -->
    <record model="ir.action.act_window.domain"
        id="act_renumeration_bill_domain_internal">
        <field name="name">Internal</field>
        <field name="sequence" eval="10"/>
        <field name="domain"
            eval="[('type_of_examiner', '=', 'internal')]"
            pyson="1"/>
        <field name="count" eval="True"/>
        <field name="act_window" ref="act_renumeration_bill"/>
    </record>

    <!-- Renumeration Bills External Bucket -->
    <record model="ir.action.act_window.domain"
        id="act_renumeration_bill_domain_external">
        <field name="name">External</field>
        <field name="sequence" eval="10"/>
        <field name="domain"
            eval="[('type_of_examiner', '=', 'external')]"
            pyson="1"/>
        <field name="count" eval="True"/>
        <field name="act_window" ref="act_renumeration_bill"/>
    </record>

```

But my list still shows both fields in both domain windows even though I want to show only one of these fields in a single domain window.  
‘Employee’ show be shown in ‘Internal’ domain window and ‘Name of Examiner’ should be shown in ‘External’ domain.

Any help is appreciated
