Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

How can I write all the cache?

by Yajo <yajo.sk8@gmail.com> - 21/10/2015 09:22:36
I'm doing a test where I need to imitate the onchange behavior, so:

with self.env.do_in_onchange():
    self.onefield = "blahblah"

But when one exits the with block, that data is not written to DB. I'm looking for some kind of self.env.cache.write_to_db(). Do you know of any?

Follow-Ups