2026-09-21 11:03:19 +05:30

69 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_education_student_ledger_tree" model="ir.ui.view">
<field name="name">education.student.ledger.tree</field>
<field name="model">education.student.ledger</field>
<field name="arch" type="xml">
<list string="Student Ledger" create="false" edit="false" delete="false">
<field name="date"/>
<field name="student_id"/>
<field name="ref"/>
<field name="description"/>
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>
<field name="balance" sum="Total Balance"/>
<field name="status" widget="badge" decoration-success="status == 'posted'" decoration-danger="status == 'cancelled'"/>
</list>
</field>
</record>
<record id="view_education_student_ledger_search" model="ir.ui.view">
<field name="name">education.student.ledger.search</field>
<field name="model">education.student.ledger</field>
<field name="arch" type="xml">
<search string="Student Ledgers">
<field name="student_id"/>
<field name="ref"/>
<field name="date"/>
<filter string="Posted" name="posted" domain="[('status', '=', 'posted')]"/>
<filter string="Cancelled" name="cancelled" domain="[('status', '=', 'cancelled')]"/>
<group>
<filter string="Student" name="group_student" context="{'group_by': 'student_id'}"/>
<filter string="Date" name="group_date" context="{'group_by': 'date'}"/>
</group>
</search>
</field>
</record>
<record id="view_education_student_ledger_pivot" model="ir.ui.view">
<field name="name">education.student.ledger.pivot</field>
<field name="model">education.student.ledger</field>
<field name="arch" type="xml">
<pivot string="Ledger Analysis">
<field name="student_id" type="row"/>
<field name="debit" type="measure"/>
<field name="credit" type="measure"/>
<field name="balance" type="measure"/>
</pivot>
</field>
</record>
<record id="view_education_student_ledger_graph" model="ir.ui.view">
<field name="name">education.student.ledger.graph</field>
<field name="model">education.student.ledger</field>
<field name="arch" type="xml">
<graph string="Ledger Analysis" type="bar">
<field name="student_id"/>
<field name="balance" type="measure"/>
</graph>
</field>
</record>
<record id="action_education_student_ledger" model="ir.actions.act_window">
<field name="name">Student Ledger</field>
<field name="res_model">education.student.ledger</field>
<field name="view_mode">list,pivot,graph</field>
<field name="search_view_id" ref="view_education_student_ledger_search"/>
</record>
</odoo>