1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="acquirer_form" model="ir.ui.view">
5 <field name="model">portal.payment.acquirer</field>
6 <field name="arch" type="xml">
7 <form string="Payment Acquirer" version="7.0">
10 <label for="name" class="oe_edit_only"/><h1><field name="name"/></h1>
11 <div class="oe_edit_only"><field name="visible"/><label for="visible"/></div>
13 <group string="Form Template">
16 This is an HTML form template to submit a payment through this acquirer.
17 The template will be rendered with <a href="http://www.makotemplates.org/" target="_blank">Mako</a>, so it may use Mako expressions.
18 The Mako evaluation context provides:
20 <li>reference: the reference number of the document to pay</li>
21 <li>kind: the kind of document on which the payment form is rendered (translated to user language, e.g. "Invoice")</li>
22 <li>currency: the currency record in which the document is issued (e.g. currency.name could be EUR)</li>
23 <li>amount: the total amount to pay, as a float</li>
24 <li>object: the document on which the payment form is rendered (usually an invoice or sales order record)</li>
25 <li>quote(): a method to quote special string character to make them suitable for inclusion in a URL</li>
26 <li>cr: the current database cursor</li>
27 <li>uid: the current user id</li>
28 <li>ctx: the current context dictionary</li>
30 If the template renders to an empty result in a certain context it will be ignored, as if it was inactive.
33 <field name="form_template" nolabel="1" colspan="2"/>
39 <record id="acquirer_list" model="ir.ui.view">
40 <field name="model">portal.payment.acquirer</field>
41 <field name="arch" type="xml">
42 <tree string="Payment Acquirers">
44 <field name="visible"/>
48 <record id="acquirer_search" model="ir.ui.view">
49 <field name="model">portal.payment.acquirer</field>
50 <field name="arch" type="xml">
57 <!-- Acquirers list action is visible in Invoicing Settings -->
58 <record model="ir.actions.act_window" id="action_acquirer_list">
59 <field name="name">Payment Acquirers</field>
60 <field name="res_model">portal.payment.acquirer</field>