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.

1

[SOLVED] Avoid watching the status bar in two lines

By
Fernando La Chica Mera
on 9/28/15, 7:00 AM 1,006 views

In my instance Odoo the status bar is divided into two lines me. An example to reproduce this:

1.- Register a sales order

2.- Save record

3.- Refresh Screen

Once existing orders consult the status bar is split into two lines like the image below. Has it occurred to anyone?


[IMG=http://www.image-share.com/upload/3064/251.png]

2

Axel Mendoza

--Axel Mendoza--
10203
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 9/28/15, 11:18 AM

Hi Fernando

Your image doesn't shows up, it' doesn't work yet to upload images to Odoo forum, but you could add as an external URL

For what you refers there are some options according for what you wanna fix. For example if what you see as a problem is that buttons shows in one line and statusbar states shows in another, that it's caused by the css:

.openerp .oe_form > :not(.oe_form_nosheet) header ul:not(.oe_tooltip_technical):not(.oe_dropdown_menu), .openerp .oe_form > .oe_form_nosheet header ul:not(.oe_tooltip_technical):not(.oe_dropdown_menu) {
display: inline-block;
float: right;
}

And could be solved by just adding: "float: right !important;" to that rules.

If what you want is that do not split the statusbar due to the number of states it may have, you could fold your states in a dropdown menu but for that you need to convert your states field to a many2one for use it with the widget statusbar. In the model of that many2one you need a boolean field indicating that the record goes to the dropdown menu or not. Take as example project.task with project.task.type models. In the project task form the stage_id field is defined like this:

<field name="stage_id" widget="statusbar" clickable="True" options="{'fold_field': 'fold'}"/>

 Hope this helps

Hi Alex, do we need to update the web module after making this change? Because I tried changing the rule and it doesn't seem to be working for me.

Shawn Varghese
on 9/29/15, 3:04 AM

I do not get to show the image on the question of the forum. No META tag that must be put. Thank you.

Fernando La Chica Mera
on 9/29/15, 4:06 AM
1

Hello,

    I've got to be displayed on a single line. Axel, the rule for buttons are missing. Would look like:

.openerp .oe_form > :not(.oe_form_nosheet) header ul:not(.oe_tooltip_technical):not(.oe_dropdown_menu), .openerp .oe_form > .oe_form_nosheet header ul:not(.oe_tooltip_technical):not(.oe_dropdown_menu) {
display: inline-block;
float: right !important;
}

.openerp .oe_form > :not(.oe_form_nosheet) header button:not(.oe_tooltip_technical):not(.oe_dropdown_menu), .openerp .oe_form > .oe_form_nosheet header button:not(.oe_tooltip_technical):not(.oe_dropdown_menu) {
display: inline-block;
float: left !important;
}

0
Shawn Varghese
On 9/29/15, 3:08 AM

Yes this is an irritating issue. The only resolution that has worked for me so far is by placing a <div> wrapper followed by a <div class="oe_clear" />:

<div>
<button name="..." />
<field name="state" widget="statusbar" />
</div>
<div class="oe_clear" />

Doing this for custom modules is fine, but it is obviously not an option to inherit all modules and add this code.




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

2 follower(s)

Stats

Asked: 9/28/15, 7:00 AM
Seen: 1006 times
Last updated: 4/7/16, 1:48 PM