Comment 0 for bug 1179705

Revision history for this message
Mohammad Alhashash (alhashash) wrote : [7.0][stock] Valuation move lines does include UoM

Create a reception or delivery of a stockable product and process it. Either check the account lines of the valuation entry in the database or open Journal Items > Stock Journal and modify the tree view through the developer mode to show the product_id, product_uom_id, and quantity fields.

While the quantity field has the stock move quantity in move UoM, the product_uom_id is always NULL! Without unit of measure, the quantity value is meaningless. Having these fields in journal items is very useful for reporting.

The problem cause is that method _create_account_move_line() of account.move.line does not add the product_uom_id to the created lines.

Regards,

Mohammad Alhashash