Odoo Help


Transient Model Clean up? [Closed]

Gavin Yap
on 8/10/15, 7:23 AM 5,270 views

Hi All,

I have a question.

How does a Transient Models clean up? 

I'm worrying that the transient models grows big and unmanageable.



Emipro Technologies Pvt. Ltd.

--Emipro Technologies Pvt. Ltd.--
| 6 7 8
Rajkot, India
--Emipro Technologies Pvt. Ltd.--

Being an emerging leader in IT market since 2011, Emipro Technologies Pvt. Ltd. has been providing a wide range of business solutions in Odoo & Magento. We are pleased to have a large pool of contented customers with our meticulous work in the domain of ERP & e-Commerce. A ray of relief & satisfaction to  our customers heart by our successful deployment in their organization, purely represents our success in Odoo platform. Hence, we take pride for being an Odoo partner with a vision of expanding our strategic alliances with our customers to offer them high value-added, trustworthy & cost effective solutions.


Since establishment, our business has span across 11 countries of the world. Our customers are companies of all sizes ranging from start-ups to large enterprises, who realize that they need a professional business solutions to generate revenue streams, establish proper communication channels or streamline business operations. Standing with strong determination of customer satisfaction, observing each minute detail of their business processes, providing proper guidance and moving forth to develop product accordingly adds our value and reliability among our customers. 


We are blessed with efficient, passionate & eclectic young developers who have come across almost all kinds of business profiles, working with full dedication, applying creativity & new features in existing modules and completing customer's projects successfully on predefined target. Our in-depth knowledge while giving business solutions in Odoo allows us to offer following services to our customers :


  • Consulting
  • Installation, Configuration & Customization
  • Training & Support
  • Maintenance
  • Upgradation
  • Documentation
  • Crafting community modules
  • Drafting videos on demand
  • Smart Apps development

We will be :) to welcome you @ www.emiprotechnologies.com to solve any kind of your business needs around Odoo. However we are just an inch away from you by email info@emiprotechnologies.com or a tweet to @EmiproTech

Emipro Technologies Pvt. Ltd.
On 8/10/15, 9:21 AM

Hello Gavin,

Transient model data cleans up automatically by scheduled cron job in Odoo.

Go to menu Settings >> Technical >> Automation >> Schedule Actions and you will able to see cron record for to clean up Transient model data. If not activated in your instance, please activate it. At specified duration, system will clean all your Transient data.

Technical Note :  Though name contains "osv_memory" it doesn't means it will not clean up latest styled "Transient" models in V8. System will clean all the V8 styled "Transient" models.

For proof, you can go to file /addons/base/ir/osv_memory_autovacuum.py and you will see following class,

class osv_memory_autovacuum(openerp.osv.osv.osv_memory):
    """ Expose the osv_memory.vacuum() method to the cron jobs mechanism. """
    _name = 'osv_memory.autovacuum'
    def power_on(self, cr, uid, context=None):
        for model in self.pool.models.values():
            if model.is_transient():
                model._transient_vacuum(cr, uid, force=True)
        return True

As per "Bold" lines on above code, system will vacuum all the Transient models too. 

Hope we made your confusion 100% clear now,


Thanks Emipro. Looking at the Sechdule Action name, it suggest that if I use osv_memory to define my objects then the autovacuum will kick in. I'm coding in v8 and so I'm using models.Transient. And a bried look at odoov8 code does not seems that the models.Transient is a inheritance of osv_memory (I may be wrong?). So my question is does the above autovacuum works for models.Transient ?

Gavin Yap
on 8/11/15, 3:35 AM

@Gavin, I have updated my answer ! Hope this confusion will clear now.

Emipro Technologies Pvt. Ltd.
on 8/11/15, 5:22 AM

Thanks Emipro. Cheers.

Gavin Yap
on 8/13/15, 10:56 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/10/15, 7:23 AM
Seen: 5270 times
Last updated: 8/13/15, 10:59 PM