Odoo Help


Add a new state in project workflow

mirko lazzarini
on 7/2/13, 12:18 PM 934 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'?

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.


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

0 follower(s)


Asked: 7/2/13, 12:18 PM
Seen: 934 times
Last updated: 3/16/15, 8:10 AM