Follow PEP-0249 for Transaction and backends
issue4949 review19781002
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ class Purchase:
|
||||
|
||||
@classmethod
|
||||
def __register__(cls, module_name):
|
||||
cursor = Transaction().cursor
|
||||
cursor = Transaction().connection.cursor()
|
||||
model_data = Table('ir_model_data')
|
||||
# Migration from 1.2: packing renamed into shipment
|
||||
cursor.execute(*model_data.update(
|
||||
|
||||
Reference in New Issue
Block a user