I want to retrieve the current configuration of a module that uses the class config.settings to store the configuration. But how can we retrieve the current state of the configuration ? From what I saw, each time the configuration is updated, a new line is inserted in the database. So doing something like
self.pool.get('sale.config.settings').browse(cr,uid,ids)[0]
won't work because I need to fetch the current state, not the first configuration stored. What is the correct way of doing it ?
Your solution works, thanks. However when the settings were not changed (default settings), there is no row in the table. Then, how do we read the default configuration ?