December 2018
Beginner to intermediate
404 pages
10h 14m
English
Database-writing operations are executed in the context of a database transaction. Usually, we don't have to worry about this as the server takes care of that while running model methods.
But, in some cases, we may need finer control over the transaction. This can be done through the self.env.cr database cursor, as shown here:
With the cursor execute() method, we can run SQL directly in the ...
Read now
Unlock full access