The list view code is as follows:
id="view_fees_payment_type_tree" model="ir.ui.view">
name="name">Fees Payment Category
name="model">fees.payment.type
name="arch" type="xml">
string="Payment Type" editable="top">
name="name"/>
name="related_product_id" context="{'default_is_fees':True,'default_type':'service'}"/>
name="is_allowed"/>
name="max_intervals" invisible="1"/>