diff --git a/contract_show_invoice/README.rst b/contract_show_invoice/README.rst index bf10bd3288..7f9dc80800 100644 --- a/contract_show_invoice/README.rst +++ b/contract_show_invoice/README.rst @@ -41,6 +41,7 @@ Contributors * Ángel Moya * Carlos Dauden +* Dave Burkholder Maintainer diff --git a/contract_show_invoice/__manifest__.py b/contract_show_invoice/__manifest__.py index f5fcefb8e4..945940e4c8 100644 --- a/contract_show_invoice/__manifest__.py +++ b/contract_show_invoice/__manifest__.py @@ -6,7 +6,7 @@ { 'name': 'Contract Show Invoice', 'summary': 'Button in contracts to show their invoices', - 'version': '9.0.1.1.0', + 'version': '10.0.1.0.0', 'author': 'Domatix,' 'Tecnativa,' 'Odoo Community Association (OCA)', @@ -16,5 +16,5 @@ 'data': [ 'views/contract_view.xml', ], - 'installable': False, + 'installable': True, } diff --git a/contract_show_invoice/models/invoice.py b/contract_show_invoice/models/invoice.py index 43eea3e987..d25f0f625d 100644 --- a/contract_show_invoice/models/invoice.py +++ b/contract_show_invoice/models/invoice.py @@ -3,7 +3,7 @@ # © 2016 Carlos Dauden # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from openerp import api, fields, models +from odoo import api, fields, models class AccountInvoice(models.Model): diff --git a/contract_show_invoice/test/test_contract_show_invoice.py b/contract_show_invoice/test/test_contract_show_invoice.py index 6bd8639a03..8692153908 100644 --- a/contract_show_invoice/test/test_contract_show_invoice.py +++ b/contract_show_invoice/test/test_contract_show_invoice.py @@ -2,7 +2,7 @@ # © 2016 Carlos Dauden # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class TestContractShowInvoice(TransactionCase): diff --git a/contract_show_invoice/views/contract_view.xml b/contract_show_invoice/views/contract_view.xml index 3930d7677d..86f791ed9a 100644 --- a/contract_show_invoice/views/contract_view.xml +++ b/contract_show_invoice/views/contract_view.xml @@ -1,44 +1,42 @@ - - + - - {'search_default_analytic_account_ids': - [active_id], 'default_analytic_account_ids': active_id} - Invoices - account.invoice - [('analytic_account_ids','=',active_id)] - - + + {'search_default_analytic_account_ids': + [active_id], 'default_analytic_account_ids': active_id} + Invoices + account.invoice + [('analytic_account_ids','=',active_id)] + + - - - tree - - - + + + tree + + + - - - form - - - + + + form + + + - - account.analytic.account.button.invoice - - account.analytic.account - - - - - - - + + account.analytic.account.button.invoice + + account.analytic.account + + + + + + + - - +