Browse Source

[IMP] emc_loan: loan tree view

pull/26/head^2
robin.keunen 5 years ago
parent
commit
173c2e5a39
  1. 27
      easy_my_coop_loan/views/loan_view.xml
  2. 3
      easy_my_coop_loan/views/menus.xml

27
easy_my_coop_loan/views/loan_view.xml

@ -98,13 +98,36 @@
</record>
<record id="action_loan_issue" model="ir.actions.act_window">
<field name="name">Loan issue</field>
<field name="type">ir.actions.act_window</field>
<field name="name">Loan Issues</field>
<field name="res_model">loan.issue</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<record id="action_follow_individual_loan" model="ir.actions.act_window">
<field name="name">Loans</field>
<field name="res_model">loan.issue.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<record id="loan_issue_line_view_tree" model="ir.ui.view">
<field name="name">loan_issue_line_view_tree</field>
<field name="model">loan.issue.line</field>
<field name="arch" type="xml">
<tree string="Loans">
<field name="name"/>
<field name="partner_id"/>
<field name="loan_issue_id"/>
<field name="quantity"/>
<field name="face_value"/>
<field name="amount"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record id="view_loan_issue_line_form" model="ir.ui.view">
<field name="name">loan.issue.line.form</field>
<field name="model">loan.issue.line</field>

3
easy_my_coop_loan/views/menus.xml

@ -5,7 +5,8 @@
-->
<odoo>
<menuitem name="Loan Management" id="menu_easy_my_coop_main_loan_issue" parent="easy_my_coop.menu_main_easy_my_coop" groups="easy_my_coop.group_easy_my_coop_user" sequence="15"/>
<menuitem name="Create Loan" id="loan_issue_menu" action="action_loan_issue" parent="menu_easy_my_coop_main_loan_issue" sequence="25"/>
<menuitem name="Loan Issues" id="loan_issue_menu" action="action_loan_issue" parent="menu_easy_my_coop_main_loan_issue" sequence="110"/>
<menuitem name="Loans" id="individual_loan_menu" action="action_follow_individual_loan" parent="menu_easy_my_coop_main_loan_issue" sequence="120"/>
<menuitem name="Loan Term" id="loan_term_menu" action="action_loan_term" parent="easy_my_coop.menu_easy_my_coop_config" sequence="420"/>
</odoo>
Loading…
Cancel
Save