summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-05-16 14:47:34 +0200
committerOlivier Dony <odo@openerp.com>2017-05-16 14:48:43 +0200
commit6490e652c3742e2752e4ee9f20af78f7e3fcbdbe (patch)
tree06bde8b8cf42c772c4aeb6fb7a0a5556f107e30b /addons
parent0570033ae7c5b4e0efa4a1ee9fd90dcb9675f890 (diff)
parent1070b83e14ebb7ecd1349969fd0cdb2bdffc9db2 (diff)
[MERGE] Forward-port 9.0 up to 1070b83e14ebb7ecd1349969fd0cdb2bdffc9db2
Diffstat (limited to 'addons')
-rw-r--r--addons/l10n_cn/__openerp__.py1
-rw-r--r--addons/l10n_cn_small_business/__openerp__.py1
-rw-r--r--addons/l10n_cn_standard/__openerp__.py1
-rw-r--r--addons/payment_sips/__openerp__.py22
-rw-r--r--addons/payment_sips/controllers/main.py2
-rw-r--r--addons/payment_sips/models/sips.py2
-rw-r--r--addons/sale/sale.py2
7 files changed, 9 insertions, 22 deletions
diff --git a/addons/l10n_cn/__openerp__.py b/addons/l10n_cn/__openerp__.py
index 6530560f13f..a5041dc0f59 100644
--- a/addons/l10n_cn/__openerp__.py
+++ b/addons/l10n_cn/__openerp__.py
@@ -27,6 +27,5 @@
'base_data.xml',
'account_chart_type.xml',
],
- 'license': 'GPL-3',
'installable': True,
}
diff --git a/addons/l10n_cn_small_business/__openerp__.py b/addons/l10n_cn_small_business/__openerp__.py
index 43e9ab5fb0c..432ccda4e8a 100644
--- a/addons/l10n_cn_small_business/__openerp__.py
+++ b/addons/l10n_cn_small_business/__openerp__.py
@@ -27,6 +27,5 @@
'account_chart_template.xml',
'account_chart_template.yml',
],
- 'license': 'GPL-3',
'installable': True,
}
diff --git a/addons/l10n_cn_standard/__openerp__.py b/addons/l10n_cn_standard/__openerp__.py
index beb68e335dd..6adfaa2bae1 100644
--- a/addons/l10n_cn_standard/__openerp__.py
+++ b/addons/l10n_cn_standard/__openerp__.py
@@ -27,6 +27,5 @@
'account_chart_template.xml',
'account_chart_template.yml',
],
- 'license': 'GPL-3',
'installable': True,
}
diff --git a/addons/payment_sips/__openerp__.py b/addons/payment_sips/__openerp__.py
index 08298fbfd3f..9ca3fa9c1c1 100644
--- a/addons/payment_sips/__openerp__.py
+++ b/addons/payment_sips/__openerp__.py
@@ -1,22 +1,8 @@
# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Copyright Eezee-It
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU 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 General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-##############################################################################
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+# Copyright 2015 Eezee-It
+
{
'name': 'Worldline SIPS',
'version': '1.0',
diff --git a/addons/payment_sips/controllers/main.py b/addons/payment_sips/controllers/main.py
index 02c975d94e2..29fc38a7af0 100644
--- a/addons/payment_sips/controllers/main.py
+++ b/addons/payment_sips/controllers/main.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+# Copyright 2015 Eezee-It
+
import json
import logging
import werkzeug
diff --git a/addons/payment_sips/models/sips.py b/addons/payment_sips/models/sips.py
index 506a9118ea6..d3b659aebfd 100644
--- a/addons/payment_sips/models/sips.py
+++ b/addons/payment_sips/models/sips.py
@@ -1,5 +1,7 @@
# -*- coding: utf-'8' "-*-"
+# Copyright 2015 Eezee-It
+
import json
import logging
from hashlib import sha256
diff --git a/addons/sale/sale.py b/addons/sale/sale.py
index d625f41fe8c..f1fac05aa70 100644
--- a/addons/sale/sale.py
+++ b/addons/sale/sale.py
@@ -62,7 +62,7 @@ class SaleOrder(models.Model):
# Search for invoices which have been 'cancelled' (filter_refund = 'modify' in
# 'account.invoice.refund')
# use like as origin may contains multiple references (e.g. 'SO01, SO02')
- refunds = invoice_ids.search([('origin', 'like', order.name)])
+ refunds = invoice_ids.search([('origin', 'like', order.name)]).filtered(lambda r: r.type in ['out_invoice', 'out_refund'])
invoice_ids |= refunds.filtered(lambda r: order.name in [origin.strip() for origin in r.origin.split(',')])
# Search for refunds as well
refund_ids = self.env['account.invoice'].browse()