add website_decimal_quantity
This commit is contained in:
parent
0323b6672e
commit
9d69e5f095
67 changed files with 1858 additions and 0 deletions
12
website_decimal_quantity/models/uom_category.py
Normal file
12
website_decimal_quantity/models/uom_category.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# -*- 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.",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue