Improvements as per feedback

This commit is contained in:
Andrea
2018-12-20 16:39:00 +01:00
committed by Andrea Stirpe
parent 773b8f48e7
commit 3fbfa32f73
6 changed files with 57 additions and 2 deletions

View File

@@ -34,7 +34,10 @@ class AccountInvoiceSpreadLine(models.Model):
if created_moves:
post_msg = _("Created move(s) ")
post_msg += ", ".join(str(id) for id in created_moves.ids)
post_msg += ", ".join(
'<a href=# data-oe-model=account.move data-oe-id=%d'
'>%s</a>' % (move.id, move.name)
for move in created_moves)
spread.message_post(body=post_msg)
spread._reconcile_spread_moves(created_moves)