diff options
| author | Jitendra Prajapati <jpr@openerp.com> | 2017-05-17 11:15:11 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2017-05-17 14:41:00 +0200 |
| commit | b6d636617c290457538ea8ea589698d7dde70575 (patch) | |
| tree | 218b85d99efdc8b3aa5da94c55034c3410dd65af /addons/payment/data/payment_acquirer_data.xml | |
| parent | de5433f4154f7fbd9b496432637c7fd27eb7ced7 (diff) | |
[FIX] payment: perform small code improvements
* add a constraints about authorized state for tx and authorize feature
available on acquirer;
* order acquirers first by publish, then sequence then name;
* add a sequence on some provider data and use a default to have some
popular acquirers first;
* use update instead of write in an onchange;
Diffstat (limited to 'addons/payment/data/payment_acquirer_data.xml')
| -rw-r--r-- | addons/payment/data/payment_acquirer_data.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment/data/payment_acquirer_data.xml b/addons/payment/data/payment_acquirer_data.xml index fb1ddf4ee16..0271aebdd52 100644 --- a/addons/payment/data/payment_acquirer_data.xml +++ b/addons/payment/data/payment_acquirer_data.xml @@ -36,6 +36,7 @@ <record id="payment_acquirer_ogone" model="payment.acquirer"> <field name="name">Ingenico</field> + <field name="sequence">2</field> <field name="view_template_id" ref="default_acquirer_button"/> <field name="image" type="base64" file="payment_ogone/static/src/img/ogone_icon.png"/> <field name="module_id" ref="base.module_payment_ogone"/> @@ -70,6 +71,7 @@ <record id="payment_acquirer_authorize" model="payment.acquirer"> <field name="name">Authorize.net</field> + <field name="sequence">3</field> <field name="view_template_id" ref="default_acquirer_button"/> <field name="image" type="base64" file="payment_authorize/static/src/img/authorize_icon.png"/> <field name="module_id" ref="base.module_payment_authorize"/> @@ -89,6 +91,7 @@ <record id="payment_acquirer_transfer" model="payment.acquirer"> <field name="name">Wire Transfer</field> + <field name="sequence">2</field> <field name="view_template_id" ref="default_acquirer_button"/> <field name="image" type="base64" file="payment_transfer/static/src/img/transfer_icon.png"/> <field name="module_id" ref="base.module_payment_transfer"/> @@ -118,6 +121,7 @@ <record id="payment_acquirer_paypal" model="payment.acquirer"> <field name="name">Paypal</field> + <field name="sequence">1</field> <field name="view_template_id" ref="default_acquirer_button"/> <field name="image" type="base64" file="payment_paypal/static/src/img/paypal_icon.png"/> <field name="module_id" ref="base.module_payment_paypal"/> |
