<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_payment_order_category_purpose_form" model="ir.ui.view">
        <field name="name">account.payment.order.form</field>
        <field name="model">account.payment.order</field>
        <field name="inherit_id"
               ref="account_payment_order.account_payment_order_form"/>
        <field name="arch" type="xml">
            <field name="bank_line_count" position="after" >
                <field name="category_purpose"/>
            </field>
            <field name="payment_line_ids" position="attributes">
                <attribute name="context">
                    {'default_category_purpose': category_purpose}
                </attribute>
            </field>
        </field>
    </record>
    <record id="view_payment_order_category_purpose_create"
            model="ir.actions.act_window">
        <field name="res_model">account.payment.line.create</field>
        <field name="inherit_id"
               ref="account_payment_order.account_payment_line_create_action"/>
        <field name="context">
            {'default_category_purpose': category_purpose}
        </field>
    </record>
</odoo>

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_payment_order_category_purpose_form" model="ir.ui.view">
        <field name="name">account.payment.order.form</field>
        <field name="model">account.payment.order</field>
        <field name="inherit_id"
               ref="account_payment_order.account_payment_order_form"/>
        <field name="arch" type="xml">
            <field name="bank_line_count" position="after" >
                <field name="category_purpose"/>
            </field>
            <field name="payment_line_ids" position="attributes">
                <attribute name="context">
                    {'default_category_purpose': category_purpose}
                </attribute>
            </field>
        </field>
    </record>
    <record id="view_payment_order_category_purpose_create"
            model="ir.actions.act_window">
        <field name="name">payment.order.category_purpose</field>
        <field name="res_model">account.payment.line.create</field>
        <field name="inherit_id"
               ref="account_payment_order.account_payment_line_create_action"/>
        <field name="context">
            {'default_category_purpose': category_purpose}
        </field>
    </record>
</odoo>

Add missing name in action record
Add missing name in action record
