mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user