summaryrefslogtreecommitdiff
path: root/addons/payment_transfer/models/payment.py
diff options
context:
space:
mode:
authorDenis Vermylen (dve) <dve@odoo.com>2016-08-25 13:20:37 +0200
committerDenis Vermylen (dve) <dve@odoo.com>2016-08-31 17:17:38 +0200
commit23f3bde20d4a28edc3b7c39525c89fe72345edec (patch)
tree6c5759649e62063cd3206dcef7a45167c6789e95 /addons/payment_transfer/models/payment.py
parent1a4af280678d06a11a2f391368c8dc7502789a37 (diff)
[FIX] payment: change custom acquirer to work
- custom acquirer auto_confirm field changed to none. - changed default_acquirer_button to actually display a button used wire transfer's template (transfer_acquirer_button) - set dependance to module_payment_transfer as it doesn't work without and use transfer as provider. Note: This is a quick fix to make it work, it's quite ugly. Before the fix it didn't work an people duplicated the transfer payment acquirer and edited it. One downside for usability is that the payment icon will be the one from transfer.
Diffstat (limited to 'addons/payment_transfer/models/payment.py')
-rw-r--r--addons/payment_transfer/models/payment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_transfer/models/payment.py b/addons/payment_transfer/models/payment.py
index 2ec43959bd6..c61b12b1ceb 100644
--- a/addons/payment_transfer/models/payment.py
+++ b/addons/payment_transfer/models/payment.py
@@ -13,7 +13,7 @@ _logger = logging.getLogger(__name__)
class TransferPaymentAcquirer(models.Model):
_inherit = 'payment.acquirer'
- provider = fields.Selection(selection_add=[('transfer', 'Wire Transfer')])
+ provider = fields.Selection(selection_add=[('transfer', 'Wire Transfer')], default='transfer')
def transfer_get_form_action_url(self):
return '/payment/transfer/feedback'