Below is the way to define the States of object in openerp-7 & Openerp-8(Odoo)
First we have to define the States After that, We have to add a state field to object, in the
_columns collection
See below code Example-
<pre>
_columns = {
state: fields.selection([
(new,New),
(assigned,Assigned),
(negotiation,Negotiation),
(won,Won),
(lost,Lost)], Stage, readonly=True),
}
</pre>
0 Comment(s)