[MERGE] forward port branch saas-6 up to b084ffd7f1

This commit is contained in:
Christophe Simonis
2017-04-21 14:07:02 +02:00
2 changed files with 10 additions and 4 deletions
+6 -3
View File
@@ -554,9 +554,12 @@ class MergePartnerAutomatic(osv.TransientModel):
'min_id': min_id,
'aggr_ids': aggr_ids,
}
proxy.create(cr, uid, values, context=context)
counter += 1
# To ensure that the used partners are accessible by the user
partner_ids = self.pool['res.partner'].search(cr, uid, [('id', 'in', aggr_ids)], context=context)
if len(partner_ids) >= 2:
values['aggr_ids'] = partner_ids
proxy.create(cr, uid, values, context=context)
counter += 1
values = {
'state': 'selection',
+4 -1
View File
@@ -120,12 +120,15 @@ var QWeb2 = {
}
return r.join('');
} else {
// avoid XMLSerializer with text node for IE
if (node.nodeType == 3) {
return node.data;
}
if (typeof XMLSerializer !== 'undefined') {
return (new XMLSerializer()).serializeToString(node);
} else {
switch(node.nodeType) {
case 1: return node.outerHTML;
case 3: return node.data;
case 4: return '<![CDATA[' + node.data + ']]>';
case 8: return '<!-- ' + node.data + '-->';
}