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
7 Views

Hey Cyllo community, anyone have understanding on transient models and how can i use them?

Avatar
Discard

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

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!