Browse Source

Merge branch '12.0-warnings' into 12.0

pull/26/head
robin.keunen 5 years ago
parent
commit
7ac8a890ba
  1. 2
      easy_my_coop/demo/coop.xml
  2. 1
      easy_my_coop_loan/models/interest_line.py
  3. 2
      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

2
easy_my_coop/demo/coop.xml

@ -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"/>
</record>

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)

2
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):

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