I’m new to Cyllo development and I’d love to know what kinds of fields I can create in Cyllo. Do you have any tips for choosing between the different options?
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
This question has been flagged
Here's a breakdown of common field types in Odoo. This should help you understand the options available when defining your models.
Odoo provides various field types for different data requirements, from basic text and numbers to complex relational fields connecting different models.
Basic Field Types,
name = fields.Char(string='Name', required=True) # Char field (short text)
description = fields.Text(string='Description') # Long text
amount = fields.Float(string='Amount', digits=(10, 2)) # Decimal with precision
quantity = fields.Integer(string='Quantity') # Whole number
is_active = fields.Boolean(string='Active', default=True) # Checkbox (boolean)
Date and Time Fields
date_created = fields.Date(string='Created Date', default=fields.Date.today) # Date only
datetime_modified = fields.Datetime(string='Modified DateTime') # Date + Time
Selection Field
state = fields.Selection([
('draft', 'Draft'),
('confirmed', 'Confirmed'),
('done', 'Done')
], string='State', default='draft') # Predefined states
Relational Fields
partner_id = fields.Many2one('res.partner', string='Partner') # Link to single record
line_ids = fields.One2many('example.line', 'example_id', string='Lines') # Link to multiple child records
tag_ids = fields.Many2many('example.tag', string='Tags') # Many-to-many relationship