Refactor the Environments object into a Transaction object, which is bound to one cursor, and is no longer shared among several cursors. The following methods/properties have been changed: - Environment.envs no longer works (because of the design change); - Environment.manage() is deprecated (no longer useful); - Environment.reset() is now an instance method; - env.clear_upon_failure() is deprecated in favor of cr.savepoint(). closes odoo/odoo#75598 Related: odoo/enterprise#20451 Signed-off-by: Raphael Collet (rco) <rco@openerp.com> Co-authored-by: Xavier Dollé <xdo@odoo.com>