[MERGE] Forward-port 9.0 up to 1070b83e14

This commit is contained in:
Olivier Dony
2017-05-16 14:48:43 +02:00
7 changed files with 9 additions and 22 deletions
-1
View File
@@ -27,6 +27,5 @@
'base_data.xml',
'account_chart_type.xml',
],
'license': 'GPL-3',
'installable': True,
}
@@ -27,6 +27,5 @@
'account_chart_template.xml',
'account_chart_template.yml',
],
'license': 'GPL-3',
'installable': True,
}
-1
View File
@@ -27,6 +27,5 @@
'account_chart_template.xml',
'account_chart_template.yml',
],
'license': 'GPL-3',
'installable': True,
}
+4 -18
View File
@@ -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',
+2
View File
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Eezee-It
import json
import logging
import werkzeug
+2
View File
@@ -1,5 +1,7 @@
# -*- coding: utf-'8' "-*-"
# Copyright 2015 Eezee-It
import json
import logging
from hashlib import sha256
+1 -1
View File
@@ -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()