<?xml version="1.0"?>
<tryton>
<data>
  <!-- Inherit party form to add Credit Risk tab -->
  <record model="ir.ui.view" id="view_party_credit_risk_form">
    <field name="model">party.party</field>
    <field name="inherit" ref="party.party_view_form"/>
    <field name="name">party_view_form</field>
  </record>

  <record model="ir.ui.view" id="view_party_acc_risk_tree">
    <field name="model">party.acceptable.currency</field>
    <field name="type">tree</field>
    <field name="name">party_acc_tree</field>
  </record>

  <record model="ir.ui.view" id="view_party_pay_risk_tree">
    <field name="model">party.payment.condition</field>
    <field name="type">tree</field>
    <field name="name">party_pay_tree</field>
  </record>

  <record model="ir.ui.view" id="view_party_int_risk_tree">
    <field name="model">party.internal.limit</field>
    <field name="type">tree</field>
    <field name="name">party_int_tree</field>
  </record>

  <record model="ir.ui.view" id="view_party_ins_risk_tree">
    <field name="model">party.insurance.limit</field>
    <field name="type">tree</field>
    <field name="name">party_ins_tree</field>
  </record>

  <!-- <record model="ir.ui.view" id="view_credit_risk_report_tree">
    <field name="model">party.credit_risk_report</field>
    <field name="type">tree</field>
    <field name="arch" type="xml">
      <tree>
        <field name="start_date"/>
        <field name="end_date"/>
        <field name="company"/>
      </tree>
    </field>
  </record>

  <record model="ir.act_window" id="act_credit_risk_overview">
    <field name="name">Credit Risk Overview</field>
    <field name="res_model">party.credit_risk_report</field>
    <field name="view_mode">form,tree</field>
    <field name="view_id" eval="False"/>
    <field name="target">current</field>
  </record>

  <record model="ir.ui.menu" id="menu_credit_risk">
    <field name="name">Credit Risk</field>
    <field name="parent" ref="party.menu_reporting"/>
    <field name="action" ref="act_credit_risk_overview"/>
  </record>

  <record model="ir.action.report" id="party_credit_risk_report_action">
    <field name="name">Credit Risk Overview</field>
    <field name="model">party.credit_risk_report</field>
    <field name="report_name">account_credit_risk.credit_risk_overview</field>
    <field name="report">credit_risk_templates.xml</field>
    <field name="direct_print" eval="False"/>
  </record> -->
  </data>
</tryton>
