[FIX] apply suggestions and remove some warnings

This commit is contained in:
amcor
2019-10-11 08:24:54 +02:00
parent f94960686e
commit 9e662f56cf
5 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# Copyright 2018 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account Loan management",
"name": "Account Loan",
"version": "12.0.1.0.0",
"author": "Creu Blanca,Odoo Community Association (OCA)",
"website": "http://github.com/OCA/account-financial-tools",

View File

@@ -15,4 +15,4 @@ On a posted loan you can:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/92/11.0
:target: https://runbot.odoo-community.org/runbot/92/12.0

View File

@@ -5,6 +5,7 @@ from odoo import api, fields, models
class AccountLoanGenerateWizard(models.TransientModel):
_name = "account.loan.generate.wizard"
_description = 'Loan generate wizard'
date = fields.Date(
'Account Date',

View File

@@ -1,3 +1,4 @@
# Copyright 2018 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models, _
@@ -6,6 +7,7 @@ from odoo.exceptions import UserError
class AccountLoan(models.TransientModel):
_name = 'account.loan.pay.amount'
_description = 'Loan pay amount'
loan_id = fields.Many2one(
'account.loan',

View File

@@ -6,6 +6,7 @@ from odoo.exceptions import UserError
class AccountLoanPost(models.TransientModel):
_name = "account.loan.post"
_description = 'Loan post'
@api.model
def _default_journal_id(self):