Skip to Content
Menu
This question has been flagged

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

Avatar
Discard

customize the module by someone

Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
3952
6
Jan 24
12129
3
Feb 25
546
1
Dec 24
901
2
Mar 24
1380