where i try to crate relation one2many with this property
charfix=fields.One2many('fs_calcul_cout_de_revient.chargefix','charfix_list' , string="Charge Fix",required=True,readonly=True,select=True,states={'draft':[('readonly', False)]})
and this presentation in the XML view
record model="ir.ui.view" id="Cout_form_view">
field name="name">Cout.form</field>
field name="model">fs_calcul_cout_de_revient.cout</field>
field name="type">form</field>
field name="arch" type="xml">
form string="cout">
sheet>
group>
......
notebook colspan="4">
page string="Charge">
form string="test form view" editable="bottom">
group>
tree>
field name="charfix"/>
/tree>
/group>
/form>
/page>
/notebook>
/sheet>
/form>
/field>
/record>
i get this error
Error: Champ state inconnu dans le domaine [["state","not in",["draft"]]]