i have my code in this way is there any problem in this code and how to solve it
<odoo>
<data>
<record model="ir.ui.view" id="custom_sale_order_view">
<field name="name">custom.sale.order.view</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr ="//field[@name='payment_term_id']" position="after">
<field name="new_field"/>
</xpath>
</field>
</record>
</data>
</odoo>
~
I have set all the models imported all required fields and set the models.py as it requires but eventhough error occure,