
Integrated open-source ERP, CMS, and business applications suite
Odoo is a versatile open-source business management suite featuring an intuitive drag-and-drop website builder, integrated CMS, eCommerce store, CRM, inventory, and accounting. Our Odoo development services cover custom module engineering, API integrations, theme customization, and automated business workflows.
from odoo import models, fields, api
class CustomService(models.Model):
_name = 'cms.custom.service'
_description = 'Odoo CMS Service Record'
name = fields.Char(string='Service Title', required=True)
slug = fields.Char(string='URL Slug', index=True)
is_published = fields.Boolean(string='Published', default=False)
@api.model
def get_published(self):
return self.search([('is_published', '=', True)])