Comment 10 for bug 954189

Revision history for this message
Carlos Contreras (carlos-realsystems) wrote : Re: Selected UOM does not belong to the same category as the product UOM

765:

        if not uom_id:
            uom_id = product_uom_po_id

It solves adding one condition and it doesnt cause harm:

        if not uom_id or uom_id != product_uom_po_id:
            uom_id = product_uom_po_id