Hey Cyllo community, anyone have understanding on transient models and how can i use them?
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
1
Reply
7
Views
Here's a solution that uses Odoo's `TransientModel` to create a temporary model for storing data during a session. It's perfect for wizards and temporary forms where data doesn't need to be permanently stored. from odoo import fields, models class ExampleWizard(models.TransientModel): _name = 'example.wizard' _description = 'Example Wizard' date_from = fields.Date(string="Start Date") date_to = fields.Date(string="End Date") def action_confirm(self): # Wizard logic here pass