@ -34,7 +34,7 @@
</record>
<record id="bank_account_houssine_demo" model="res.partner.bank">
<field name="acc_number">BE68539007547034</field>
<field name="acc_number">FR7630001007941234567890185</field>
<field name="bank_name">Bank</field>
<field name="partner_id" ref="res_partner_cooperator_2_demo"/>
@ -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)
@ -7,6 +7,7 @@ _logger = logging.getLogger(__name__)
class LoanTerm(models.Model):
_name = 'loan.term'
_description = 'Loan Term'
name = fields.Char(string="Name",
@ -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):
@ -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'
@ -6,4 +6,4 @@ class ResPartner(models.Model):
loan_line_ids = fields.One2many('loan.issue.line',
'partner_id',
string="Name")
string="Loans")