The conversion between units of measure is done at the time of creating a purchase or receiving a quantity in the warehouse so that the bill can be generated correctly. The new unit or measure can be created by going to Sales | Configuration | Products | Units of Measure. Look at the following screenshot of a list of units of measure grouped by their category: