[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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user