Odoo Help


Unable to make opportunity status bar readonly

on 5/25/13, 4:19 AM 3,103 views

I would like to mark the opportunity stages readonly. I've tried the following ways

Method 1

'stage_id': fields.many2one('crm.case.stage', 'Stage', track_visibility='onchange',
                    domain="['&', '&', ('fold', '=', False), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]",readonly=True),

Method 2

<field name="stage_id" widget="statusbar" clickable="False"
                        domain="['&amp;', '|', ('case_default', '=', True), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"

Both the methods didn't work out. Kindly help me to do this.

Its working, I checked in crm opportunity.

on 5/31/13, 10:11 AM

which method working zahin, it's not working for me.

on 6/1/13, 4:23 AM

clickable="False", please check that which file you editing, is exactly updating in openerp IR:view or not. Use debug mode to trace the things.

on 6/1/13, 4:55 AM

Hy zahin, I use the same syntax with clickable="False" and check that the view is properly displayed. Yet the status bar still clickable.

Mind & Go, Mind And Go
on 11/24/13, 4:40 PM
Mind And Go
On 11/24/13, 4:45 PM

I found the answer

In order to set the status_bar unclickable use attrs :


Delete readonly tag and clickable one. It worked for me


Hi guys,

Best way is tu use options="{'clickable':True}" if you want to be able to click the statusbar states or options="{'clickable':False}" if you don't want to do that. You can also make statusbar clickable based on some condition, for example options="{'clickable':['statusbar_clickable','=',True]}"


On 2/6/15, 7:12 AM

you can use clickable="True" or clickable="False" in xml.

<field name="state" widget="statusbar" clickable="True"/>

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: 5/25/13, 4:19 AM
Seen: 3103 times
Last updated: 10/6/16, 8:24 AM