11 lines
360 B
Python
11 lines
360 B
Python
|
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)
|