Hey Cyllo community! Having trouble setting default values for a computed field that uses digits and a One2many field. Any tips or examples on how to handle this?
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 summary of how special field attributes in Odoo work, along with some examples to illustrate their use. This should help clarify how to use them effectively. Special field attributes in Odoo define behavior and constraints like precision (digits), default values, relations (One2many), automatic defaults (Date), and storage of computed fields. Field Type - Example - Purpose Float - digits=(10, 2) - Decimal precision Selection - default='draft' - Sets default choice One2many - 'example.line', 'example_id' - Defines child model and reverse relation Date - default=fields.Date.today - Uses today’s date automatically Computed Fields - store = True - Store in the database