Odoo Help


How to Add Fields to Sales Order Form View

on 4/19/16, 3:32 AM 584 views


I would like to add following fields to the Sales Order form view:

Under Order Line TAB:

qty_available  (to see for each product entered in the sales order line the quantity on hand)

Under shipping information TAB: 

Total Gross Weight and Total Net Weight for the ordered products.



customize the module by someone

webkul, Prakash Sharma
on 4/21/16, 2:39 AM

Akhil P Sivan

--Akhil P Sivan--
Akhil P Sivan
| 5 3 7
Kochi, India
--Akhil P Sivan--

Interested in exploring Odoo both technically & functionality wise.

email-id : akhilpsivan01@gmail.com

Akhil P Sivan
On 4/26/16, 7:45 AM

You need to create your own custom addon for that implementing these changes.

I think, for the first change:

- Add a functional field in sale.order.line model. (Refer the file stock >> product.py. You can see how the qty_available field in product form is created. Similarly you can do in sale.order.line model)

for the second change:

- You need to create two more functional or compute (new api) fields for that in sale.order model.

You may refer the Odoo tutorials to understand how to create your own simple addon, functional fields, inheriting views to add your fields etc. If you need any help contact me at: akhilpsivan01@gmail.com

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

2 follower(s)


Asked: 4/19/16, 3:32 AM
Seen: 584 times
Last updated: 4/26/16, 7:45 AM