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

workflow state error in project form

By
mirko lazzarini
on 7/1/13, 8:15 AM 609 views

i've a workflow with 3 states, i must add another state...

my actual row in "class task"

'state': fields.selection([('draft', 'New'),('open', 'In Progress'),('pending', 'Pending'), ('done', 'Done'), ('cancelled', 'Cancelled')], 'State', readonly=True, required=True,

with my new state

'state': fields.selection([('draft', 'New'),('open', 'In Progress'),('fatt', 'Da Fatturare'),('pending', 'Pending'), ('done', 'Done'), ('cancelled', 'Cancelled')], 'State', readonly=True, required=True,

to set the state:

*def set_fattura(self, cr, uid, ids, context=None):
    self.write(cr, uid, ids, {'state':'fatt'})
    return True*

When i try to change the state i obtain this error:

OpenErp Warning ErroreConvalida The value "fatt" for the field "account_analytic_account.state" is not in the selection

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

0 follower(s)

Stats

Asked: 7/1/13, 8:15 AM
Seen: 609 times
Last updated: 3/16/15, 8:10 AM