[MERGE] [FIX] models: do not drop low level columns (aka 'magic columns') when deleti...
[odoo/odoo.git] / addons / portal / acquirer_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
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">
8                     <group col="1">
9                         <div class="oe_title">
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>
12                         </div>
13                         <group string="Form Template">
14                             <div>
15                                 <p>
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:
19                                 <ul>
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>
29                                 </ul>
30                                 If the template renders to an empty result in a certain context it will be ignored, as if it was inactive.
31                                 </p>
32                             </div>
33                             <field name="form_template" nolabel="1" colspan="2"/>
34                         </group>
35                     </group>
36                 </form>
37             </field>
38         </record>
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">
43                     <field name="name"/>
44                     <field name="visible"/>
45                 </tree>
46             </field>
47         </record>
48         <record id="acquirer_search" model="ir.ui.view">
49             <field name="model">portal.payment.acquirer</field>
50             <field name="arch" type="xml">
51                 <search>
52                     <field name="name"/>
53                 </search>
54             </field>
55         </record>
56
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>
61         </record>
62
63
64     </data>
65 </openerp>