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

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

By
Gill Potter
on 2/12/16, 4:44 AM 626 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
0
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

https://github.com/odoo/odoo/issues/11081#issuecomment-190275661

See github link above.

0
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.

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: 2/12/16, 4:44 AM
Seen: 626 times
Last updated: 3/1/16, 10:21 AM