12 lines
360 B
Python
12 lines
360 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import fields, models
|
|
|
|
|
|
class UomCategory(models.Model):
|
|
_inherit = "uom.category"
|
|
|
|
allow_decimal_quantity = fields.Boolean(
|
|
string="Allow Decimal Quantity",
|
|
default=False,
|
|
help="If checked, products with this unit of measure category will allow decimal quantities in the website shop.",
|
|
)
|