[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.
This commit is contained in:
Jaykishan Solanki
2017-08-07 13:38:54 +02:00
committed by Richard Mathot
parent a867cce406
commit b79c2a773c
+2 -2
View File
@@ -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),