107 lines
4.7 KiB
XML
107 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_hostel_fee_structure_list" model="ir.ui.view">
|
|
<field name="name">education.hostel.fee.structure.list</field>
|
|
<field name="model">education.hostel.fee.structure</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Fee Structures">
|
|
<field name="hostel_id"/>
|
|
<field name="room_type"/>
|
|
<field name="billing_period"/>
|
|
<field name="amount"/>
|
|
<field name="academic_year_id"/>
|
|
<field name="active"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<record id="view_hostel_fee_structure_form" model="ir.ui.view">
|
|
<field name="name">education.hostel.fee.structure.form</field>
|
|
<field name="model">education.hostel.fee.structure</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Hostel Fee Structure">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="hostel_id"/>
|
|
<field name="room_type"/>
|
|
<field name="billing_period"/>
|
|
</group>
|
|
<group>
|
|
<field name="amount"/>
|
|
<field name="academic_year_id"/>
|
|
<field name="active"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_hostel_fee_structure_list" model="ir.actions.act_window">
|
|
<field name="name">Hostel Fee Structures</field>
|
|
<field name="res_model">education.hostel.fee.structure</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
<record id="view_hostel_fee_list" model="ir.ui.view">
|
|
<field name="name">education.hostel.fee.list</field>
|
|
<field name="model">education.hostel.fee</field>
|
|
<field name="arch" type="xml">
|
|
<list string="Hostel Fees"
|
|
decoration-danger="state == 'overdue'"
|
|
decoration-success="state == 'paid'"
|
|
decoration-muted="state == 'cancelled'">
|
|
<field name="name"/>
|
|
<field name="student_id"/>
|
|
<field name="hostel_id"/>
|
|
<field name="amount"/>
|
|
<field name="due_date"/>
|
|
<field name="paid_date"/>
|
|
<field name="state" widget="badge"
|
|
decoration-warning="state == 'due'"
|
|
decoration-danger="state == 'overdue'"
|
|
decoration-success="state == 'paid'"
|
|
decoration-muted="state in ('draft','cancelled')"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
<record id="view_hostel_fee_form" model="ir.ui.view">
|
|
<field name="name">education.hostel.fee.form</field>
|
|
<field name="model">education.hostel.fee</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Hostel Fee">
|
|
<header>
|
|
<button name="action_set_due" string="Set Due" type="object" invisible="state != 'draft'"/>
|
|
<button name="action_mark_paid" string="Mark Paid" type="object"
|
|
class="btn-primary" invisible="state not in ('due','overdue')"/>
|
|
<button name="action_cancel" string="Cancel" type="object"
|
|
invisible="state in ('paid','cancelled')"/>
|
|
<field name="state" widget="statusbar" statusbar_visible="draft,due,paid"/>
|
|
</header>
|
|
<sheet>
|
|
<div class="oe_title"><h1><field name="name" readonly="1"/></h1></div>
|
|
<group>
|
|
<group>
|
|
<field name="student_id"/>
|
|
<field name="hostel_id"/>
|
|
<field name="member_id"/>
|
|
<field name="fee_structure_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="amount"/>
|
|
<field name="due_date"/>
|
|
<field name="paid_date"/>
|
|
</group>
|
|
</group>
|
|
<field name="notes" placeholder="Notes"/>
|
|
</sheet>
|
|
<chatter/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_hostel_fee_list" model="ir.actions.act_window">
|
|
<field name="name">Hostel Fees</field>
|
|
<field name="res_model">education.hostel.fee</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
</odoo>
|