Odoo Help

2

0
1 Answer
7
Avatar

Emipro Technologies Pvt. Ltd. India

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

Emipro has been providing a wide range of business solutions in the domain of ERP & eCommerce. We take pride in serving 1000s of contented customers across the globe with strong roots in the US, Europe & India. Being a Certified Odoo Gold Partner in India as well as the United States, we bring our rich professional experience and unrivaled technical competence to help our customers obtain efficient and cost-effective business solutions in Odoo. With our team of 50+ Odoo Experts and highly experienced business analysts, we serve our customers which are companies of all sizes, ranging from start-ups to large enterprises. 

Our ERP Services:

  • Business Need Analysis & GAP Analysis

  • ERP Migration

  • Odoo Consultancy

  • Odoo Implementation & Customization

  • Odoo Training & Support

  • Odoo Website & eCommerce Development

  • Odoo Integration (Marketplaces, eCommerce platforms, Shipping Carriers, Payment Gateways etc.)

Our Achievements:


Reach Us:

Website: www.emiprotechnologies.com

Email: info@emiprotechnologies.com

Skype: emiprotech

Emipro Technologies Pvt. Ltd. India
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,

 

3 Comments
Gavin Yap Singapore
8/11/15, 3:35 AM

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 ?

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

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

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

Thanks Emipro. Cheers.

Ask a Question
Writer
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now