summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJaykishan Solanki <jao@odoo.com>2017-08-07 13:38:44 +0200
committerRichard Mathot <rim@odoo.com>2017-08-07 13:38:54 +0200
commitb79c2a773c2b5a6d7beaf5db41bc1287a4b6e5a4 (patch)
tree14db965b54a9e82f55b81c0ce99b41b4348d239b /addons
parenta867cce4069bf107a479045b06d41dcfd8b1f313 (diff)
[IMP] stock_account: log product name in journal entries
When using perpetual valuation (for stock), automatic entries that are created when product cost changes do log product name.
Diffstat (limited to 'addons')
-rw-r--r--addons/stock_account/models/product.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py
index 289c53d8e56..bfdb5a00469 100644
--- a/addons/stock_account/models/product.py
+++ b/addons/stock_account/models/product.py
@@ -149,12 +149,12 @@ class ProductProduct(models.Model):
'journal_id': product_accounts[product.id]['stock_journal'].id,
'company_id': location.company_id.id,
'line_ids': [(0, 0, {
- 'name': _('Standard Price changed'),
+ 'name': _('Standard Price changed - %s') % (product.display_name),
'account_id': debit_account_id,
'debit': abs(diff * qty_available),
'credit': 0,
}), (0, 0, {
- 'name': _('Standard Price changed'),
+ 'name': _('Standard Price changed - %s') % (product.display_name),
'account_id': credit_account_id,
'debit': 0,
'credit': abs(diff * qty_available),