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
customize the module by someone