Hi,
I have 2 models as follow :
    class releve(osv.osv):
    _name = 'cap.releve'
    _columns = {
        'name' : fields.char('Nom du relevé',required=True),
        'type':fields.selection((('NB','Noir&Blanc'),
                                 ('CO','Couleur'),),
                                'Type de relevé',required=True),
    }
    class contrat(osv.osv):
    _name = 'cap.contrat'
    _columns = {
        'name':fields.char('Nom du contrat',required=True),
        ...
}
And a view for the model cap.equipement listing the cap.releve attached as follow :
     <record model="ir.ui.view" id="cap_alpbureautique.view_contrat_form">
      <field name="name">cap.contrat.form</field>
      <field name="model">cap.contrat</field>
      <field name="arch" type="xml">
        <form string="Contrat">
              .....
                <field name="releve_netb_ids" nolabel="1" domain="[('type','=','Noir&Blanc')">
                  <tree>
                    <field name="name" />
                    <field name="date" />
                    <field name="old_index" />
                    <field name="new_index" />
                  </tree>
                </field>
                </group>
                <group string="Relevés Couleur">
                <field name="releve_couleur_ids" nolabel="1" domain="[('type','=','Couleur')]">
                  <tree>
                    <field name="name" />
                    <field name="date" />
                    <field name="old_index" />
                    <field name="new_index" />
                  </tree>
                </field>
                ...
      </field>
    </record>
As you can see I try to filter in each tree sub view the result by the type, but there is no effect.
I tried also with the key values of the selection, but it changed nothing.
Am i doing it the right way or is something missing ?
Thank you for your help
Cheers
