diff --git a/account_payment_order/README.rst b/account_payment_order/README.rst index b752fee40..44afd8afe 100644 --- a/account_payment_order/README.rst +++ b/account_payment_order/README.rst @@ -34,7 +34,7 @@ This module also adds a button *Add to Payment Order* on supplier invoices and a .. 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_order/__openerp__.py b/account_payment_order/__manifest__.py similarity index 90% rename from account_payment_order/__openerp__.py rename to account_payment_order/__manifest__.py index 391c1afbb..8104cb9c2 100644 --- a/account_payment_order/__openerp__.py +++ b/account_payment_order/__manifest__.py @@ -2,17 +2,17 @@ # © 2009 EduSense BV () # © 2011-2013 Therp BV () # © 2013-2014 ACSONE SA (). -# © 2014-2016 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2014-2016 Tecnativa - Pedro M. Baeza # © 2016 Akretion (). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Payment Order', - 'version': '9.0.1.1.0', + 'version': '10.0.1.1.0', 'license': 'AGPL-3', 'author': "ACSONE SA/NV, " "Therp BV, " - "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Tecnativa, " "Akretion, " "Odoo Community Association (OCA)", 'website': 'https://github.com/OCA/bank-payment', diff --git a/account_payment_order/data/payment_mode_type.xml b/account_payment_order/data/payment_mode_type.xml deleted file mode 100644 index 876778e62..000000000 --- a/account_payment_order/data/payment_mode_type.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Manual Bank Transfer - BANKMAN - - - payment - - - diff --git a/account_payment_order/data/payment_seq.xml b/account_payment_order/data/payment_seq.xml index 9f89b95af..ff6c704c5 100644 --- a/account_payment_order/data/payment_seq.xml +++ b/account_payment_order/data/payment_seq.xml @@ -1,12 +1,11 @@ - - + @@ -34,5 +33,4 @@ - - + diff --git a/account_payment_order/demo/payment_demo.xml b/account_payment_order/demo/payment_demo.xml index 1644a907a..900abe9e9 100644 --- a/account_payment_order/demo/payment_demo.xml +++ b/account_payment_order/demo/payment_demo.xml @@ -1,6 +1,5 @@ - - + @@ -30,5 +29,4 @@ - - + diff --git a/account_payment_order/models/account_invoice.py b/account_payment_order/models/account_invoice.py index e9cd0fe85..9da340809 100644 --- a/account_payment_order/models/account_invoice.py +++ b/account_payment_order/models/account_invoice.py @@ -4,8 +4,8 @@ # © 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, _ -from openerp.exceptions import UserError +from odoo import models, fields, api, _ +from odoo.exceptions import UserError class AccountInvoice(models.Model): diff --git a/account_payment_order/models/account_move.py b/account_payment_order/models/account_move.py index 1fda02896..85343f413 100644 --- a/account_payment_order/models/account_move.py +++ b/account_payment_order/models/account_move.py @@ -2,7 +2,7 @@ # © 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields +from odoo import models, fields class AccountMove(models.Model): diff --git a/account_payment_order/models/account_move_line.py b/account_payment_order/models/account_move_line.py index fa4578e7f..14cb05884 100644 --- a/account_payment_order/models/account_move_line.py +++ b/account_payment_order/models/account_move_line.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 AccountMoveLine(models.Model): diff --git a/account_payment_order/models/account_payment_line.py b/account_payment_order/models/account_payment_line.py index a938cc7c6..b019c97ff 100644 --- a/account_payment_order/models/account_payment_line.py +++ b/account_payment_order/models/account_payment_line.py @@ -2,8 +2,8 @@ # © 2015-2016 Akretion - Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, _ -from openerp.exceptions import UserError +from odoo import models, fields, api, _ +from odoo.exceptions import UserError class AccountPaymentLine(models.Model): diff --git a/account_payment_order/models/account_payment_mode.py b/account_payment_order/models/account_payment_mode.py index 9773ab8c0..bd97fe5bd 100644 --- a/account_payment_order/models/account_payment_mode.py +++ b/account_payment_order/models/account_payment_mode.py @@ -5,8 +5,8 @@ # © 2016 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, _ -from openerp.exceptions import ValidationError +from odoo import models, fields, api, _ +from odoo.exceptions import ValidationError class AccountPaymentMode(models.Model): diff --git a/account_payment_order/models/account_payment_order.py b/account_payment_order/models/account_payment_order.py index c3f18a9e8..403f6a2aa 100644 --- a/account_payment_order/models/account_payment_order.py +++ b/account_payment_order/models/account_payment_order.py @@ -5,8 +5,8 @@ # © 2016 Akretion (Alexis de Lattre - alexis.delattre@akretion.com) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, _ -from openerp.exceptions import UserError, ValidationError +from odoo import models, fields, api, _ +from odoo.exceptions import UserError, ValidationError class AccountPaymentOrder(models.Model): diff --git a/account_payment_order/models/bank_payment_line.py b/account_payment_order/models/bank_payment_line.py index 5e95e0667..095975d03 100644 --- a/account_payment_order/models/bank_payment_line.py +++ b/account_payment_order/models/bank_payment_line.py @@ -1,9 +1,9 @@ # -*- coding: utf-8 -*- -# © 2015 Akretion - Alexis de Lattre +# © 2015-2016 Akretion - Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, fields, api, _ -from openerp.exceptions import UserError +from odoo import models, fields, api, _ +from odoo.exceptions import UserError class BankPaymentLine(models.Model): diff --git a/account_payment_order/models/res_bank.py b/account_payment_order/models/res_bank.py index 44dd6ecdb..0f0c7cdc3 100644 --- a/account_payment_order/models/res_bank.py +++ b/account_payment_order/models/res_bank.py @@ -2,8 +2,8 @@ # © 2015-2016 Akretion - Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, api, _ -from openerp.exceptions import ValidationError +from odoo import models, api, _ +from odoo.exceptions import ValidationError class ResBank(models.Model): @@ -19,4 +19,4 @@ class ResBank(models.Model): "contains %d characters, so it is not valid.") % (bank.bic, len(bank.bic))) -# in v9, on res.partner.bank bank_bic is a related of bank_id.bic +# starting from v9, on res.partner.bank bank_bic is a related of bank_id.bic diff --git a/account_payment_order/security/payment_security.xml b/account_payment_order/security/payment_security.xml index 095059f2a..04f3561d5 100644 --- a/account_payment_order/security/payment_security.xml +++ b/account_payment_order/security/payment_security.xml @@ -1,5 +1,5 @@ - + @@ -11,9 +11,9 @@ - + Payment order multi-company rule @@ -26,5 +26,6 @@ ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + - + diff --git a/account_payment_order/views/account_invoice_view.xml b/account_payment_order/views/account_invoice_view.xml index 2ca7919ff..228071395 100644 --- a/account_payment_order/views/account_invoice_view.xml +++ b/account_payment_order/views/account_invoice_view.xml @@ -5,7 +5,6 @@ --> - account_payment_order.invoice_form @@ -58,5 +57,4 @@ view_mode="form" target="new"/> - diff --git a/account_payment_order/views/account_move_line.xml b/account_payment_order/views/account_move_line.xml index 1179fe817..39dc7d848 100644 --- a/account_payment_order/views/account_move_line.xml +++ b/account_payment_order/views/account_move_line.xml @@ -1,13 +1,11 @@ - - - + @@ -24,5 +22,4 @@ - - + diff --git a/account_payment_order/views/account_payment_line.xml b/account_payment_order/views/account_payment_line.xml index c1155ac03..54b89ba5e 100644 --- a/account_payment_order/views/account_payment_line.xml +++ b/account_payment_order/views/account_payment_line.xml @@ -1,6 +1,5 @@ - - + @@ -65,5 +64,4 @@ - - + diff --git a/account_payment_order/views/account_payment_mode.xml b/account_payment_order/views/account_payment_mode.xml index 966f7b987..c8f3b628c 100644 --- a/account_payment_order/views/account_payment_mode.xml +++ b/account_payment_order/views/account_payment_mode.xml @@ -1,6 +1,5 @@ - - + @@ -70,5 +69,5 @@ - - + + diff --git a/account_payment_order/views/account_payment_order.xml b/account_payment_order/views/account_payment_order.xml index eec3c0e83..8846f0cc6 100644 --- a/account_payment_order/views/account_payment_order.xml +++ b/account_payment_order/views/account_payment_order.xml @@ -1,6 +1,5 @@ - - + @@ -159,5 +158,5 @@ - - + + diff --git a/account_payment_order/views/bank_payment_line.xml b/account_payment_order/views/bank_payment_line.xml index f5ce6742a..e045b3838 100644 --- a/account_payment_order/views/bank_payment_line.xml +++ b/account_payment_order/views/bank_payment_line.xml @@ -1,10 +1,9 @@ - - + @@ -79,5 +78,5 @@ - - + + diff --git a/account_payment_order/views/ir_attachment.xml b/account_payment_order/views/ir_attachment.xml index 98f5ac991..9d88181d0 100644 --- a/account_payment_order/views/ir_attachment.xml +++ b/account_payment_order/views/ir_attachment.xml @@ -1,7 +1,7 @@ - - + + ir.attachment.simplified.form @@ -28,5 +28,5 @@ - - + + diff --git a/account_payment_order/views/payment_order_create_view.xml b/account_payment_order/views/payment_order_create_view.xml deleted file mode 100644 index 8a6d69a47..000000000 --- a/account_payment_order/views/payment_order_create_view.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - add.context.to.display.maturity.date - payment.order.create - - - - {'journal_type': 'sale'} - 1 - - - - - - diff --git a/account_payment_order/wizard/account_invoice_payment_line_multi.py b/account_payment_order/wizard/account_invoice_payment_line_multi.py index 0abd67669..8b9df7c82 100644 --- a/account_payment_order/wizard/account_invoice_payment_line_multi.py +++ b/account_payment_order/wizard/account_invoice_payment_line_multi.py @@ -2,7 +2,7 @@ # © 2016 Akretion () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import models, api +from odoo import models, api class AccountInvoicePaymentLineMulti(models.TransientModel): diff --git a/account_payment_order/wizard/account_payment_line_create.py b/account_payment_order/wizard/account_payment_line_create.py index 0737b022e..a7e536284 100644 --- a/account_payment_order/wizard/account_payment_line_create.py +++ b/account_payment_order/wizard/account_payment_line_create.py @@ -5,7 +5,7 @@ # © 2015-2016 Akretion () # 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 AccountPaymentLineCreate(models.TransientModel): diff --git a/account_payment_order/wizard/account_payment_line_create_view.xml b/account_payment_order/wizard/account_payment_line_create_view.xml index b53cca822..89227da2b 100644 --- a/account_payment_order/wizard/account_payment_line_create_view.xml +++ b/account_payment_order/wizard/account_payment_line_create_view.xml @@ -1,11 +1,11 @@ - - + + account_payment_line_create.form @@ -61,5 +61,5 @@ new - - + +