Odoo18-Base/addons/website_sale/models/website_base_unit.py

16 lines
444 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class WebsiteBaseUnit(models.Model):
_name = 'website.base.unit'
_description = "Unit of Measure for price per unit on eCommerce products."
_order = 'name'
name = fields.Char(
help="Define a custom unit to display in the price per unit of measure field.",
required=True,
translate=True,
)