如何在行中显示按钮和状态栏项目

时间:2014-02-20 12:42:01

标签: openerp

如何显示下面提到的两组(红圈标记)?

enter image description here

相关的相关代码如下:

     <header>
                <button name="mymod_assigned"  class="oe_highlight" type="workflow" string="Assigned"   state="new" />
                <button name="mymod_negotiation" class="oe_highlight" type="workflow" string="In Negotiation" state="assigned"  />
                <button name="mymod_won" class="oe_highlight" type="workflow" string="Won" state="negotiating"/>
                <button name="mymod_lost" class="oe_highlight" type="workflow" string="Lost" state="negotiating"/>
                <field name="state"  widget="statusbar"
                      statusbar_visible="new,assigned,negotiation,won,lost"
                      statusbar_colors='{
                                        "new":"blue",
                                        "assigned":"blue",
                                        "negotiation":"blue",
                                        "won":"red",
                                        "lost":"red"
                                        }'
                                         />
        </header>

1 个答案:

答案 0 :(得分:0)

尝试将左侧组按钮放在一个包含float:left的div中,将右侧组放在另一个包含float:right的div中。