From bede87269ee3a9693343e9a2100b865dc834a298 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 20 Oct 2016 01:41:41 +0200 Subject: [PATCH] Port almost all modules to v10 (#305) Port almost all modules to v10 * Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300) --- account_payment_partner/README.rst | 2 +- account_payment_partner/__manifest__.py | 6 ++-- account_payment_partner/demo/partner_demo.xml | 7 ++-- .../models/account_invoice.py | 2 +- .../models/account_move_line.py | 2 +- account_payment_partner/models/res_partner.py | 2 +- .../views/account_invoice_view.xml | 6 ++-- .../views/account_move_line.xml | 12 +++---- .../views/report_invoice.xml | 32 +++++++++---------- .../views/res_partner_view.xml | 12 +++---- 10 files changed, 38 insertions(+), 45 deletions(-) diff --git a/account_payment_partner/README.rst b/account_payment_partner/README.rst index 704ca358ac7f..4e9e8e68407e 100644 --- a/account_payment_partner/README.rst +++ b/account_payment_partner/README.rst @@ -38,7 +38,7 @@ Invoices without any payment mode are displayed to. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/173/9.0 + :target: https://runbot.odoo-community.org/runbot/173/10.0 Known issues / Roadmap ====================== diff --git a/account_payment_partner/__manifest__.py b/account_payment_partner/__manifest__.py index c718d8c99b22..59484804b212 100644 --- a/account_payment_partner/__manifest__.py +++ b/account_payment_partner/__manifest__.py @@ -5,12 +5,12 @@ { 'name': 'Account Payment Partner', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'category': 'Banking addons', 'license': 'AGPL-3', 'summary': 'Adds payment mode on partners and invoices', 'author': "Akretion, " - "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Tecnativa, " "Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/bank-payment', 'depends': ['account_payment_mode'], @@ -21,5 +21,5 @@ 'views/report_invoice.xml', ], 'demo': ['demo/partner_demo.xml'], - 'installable': False, + 'installable': True, } diff --git a/account_payment_partner/demo/partner_demo.xml b/account_payment_partner/demo/partner_demo.xml index 20545d978dfd..bf5b8b751382 100644 --- a/account_payment_partner/demo/partner_demo.xml +++ b/account_payment_partner/demo/partner_demo.xml @@ -1,7 +1,6 @@ + - - Default Supplier Payment Mode @@ -21,5 +20,5 @@ - - + + diff --git a/account_payment_partner/models/account_invoice.py b/account_payment_partner/models/account_invoice.py index 14ac17a77d23..6f33546e3e58 100644 --- a/account_payment_partner/models/account_invoice.py +++ b/account_payment_partner/models/account_invoice.py @@ -3,7 +3,7 @@ # © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api +from odoo import models, fields, api class AccountInvoice(models.Model): diff --git a/account_payment_partner/models/account_move_line.py b/account_payment_partner/models/account_move_line.py index 080e7336961b..e5fa4d492443 100644 --- a/account_payment_partner/models/account_move_line.py +++ b/account_payment_partner/models/account_move_line.py @@ -2,7 +2,7 @@ # © 2016 Akretion (http://www.akretion.com/) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields +from odoo import models, fields class AccountMoveLine(models.Model): diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py index b7a35e93c4aa..9b835714157c 100644 --- a/account_payment_partner/models/res_partner.py +++ b/account_payment_partner/models/res_partner.py @@ -3,7 +3,7 @@ # © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api +from odoo import models, fields, api class ResPartner(models.Model): diff --git a/account_payment_partner/views/account_invoice_view.xml b/account_payment_partner/views/account_invoice_view.xml index 0e59c514d956..b2553be57708 100644 --- a/account_payment_partner/views/account_invoice_view.xml +++ b/account_payment_partner/views/account_invoice_view.xml @@ -5,7 +5,6 @@ --> - account_payment_partner.account_invoice_search @@ -25,7 +24,7 @@ account.invoice - + @@ -43,7 +42,7 @@ account.invoice - + @@ -81,5 +80,4 @@ - diff --git a/account_payment_partner/views/account_move_line.xml b/account_payment_partner/views/account_move_line.xml index b0d0ca102a5b..51cba50df897 100644 --- a/account_payment_partner/views/account_move_line.xml +++ b/account_payment_partner/views/account_move_line.xml @@ -1,13 +1,12 @@ - - + @@ -24,5 +23,4 @@ - - + diff --git a/account_payment_partner/views/report_invoice.xml b/account_payment_partner/views/report_invoice.xml index 9368238f18c7..068dbf672f11 100644 --- a/account_payment_partner/views/report_invoice.xml +++ b/account_payment_partner/views/report_invoice.xml @@ -1,17 +1,17 @@ - - - - - + + + + + diff --git a/account_payment_partner/views/res_partner_view.xml b/account_payment_partner/views/res_partner_view.xml index 3d06ee8569e6..bf545cb1d2e5 100644 --- a/account_payment_partner/views/res_partner_view.xml +++ b/account_payment_partner/views/res_partner_view.xml @@ -1,12 +1,11 @@ - - + @@ -24,5 +23,4 @@ - - +