This question has been flagged
4 Replies
3778 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?

 

Avatar
Discard

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.

Author

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

Author Best Answer

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.

Avatar
Discard
Best Answer

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.

Avatar
Discard