[FIX] stock_account: product on AML
When changing the standard price of of a product set in perpetual valuation, the AML does not contain the corresponding product_id. opw-1859777
This commit is contained in:
committed by
Nicolas Martinelli
parent
f8fc006e1e
commit
c70db5d5df
@@ -128,11 +128,13 @@ class ProductProduct(models.Model):
|
||||
'account_id': debit_account_id,
|
||||
'debit': abs(diff * qty_available),
|
||||
'credit': 0,
|
||||
'product_id': product.id,
|
||||
}), (0, 0, {
|
||||
'name': _('Standard Price changed'),
|
||||
'account_id': credit_account_id,
|
||||
'debit': 0,
|
||||
'credit': abs(diff * qty_available),
|
||||
'product_id': product.id,
|
||||
})],
|
||||
}
|
||||
move = AccountMove.create(move_vals)
|
||||
|
||||
Reference in New Issue
Block a user