oca-ocb-sale/odoo-bringout-oca-ocb-website_sale/website_sale/models/website_base_unit.py
Ernad Husremovic 73afc09215 19.0 vanilla
2026-03-09 09:32:12 +01:00

15 lines
444 B
Python

# 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,
)