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

Buttons does not appear in the status bar ????

By
kais dkhili
on 5/31/14, 4:11 AM 921 views

i want to create a statusbar with button and states but the problem that buttons does not appear and there is no colors. this is my code please someone help me

 <form string="Formulaire programme" version="7.0" > 
            <header>
                  <button name="button_valide"  type='object' string="Valider"   states="validate" />
                <button name="button_annuler"  type='object' string="Annuler" states="canceled"  />
                <field name="state"  widget="statusbar" statusbar_visible="validate,canceled" statusbar_colors='{"proforma":"validate","canceled":"red"}'/>
                           
            </header>

and this is the python code

'state': fields.selection([
            ('validate','Validate'),
            ('canceled','Canceled'),
            ],'Status', readonly=True, required=True,
            track_visibility='onchange', ),
        

Hi Panchal, there is no changes

kais dkhili
on 5/31/14, 4:33 AM
1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 5/31/14, 4:20 AM

Hi

Try this code

 

                <header>
                    <button name="button_valide"  type='object' string="Valider"   states="validate" />
                    <button name="button_annuler"  type='object' string="Annuler" states="canceled"  />
                    <field name="state"  widget="statusbar" statusbar_visible="validate,canceled" statusbar_colors='{"validate":"blue","canceled":"red"}'/>
                               
                </header>

 

0
kais dkhili
On 5/31/14, 4:37 AM

Hi Panchal, there is no changes

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

1 follower(s)

Stats

Asked: 5/31/14, 4:11 AM
Seen: 921 times
Last updated: 3/16/15, 8:10 AM