Odoo Help

0

Error: Champ state inconnu dans le domaine [["state","not in",["draft"]]]

By
seifeddine Euchi
on 6/17/15, 4:31 AM 1,899 views

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"]]]

0

deep

--deep--
1781
| 5 5 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 6/17/15, 8:43 AM

Include "state" field in the tree & form view...

Note: If dont want to display the field in the view then you can always set it as invisible...

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/17/15, 4:31 AM
Seen: 1899 times
Last updated: 6/17/15, 9:03 AM