Follow PEP-0249 for Transaction and backends
This commit is contained in:
parent
cb54b53193
commit
1fbbac9b48
|
@ -14,7 +14,7 @@ class CarrierManifest:
|
|||
__name__ = 'carrier.manifest'
|
||||
|
||||
def get_manifest_seurvalencia(self, api, from_date, to_date):
|
||||
dbname = Transaction().cursor.dbname
|
||||
dbname = Transaction().database.name
|
||||
|
||||
with Picking(api.username, api.password, api.debug) as picking_api:
|
||||
manifest_file = picking_api.info()
|
||||
|
|
|
@ -48,7 +48,7 @@ class ShipmentOut:
|
|||
errors = []
|
||||
|
||||
default_service = CarrierApi.get_default_carrier_service(api)
|
||||
dbname = Transaction().cursor.dbname
|
||||
dbname = Transaction().database.name
|
||||
|
||||
with Picking(api.username, api.password, api.debug) as picking_api:
|
||||
for shipment in shipments:
|
||||
|
|
Loading…
Reference in New Issue