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.
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: firstname.lastname@example.org
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
|Asked: 4/19/16, 3:32 AM|
|Seen: 400 times|
|Last updated: 4/26/16, 7:45 AM|