Odoo Help

Welcome!

This community 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.

0

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

By
seifeddine Euchi
on 6/17/15, 4:31 AM 1,295 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--
1617
| 5 4 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...

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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