Browse Source

[CHG] several modification made in batch

pull/36/head
houssine 5 years ago
committed by robin.keunen
parent
commit
03ed1f45f3
  1. 10
      easy_my_coop_loan/models/loan.py
  2. 14
      easy_my_coop_loan/views/loan_view.xml

10
easy_my_coop_loan/models/loan.py

@ -22,19 +22,19 @@ class LoanIssue(models.Model):
translate=True) translate=True)
is_bond = fields.Boolean(string="Is a bond issue?") is_bond = fields.Boolean(string="Is a bond issue?")
default_issue = fields.Boolean(string="Default issue") default_issue = fields.Boolean(string="Default issue")
subscription_start_date = fields.Date(string="Start date")
subscription_end_date = fields.Date(string="End date")
subscription_start_date = fields.Date(string="Start date subscription period")
subscription_end_date = fields.Date(string="End date subscription period")
user_id = fields.Many2one('res.users', user_id = fields.Many2one('res.users',
string="Responsible") string="Responsible")
term_date = fields.Date(string="Term date") term_date = fields.Date(string="Term date")
loan_term = fields.Float(string="term of the loan")
loan_term = fields.Float(string="Duration of the loan")
rate = fields.Float(string="Interest rate") rate = fields.Float(string="Interest rate")
face_value = fields.Monetary(string="Facial value", face_value = fields.Monetary(string="Facial value",
currency_field='company_currency_id', currency_field='company_currency_id',
required=True) required=True)
minimum_amount = fields.Monetary(string="Minimum amount",
minimum_amount = fields.Monetary(string="Minimum amount of issue",
currency_field='company_currency_id') currency_field='company_currency_id')
maximum_amount = fields.Monetary(string="Maximum amount",
maximum_amount = fields.Monetary(string="Maximum amount of issue",
currency_field='company_currency_id') currency_field='company_currency_id')
min_amount_company = fields.Monetary(string="Minimum amount for a company", min_amount_company = fields.Monetary(string="Minimum amount for a company",
currency_field='company_currency_id') currency_field='company_currency_id')

14
easy_my_coop_loan/views/loan_view.xml

@ -67,11 +67,20 @@
<field name="max_amount_company" /> <field name="max_amount_company" />
<field name="by_individual" /> <field name="by_individual" />
<field name="by_company" /> <field name="by_company" />
<field name="company_currency_id" invisible="True" />
</group> </group>
<group> <group>
<field name="user_id" widget="selection" /> <field name="user_id" widget="selection" />
<field name="rate" />
<field name="taxes_rate" />
<label for="rate" string="Interest rate"/>
<div>
<field name="rate" class="oe_inline"/>
<span class="o_form_label oe_inline">%</span>
</div>
<label for="taxes_rate" string="Taxes on interest"/>
<div>
<field name="taxes_rate" class="oe_inline"/>
<span class="o_form_label oe_inline">%</span>
</div>
<field name="subscription_start_date" /> <field name="subscription_start_date" />
<field name="subscription_end_date" /> <field name="subscription_end_date" />
<field name="term_date" /> <field name="term_date" />
@ -90,6 +99,7 @@
<field name="face_value" /> <field name="face_value" />
<field name="amount" /> <field name="amount" />
<field name="state" /> <field name="state" />
<field name="company_currency_id" invisible="True"/>
</tree> </tree>
</field> </field>
</page> </page>

Loading…
Cancel
Save