Skip to content
Snippets Groups Projects
Commit 299e3955 authored by Ravish Murari's avatar Ravish Murari Committed by Martin Trigaux
Browse files

[FIX] payment_transfer: correctly display transfer information

When moving fields name -> provider on payment.acquire, the condition in payment_transfer was not updated.
This lead to no post_msg value in the Wired Transfert acquire.
Fixes #2423, opw 613934
parent ef72a96d
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
<field name="company_id"/>
<field name="website_published"/>
<field name="environment"/>
<field name="validation"/>
</group>
<group>
<field name="fees_active"/>
......
......@@ -45,7 +45,7 @@ class TransferPaymentAcquirer(osv.Model):
""" Hook in create to create a default post_msg. This is done in create
to have access to the name and other creation values. If no post_msg
or a void post_msg is given at creation, generate a default one. """
if values.get('name') == 'transfer' and not values.get('post_msg'):
if values.get('provider') == 'transfer' and not values.get('post_msg'):
values['post_msg'] = self._format_transfer_data(cr, uid, context=context)
return super(TransferPaymentAcquirer, self).create(cr, uid, values, context=context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment