@classmethod
def get_unit_digits(cls, records, name):
    result = {r.id: (r.product.default_uom.digits if r.product else 2) for r in records}
    return result
@classmethod
def get_unit_digits(cls, records, name):
    result = {r.id: (r.product.default_uom.digits if r.product else 2) for r in records}
    return result