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

Add a new state in project workflow

By
mirko lazzarini
on 7/2/13, 12:18 PM 574 views

I must add a new state in my workflow project in

class account_analytic_account(osv.osv):

_name = 'account.analytic.account'

else i get an error like this The value "invoice" for the field "account_analytic_account.state" is not in the selection

Original state 'state': fields.selection([('template', 'Template'),('draft','New'),('open','Open'),('pending','Pending'),('cancelled', 'Cancelled'),('close','Closed')], 'State', required=True,

New state 'state': fields.selection([('template', 'Template'),('invoice','Da Fatturare'),('draft','New'),('open','Open'),('pending','Pending'),('cancelled', 'Cancelled'),('close','Closed')], 'State', required=True,

Is it possible add my custom state in the right position in 'state'?

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/2/13, 12:18 PM
Seen: 574 times
Last updated: 3/16/15, 8:10 AM