Contributors mailing list archives


How can I write all the cache?

by Yajo <> - 21/10/2015 07: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?