Skip to content

Instantly share code, notes, and snippets.

@eLBati
Created January 5, 2015 13:54
Show Gist options
  • Save eLBati/85dda5c70961497917ed to your computer and use it in GitHub Desktop.
Save eLBati/85dda5c70961497917ed to your computer and use it in GitHub Desktop.
diff -ur /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/account_move_line.py /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/account_move_line.py
--- /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/account_move_line.py 2015-01-05 14:40:15.193111870 +0100
+++ /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/account_move_line.py 2015-01-05 14:40:28.061406128 +0100
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-#
+##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2008 Zikzakmedia S.L. (http://zikzakmedia.com)
@@ -8,6 +8,7 @@
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2011-2013 Agile Business Group sagl
# (<http://www.agilebg.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
@@ -22,7 +23,7 @@
# 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/>.
#
-#
+##############################################################################
from openerp.osv import fields, orm
from openerp.tools.translate import _
@@ -31,7 +32,7 @@
class account_move_line(orm.Model):
def _get_invoice(self, cr, uid, ids, field_name, arg, context=None):
- invoice_pool = self.pool.get('account.invoice')
+ invoice_pool = self.pool['account.invoice']
res = {}
for line in self.browse(cr, uid, ids, context=context):
inv_ids = invoice_pool.search(
@@ -62,7 +63,7 @@
return res
def _get_move_lines(self, cr, uid, ids, context=None):
- invoice_pool = self.pool.get('account.invoice')
+ invoice_pool = self.pool['account.invoice']
res = []
for invoice in invoice_pool.browse(cr, uid, ids, context=context):
if invoice.move_id:
@@ -136,7 +137,7 @@
self, cr, uid, view_id=None, view_type='form',
context=None, toolbar=False, submenu=False
):
- model_data_obj = self.pool.get('ir.model.data')
+ model_data_obj = self.pool['ir.model.data']
ids = model_data_obj.search(
cr,
uid,
diff -ur /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/__init__.py /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/__init__.py
--- /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/__init__.py 2015-01-05 14:40:15.161111137 +0100
+++ /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/__init__.py 2015-01-05 14:40:28.061406128 +0100
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-#
+##############################################################################
#
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2011-2013 Agile Business Group sagl
@@ -18,5 +18,5 @@
# 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/>.
#
-#
+##############################################################################
from . import account_move_line
diff -ur /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/__openerp__.py /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/__openerp__.py
--- /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/__openerp__.py 2015-01-05 14:40:15.181111595 +0100
+++ /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/__openerp__.py 2015-01-05 14:40:28.061406128 +0100
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-#
+##############################################################################
#
# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
# Copyright (C) 2011-2013 Agile Business Group sagl
@@ -8,6 +8,7 @@
# @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
@@ -22,7 +23,7 @@
# 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/>.
#
-#
+##############################################################################
{
'name': "Payments Due list",
'version': '0.1',
@@ -44,5 +45,5 @@
'payment_view.xml',
],
"active": False,
- "installable": True
+ "installable": True,
}
@scigghia
Copy link

scigghia commented Jan 5, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment