Purchase units of measure

When you purchase a product, it may happen that your vendor uses a different unit of measure than when it is sold. This can cause confusion between sales and purchase representatives. It is also time-consuming to convert measures manually every time. With Odoo, you can configure your product once and let Odoo handle the conversion.

Consider the following examples:

  1. You purchase orange juice from an American vendor, and they use gallons. However, your customers are European and use liters.

  2. You buy curtains from a vendor in the form of rolls and you sell pieces of the rolls to your customers using square meters.

Enable units of measure

Open your Sales app and go to Configuration ‣ Settings. Under Product Catalog, enable Units of Measure.

Enable the units of measure option in Odoo Sales

Specify sales and purchase units of measure

Standard units of measure

A variety of units of measure are available by default in your database. Each belongs to one of the five pre-configured units of measure categories: Length / Distance, Unit, Volume, Weight and Working Time.

Tip

You can create your new units of measure and units of measure categories (see next section).

หากต้องการระบุหน่วยวัดต่างๆ สำหรับการขายและการซื้อ ให้เปิดแอปการจัดซื้อและไปที่ ผลิตภัณฑ์ ‣ ผลิตภัณฑ์ สร้างผลิตภัณฑ์หรือเลือกผลิตภัณฑ์ที่มีอยู่ ใต้แท็บ ข้อมูลทั่วไป ของผลิตภัณฑ์ ขั้นแรกให้เลือก หน่วยวัด ที่จะใช้สำหรับการขาย (รวมถึงแอปอื่นๆ เช่น สินค้าคงคลัง) จากนั้นเลือก หน่วยวัดการซื้อ ที่จะใช้สำหรับการซื้อ

Back to the first example, if you purchase orange juice from your vendor in gallons and sell it to your customers in liters, first select L (liters) as the Unit of Measure, and gal (US) (gallons) as the Purchase Unit of Measure, then click on Save.

Configure a product's units of measure in Odoo

Create new units of measure and units of measure categories

Sometimes you need to create your own units and categories, either because the measure is not pre-configured in Odoo or because the units do not relate with each other (e.g. kilos and centimeters).

If you take the second example where you buy curtains from a vendor in the form of rolls and you sell pieces of the rolls using square meters, you need to create a new Units of Measure Category in order to relate both units of measure.

To do so, go to Configuration ‣ Units of Measure Categories. Click on Create and name the category.

Create a new units of measure category in Odoo Purchase

The next step is to create the two units of measures. To do so, click into the Unit of Measure Category field and enter a name for the category. Then, under the Units of Measure tab, click Add a line.

ขั้นแรก สร้างหน่วยวัดที่ใช้เป็นจุดอ้างอิงสำหรับการแปลงเป็นหน่วยวัดอื่นๆ ภายในหมวดหมู่ ตั้งชื่อหน่วย และเลือกหน่วยของประเภทการวัดที่คุณเพิ่งสร้างขึ้น สำหรับ ประเภท ให้เลือก หน่วยวัดอ้างอิงสำหรับประเภทประเภทนี้ ป้อน ความแม่นยำในการปัดเศษ ที่คุณต้องการใช้ ปริมาณที่คำนวณโดย Odoo จะเป็นจำนวนเท่าของค่านี้เสมอ

In the example, as you cannot purchase less than 1 roll and won't use fractions of a roll as a unit of measure, you can enter 1.

Create a new reference unit of measure in Odoo Purchase

Note

หากคุณใช้ ความแม่นยำในการปัดเศษ ที่ต่ำกว่า 0.01 ข้อความเตือนอาจปรากฏขึ้นโดยระบุว่ามีค่าสูงกว่า ความแม่นยำของทศนิยม และอาจทำให้เกิดความไม่สอดคล้องกัน หากคุณต้องการใช้ ความแม่นยำในการปัดเศษ ต่ำกว่า 0.01 ให้เปิดใช้งาน โหมดนักพัฒนาซอฟต์แวร์ ` ก่อน จากนั้นไปที่ :menuselection:`การตั้งค่า --> เทคนิค --> โครงสร้างฐานข้อมูล --> ความแม่นยำทศนิยม เลือก หน่วยวัดผลิตภัณฑ์ และแก้ไข ตัวเลข ตามลำดับ ตัวอย่างเช่น หากคุณต้องการใช้ความแม่นยำในการปัดเศษที่ 0.00001 ให้ตั้งค่า ตัวเลข เป็น 5

Next, create a second unit of measure, name it, and select the same units of measure category as your reference unit. As Type, select Smaller or Bigger than the reference Unit of Measure, depending on your situation.

As the curtain roll equals to 100 square meters, you should select Smaller.

Next, you need to enter the Ratio between your reference unit and the second one. If the second unit is smaller, the Ratio should be greater than 1. If the second unit is larger, the ratio should be smaller than 1.

For your curtain roll, the ratio should be set to 100.

You can now configure your product just as you would using Odoo's standard units of measure.

Set a product's units of measure using your own units in Odoo Purchase