summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorHumberto Arocha <hbto@vauxoo.com>2018-12-04 13:54:00 +0000
committerNicolas Martinelli <nim@odoo.com>2018-12-05 08:47:31 +0000
commit03c40e310412c62ef83be8e171ddb1aa4153263f (patch)
treea82d4900c7d84c5f797d51c2c136f69112660c18 /addons
parent97aec9f836bf4154e95fa9857cef5e31cbad5d00 (diff)
[FIX] account: date in log must a string not a date object
Closes #29248 closes odoo/odoo#29262
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/account_move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py
index 3c1c7917687..ae35c900de7 100644
--- a/addons/account/models/account_move.py
+++ b/addons/account/models/account_move.py
@@ -1117,7 +1117,7 @@ class AccountMoveLine(models.Model):
self._update_check()
#when we set the expected payment date, log a note on the invoice_id related (if any)
if vals.get('expected_pay_date') and self.invoice_id:
- msg = _('New expected payment date: ') + vals['expected_pay_date'] + '.\n' + vals.get('internal_note', '')
+ msg = _('New expected payment date: ') + fields.Date.to_string(vals['expected_pay_date']) + '.\n' + vals.get('internal_note', '')
self.invoice_id.message_post(body=msg) #TODO: check it is an internal note (not a regular email)!
#when making a reconciliation on an existing liquidity journal item, mark the payment as reconciled
for record in self: