Follow PEP-0249 for Transaction and backends
issue4949 review19781002
This commit is contained in:
@@ -205,7 +205,7 @@ class Work:
|
||||
Company = pool.get('company.company')
|
||||
Currency = pool.get('currency.currency')
|
||||
|
||||
cursor = Transaction().cursor
|
||||
cursor = Transaction().connection.cursor()
|
||||
table = cls.__table__()
|
||||
progress = Progress.__table__()
|
||||
invoice_line = InvoiceLine.__table__()
|
||||
@@ -257,7 +257,7 @@ class Work:
|
||||
Company = pool.get('company.company')
|
||||
Currency = pool.get('currency.currency')
|
||||
|
||||
cursor = Transaction().cursor
|
||||
cursor = Transaction().connection.cursor()
|
||||
table = cls.__table__()
|
||||
timesheet_work = TimesheetWork.__table__()
|
||||
timesheet_line = TimesheetLine.__table__()
|
||||
@@ -303,7 +303,7 @@ class Work:
|
||||
def _get_duration_timesheet(works, invoiced):
|
||||
pool = Pool()
|
||||
TimesheetLine = pool.get('timesheet.line')
|
||||
cursor = Transaction().cursor
|
||||
cursor = Transaction().connection.cursor()
|
||||
line = TimesheetLine.__table__()
|
||||
|
||||
durations = {}
|
||||
|
||||
Reference in New Issue
Block a user