-
-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] migrate account_due_list to v9
- Loading branch information
1 parent
b5664d9
commit acb148c
Showing
9 changed files
with
204 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2008 Zikzakmedia S.L. (http://zikzakmedia.com) | ||
# Jordi Esteve <jesteve@zikzakmedia.com> | ||
# © 2011 Domsense srl (<http://www.domsense.com>) | ||
# © 2011-2013 Agile Business Group sagl (<http://www.agilebg.com>) | ||
# © 2015 Andrea Cometa <info@andreacometa.it> | ||
# © 2015 Eneko Lacunza <elacunza@binovo.es> | ||
# © 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza | ||
# © 2016 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) | ||
# Copyright (C) 2011-2013 Agile Business Group sagl | ||
# (<http://www.agilebg.com>) | ||
# @author Jordi Esteve <jesteve@zikzakmedia.com> | ||
# @author Lorenzo Battistini <lorenzo.battistini@agilebg.com> | ||
# Ported to OpenERP 7.0 by Alex Comba <alex.comba@agilebg.com> and | ||
# Bruno Bottacini <bruno.bottacini@dorella.com> | ||
# Ported to Odoo by Andrea Cometa <info@andreacometa.it> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
# © 2008 Zikzakmedia S.L. (http://zikzakmedia.com) | ||
# Jordi Esteve <jesteve@zikzakmedia.com> | ||
# © 2011 Domsense srl (<http://www.domsense.com>) | ||
# © 2011-2013 Agile Business Group sagl (<http://www.agilebg.com>) | ||
# © 2015 Andrea Cometa <info@andreacometa.it> | ||
# © 2015 Eneko Lacunza <elacunza@binovo.es> | ||
# © 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza | ||
# © 2016 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
'name': "Payments Due list", | ||
'version': '8.0.0.2.0', | ||
'name': "Receivables and Payables Open Items", | ||
'version': '9.0.1.0.0', | ||
'category': 'Generic Modules/Payment', | ||
'author': 'Odoo Community Association (OCA), ' | ||
'Agile Business Group, ' | ||
'Serv. Tecnol. Avanzados - Pedro M. Baeza,' | ||
'Zikzakmedia SL', | ||
'Zikzakmedia SL,' | ||
'Eficent Business and Consulting Services S.L.', | ||
'website': 'http://www.agilebg.com', | ||
'license': 'AGPL-3', | ||
"depends": [ | ||
'account', | ||
], | ||
"data": [ | ||
'views/payment_view.xml', | ||
'views/receivables_payables_view.xml', | ||
], | ||
'installable': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Savoir-faire Linux | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
column_drops = { | ||
('account_move_line', 'day'), | ||
} | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(cr, version): | ||
if not version: | ||
return | ||
|
||
openupgrade.drop_columns(cr, column_drops) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2015 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
import logging | ||
|
||
logger = logging.getLogger('upgrade') | ||
|
||
|
||
def migrate(cr, version): | ||
logger.info("Migrating account_due_list from version %s", version) | ||
if not version: | ||
return | ||
|
||
cr.execute('ALTER TABLE account_move_line DROP COLUMN maturity_residual') | ||
cr.execute('ALTER TABLE account_move_line DROP COLUMN stored_invoice_id') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2008 Zikzakmedia S.L. (http://zikzakmedia.com) | ||
# Jordi Esteve <jesteve@zikzakmedia.com> | ||
# © 2011 Domsense srl (<http://www.domsense.com>) | ||
# © 2011-2013 Agile Business Group sagl (<http://www.agilebg.com>) | ||
# © 2015 Andrea Cometa <info@andreacometa.it> | ||
# © 2015 Eneko Lacunza <elacunza@binovo.es> | ||
# © 2015 Serv. Tecnol. Avanzados - Pedro M. Baeza | ||
# © 2016 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import account_move_line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.