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