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

How to Add Fields to Sales Order Form View

By
Cidex
on 4/19/16, 3:32 AM 478 views

Hello, 

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.

Thanks

MAX

customize the module by someone

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

Akhil P Sivan

--Akhil P Sivan--
3423
| 5 3 6
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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