[MERGE] forward port of branch saas-7 up to 8397003

This commit is contained in:
Denis Ledoux
2016-04-01 15:54:34 +02:00
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ class sale_quote(http.Controller):
if not tx:
tx_id = transaction_obj.create(cr, SUPERUSER_ID, {
'acquirer_id': acquirer_id,
'type': 'form',
'type': order._get_payment_type(),
'amount': order.amount_total,
'currency_id': order.pricelist_id.currency_id.id,
'partner_id': order.partner_id.id,
@@ -223,7 +223,7 @@ class sale_quote(http.Controller):
order.pricelist_id.currency_id.id,
values={
'return_url': '/quote/%s/%s' % (order_id, token) if token else '/quote/%s' % order_id,
'type': 'form',
'type': order._get_payment_type(),
'alias_usage': _('If we store your payment information on our server, subscription payments will be made automatically.'),
'partner_id': order.partner_shipping_id.id or order.partner_invoice_id.id,
'billing_partner_id': order.partner_invoice_id.id,
+2
View File
@@ -302,6 +302,8 @@ class sale_order(osv.osv):
values = dict(template_values, **values)
return super(sale_order, self).create(cr, uid, values, context=context)
def _get_payment_type(self, cr, uid, ids, context=None):
return 'form'
class sale_quote_option(osv.osv):
_name = "sale.quote.option"