[FIX] payment.acquirer: now passing xml_id instead of id for the template to render.
Indeed render accepts view ID, but the qweb engine does not handle IDs, only xml_ids. Using the view xml_id field allows to avoid having a hack in the server. bzr revid: tde@openerp.com-20131121133309-qq2alstapq5sonkm
This commit is contained in:
parent
32897bf4ee
commit
a64c16aac5
|
@ -130,7 +130,8 @@ class PaymentAcquirer(osv.Model):
|
|||
'tx_values': tx_values,
|
||||
'context': context,
|
||||
}
|
||||
return self.pool['ir.ui.view'].render(cr, uid, acquirer.view_template_id.id, qweb_context, engine='ir.qweb', context=context)
|
||||
# because render accepts view ids but not qweb -> need to find the xml_id
|
||||
return self.pool['ir.ui.view'].render(cr, uid, acquirer.view_template_id.xml_id, qweb_context, engine='ir.qweb', context=context)
|
||||
|
||||
def get_form_action_url(self, cr, uid, id, context=None):
|
||||
acquirer = self.browse(cr, uid, id, context=context)
|
||||
|
|
Loading…
Reference in New Issue