Odoo Help


Why is the Product field so small on Sale Order Line Form in V9?

Gill Potter
on 2/12/16, 4:44 AM 1,120 views

When you have the Properties on Lines option set you can edit the sales order lines in form view rather than in the tree view.

In Odoo V9 the Product field is only half the length it is in Odoo V8, and there is plenty of white space after field name. Is there a straightforward way to make this a more sensible size?


you can add colspan to render field input below the label... The half width, is because you can have other field like according to your configuration: http://www.awesomescreenshot.com/image/990464/6971ee1a6f77d46a3cb24afbf175d5ea.

Jérémy Kersten (jke)
on 2/12/16, 6:15 AM

Please could you give me an example of the xml required?

Gill Potter
on 2/12/16, 10:50 AM
Gill Potter
On 2/22/16, 10:29 AM

I think that this is a problem in Odoo V9. I have just recreated it on Runbot.

When the User has Properties on Lines checked the form view is used when editing sales order lines.

If the user creates a new sale order either from the Sales Orders menu, or via a customer record and clicking the $Sales button then the Product field size is a sensible size, as it was in V8.

The problem occurs when the user creates a new sale from the Quotations Menu, or opens an existing quotation from the Quotations menu, on editing the sale order line the form view gives a tiny field for the Product. Once the Quotation becomes a Confirmed Sale and is accessed from the Sales Orders menu the field becomes a sensible size again.

Does anyone know of a reason why this happens? or how to overrule it?

UPDATE  - 29/2/2016


See github link above.

William Brugger
On 2/12/16, 3:58 PM

The easiest way to handle this is to change 


  <tree string="Sales Order Lines" editable="bottom" decoration-info="invoice_status=='to invoice'">

to this

  <tree string="Sales Order Lines" decoration-info="invoice_status=='to invoice'">

You can either write a custom module that overrides this or just activate developer mode and go to a sales form, choose "view-edit form" from the developer tools menu on the bottom of the window and find the line above, delete "editable ="bottom" and save.  If you do it this way you will need to do again every time you update the sale module or the database as a whole.

This will create a pop up window. The layout of this window is on that same form you edited. It is above the tree section in the form section. This is where you edit the xml to create a wider product selection.

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

1 follower(s)


Asked: 2/12/16, 4:44 AM
Seen: 1120 times
Last updated: 3/1/16, 10:21 AM