Now that we have specified the fields we want added to our sales order model, we must create our view file that will display the fields in the sales order header. We have specified the name of this file inside __manifest__.py within the data entry. For our example, the file name is silkworm_view.xml.
Using your editor of choice, create the silkworm_view.xml file. In this file, enter the following code:
<?xml version="1.0" encoding="utf-8"?> <Odoo> <data> <record id="sale_view_order_form" model="ir.ui.view"> <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <field name="payment_term_id" position="after"> <field name="daterequired"/> ...