Browse Source

Merge branch '12.0-warnings' into 12.0

pull/26/head
robin.keunen 5 years ago
parent
commit
7ac8a890ba
  1. 6
      easy_my_coop/demo/coop.xml
  2. 1
      easy_my_coop_loan/models/interest_line.py
  3. 4
      easy_my_coop_loan/models/loan.py
  4. 1
      easy_my_coop_loan/models/loan_issue_line.py
  5. 2
      easy_my_coop_loan/models/partner.py

6
easy_my_coop/demo/coop.xml

@ -34,9 +34,9 @@
</record>
<record id="bank_account_houssine_demo" model="res.partner.bank">
<field name="acc_number">BE68539007547034</field>
<field name="bank_name">Bank</field>
<field name="partner_id" ref="res_partner_cooperator_2_demo"/>
<field name="acc_number">FR7630001007941234567890185</field>
<field name="bank_name">Bank</field>
<field name="partner_id" ref="res_partner_cooperator_2_demo"/>
</record>
<record id="res_partner_cooperator_3_demo" model="res.partner">

1
easy_my_coop_loan/models/interest_line.py

@ -3,6 +3,7 @@ from odoo import fields, models
class LoanInterestLine(models.Model):
_name = 'loan.interest.line'
_description = "Loan Interest Line"
name = fields.Integer(string="Year",
required=True)

4
easy_my_coop_loan/models/loan.py

@ -7,6 +7,7 @@ _logger = logging.getLogger(__name__)
class LoanTerm(models.Model):
_name = 'loan.term'
_description = 'Loan Term'
name = fields.Char(string="Name",
required=True)
@ -16,6 +17,7 @@ class LoanTerm(models.Model):
class LoanIssue(models.Model):
_name = 'loan.issue'
_description = 'Loan Issue'
@api.multi
def _compute_subscribed_amount(self):
@ -47,7 +49,7 @@ class LoanIssue(models.Model):
string="Maximum amount per subscription",
currency_field='company_currency_id')
subscribed_amount = fields.Monetary(string="Subscribed amount",
compute="_compute_subscribed_amount",
compute="_compute_subscribed_amount",
currency_field='company_currency_id')
interest_payment = fields.Selection([('end', 'End'),
('yearly', 'Yearly')],

1
easy_my_coop_loan/models/loan_issue_line.py

@ -6,6 +6,7 @@ from odoo import api, fields, models
class LoanIssueLine(models.Model):
_name = 'loan.issue.line'
_description = 'Loan Issue Line'
_order = 'date desc, id'
@api.multi

2
easy_my_coop_loan/models/partner.py

@ -6,4 +6,4 @@ class ResPartner(models.Model):
loan_line_ids = fields.One2many('loan.issue.line',
'partner_id',
string="Name")
string="Loans")
Loading…
Cancel
Save