[FIX] account_banking_payment_transfer: do not set name on the transfer move

There is no need to set the name on the transfer move as the same
information is present in the move lines labels. Moreover setting
the name of the move will prevent the system to number it according
to the sequence.
This commit is contained in:
Stéphane Bidoul
2014-10-15 22:42:40 +02:00
parent d0d2b5ef62
commit 376957c363

View File

@@ -171,10 +171,6 @@ class payment_order(orm.Model):
self, cr, uid, order, line, labels, context=None):
vals = {
'journal_id': order.mode.transfer_journal_id.id,
'name': '%s %s' % (labels[order.payment_order_type],
line.move_line_id
and line.move_line_id.move_id.name
or line.communication),
'ref': '%s %s' % (order.payment_order_type[:3].upper(),
line.move_line_id
and line.move_line_id.move_id.name