Need to create a new field in product form
I need to create a new field in product form for the unit of measure. My requirements are as below.
product unit of measure = Unit
Purchase unit of measure = Cotton 24, cotton 48, cotton 80 etc
Custom Field = x_pcs_in_cotton
user will put 24 etc in this field.
On save, odoo should create a new product_uom with following fields and set it to purchase_uom for this product.
Name = Cotton 24
Reference unit of measure = Unit
uom_type = Bigger Than the reference unit of measure.
factor_inv = 24
Rounding = 1/24