Welcome!

Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

Sign up

You need to be registered to interact with the community.
This question has been flagged
1 Reply
8 Views

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?

Avatar
Discard

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

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!