Skip to content

Commit

Permalink
Port almost all modules to v10 (OCA#305)
Browse files Browse the repository at this point in the history
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug OCA#300)
  • Loading branch information
Alexis de Lattre authored and angelmoya committed Jan 3, 2024
1 parent a3ec3a3 commit 904d0c5
Show file tree
Hide file tree
Showing 25 changed files with 62 additions and 113 deletions.
2 changes: 1 addition & 1 deletion account_payment_order/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
======================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# © 2009 EduSense BV (<http://www.edusense.nl>)
# © 2011-2013 Therp BV (<http://therp.nl>)
# © 2013-2014 ACSONE SA (<http://acsone.eu>).
# © 2014-2016 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2014-2016 Tecnativa - Pedro M. Baeza
# © 2016 Akretion (<http://www.akretion.com>).
# 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',
Expand Down
15 changes: 0 additions & 15 deletions account_payment_order/data/payment_mode_type.xml

This file was deleted.

12 changes: 5 additions & 7 deletions account_payment_order/data/payment_seq.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
© 2015-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<openerp>
<data>
<odoo>


<record id="bank_payment_line_seq" model="ir.sequence">
Expand Down Expand Up @@ -34,5 +33,4 @@
</record>


</data>
</openerp>
</odoo>
6 changes: 2 additions & 4 deletions account_payment_order/demo/payment_demo.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<odoo noupdate="1">


<record id="account_payment_mode.payment_mode_outbound_dd1" model="account.payment.mode">
Expand Down Expand Up @@ -30,5 +29,4 @@
</record>


</data>
</openerp>
</odoo>
4 changes: 2 additions & 2 deletions account_payment_order/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# © 2016 Akretion (Alexis de Lattre <[email protected]>)
# 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):
Expand Down
2 changes: 1 addition & 1 deletion account_payment_order/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# © 2016 Akretion (Alexis de Lattre <[email protected]>)
# 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):
Expand Down
2 changes: 1 addition & 1 deletion account_payment_order/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions account_payment_order/models/account_payment_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# © 2015-2016 Akretion - Alexis de Lattre <[email protected]>
# 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):
Expand Down
4 changes: 2 additions & 2 deletions account_payment_order/models/account_payment_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# © 2016 Akretion (Alexis de Lattre <[email protected]>)
# 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):
Expand Down
4 changes: 2 additions & 2 deletions account_payment_order/models/account_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# © 2016 Akretion (Alexis de Lattre - [email protected])
# 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):
Expand Down
6 changes: 3 additions & 3 deletions account_payment_order/models/bank_payment_line.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# © 2015 Akretion - Alexis de Lattre <[email protected]>
# © 2015-2016 Akretion - Alexis de Lattre <[email protected]>
# 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):
Expand Down
6 changes: 3 additions & 3 deletions account_payment_order/models/res_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# © 2015-2016 Akretion - Alexis de Lattre <[email protected]>
# 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):
Expand All @@ -19,4 +19,4 @@ def check_bic_length(self):
"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
7 changes: 4 additions & 3 deletions account_payment_order/security/payment_security.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<odoo>
<data noupdate="0">


Expand All @@ -11,9 +11,9 @@


</data>

<data noupdate="1">


<record id="account_payment_order_company_rule" model="ir.rule">
<field name="name">Payment order multi-company rule</field>
<field name="model_id" ref="model_account_payment_order"/>
Expand All @@ -26,5 +26,6 @@
<field name="domain_force">['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])]</field>
</record>


</data>
</openerp>
</odoo>
2 changes: 0 additions & 2 deletions account_payment_order/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
-->

<odoo>
<data>

<record id="invoice_form" model="ir.ui.view">
<field name="name">account_payment_order.invoice_form</field>
Expand Down Expand Up @@ -58,5 +57,4 @@
view_mode="form"
target="new"/>

</data>
</odoo>
13 changes: 5 additions & 8 deletions account_payment_order/views/account_move_line.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
Copyright (C) 2016 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
© 2016 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<openerp>
<data>
<odoo>


<record id="view_move_line_form" model="ir.ui.view">
Expand All @@ -24,5 +22,4 @@
</record>


</data>
</openerp>
</odoo>
6 changes: 2 additions & 4 deletions account_payment_order/views/account_payment_line.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>


<record id="account_payment_line_form" model="ir.ui.view">
Expand Down Expand Up @@ -65,5 +64,4 @@
</record>


</data>
</openerp>
</odoo>
7 changes: 3 additions & 4 deletions account_payment_order/views/account_payment_mode.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>


<record id="account_payment_mode_form" model="ir.ui.view">
Expand Down Expand Up @@ -70,5 +69,5 @@
</field>
</record>

</data>
</openerp>

</odoo>
7 changes: 3 additions & 4 deletions account_payment_order/views/account_payment_order.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>


<record id="account_payment_order_form" model="ir.ui.view">
Expand Down Expand Up @@ -159,5 +158,5 @@
<menuitem id="account_payment_order_inbound_menu" action="account_payment_order_inbound_action"
parent="payment_root" sequence="20"/>

</data>
</openerp>

</odoo>
13 changes: 6 additions & 7 deletions account_payment_order/views/bank_payment_line.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<odoo>
<!--
Copyright (C) 2015-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
© 2015-2016 Akretion (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<record id="bank_payment_line_form" model="ir.ui.view">
Expand Down Expand Up @@ -79,5 +78,5 @@
<menuitem id="bank_payment_line_menu" action="bank_payment_line_action"
parent="payment_root" sequence="50" groups="group_account_payment"/>

</data>
</openerp>

</odoo>
8 changes: 4 additions & 4 deletions account_payment_order/views/ir_attachment.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- © 2016 Akretion (Alexis de Lattre <[email protected]>) -->
<openerp>
<data>
<odoo>


<record id="view_attachment_simplified_form" model="ir.ui.view">
<field name="name">ir.attachment.simplified.form</field>
Expand All @@ -28,5 +28,5 @@
</field>
</record>

</data>
</openerp>

</odoo>
23 changes: 0 additions & 23 deletions account_payment_order/views/payment_order_create_view.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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, api
from odoo import models, api


class AccountInvoicePaymentLineMulti(models.TransientModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# © 2015-2016 Akretion (<http://www.akretion.com>)
# 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):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013-2016 Akretion (http://www.akretion.com)
© 2013-2016 Akretion (http://www.akretion.com)
@author: Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<data>
<odoo>


<record id="account_payment_line_create_form" model="ir.ui.view">
<field name="name">account_payment_line_create.form</field>
Expand Down Expand Up @@ -61,5 +61,5 @@
<field name="target">new</field>
</record>

</data>
</openerp>

</odoo>

0 comments on commit 904d0c5

Please sign in to comment.