mirror of
https://github.com/NaN-tic/trytond-timesheet_cost_revenue.git
synced 2023-12-14 07:03:09 +01:00
Add python 3 support
This commit is contained in:
parent
0a92922ea5
commit
cb0c6fd2e5
2 changed files with 3 additions and 3 deletions
2
line.py
2
line.py
|
@ -8,10 +8,10 @@ from trytond.pyson import Eval
|
|||
from trytond.pool import PoolMeta
|
||||
|
||||
__all__ = ['Line']
|
||||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
class Line():
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'timesheet.line'
|
||||
cost = fields.Function(fields.Numeric('Cost',
|
||||
digits=(16, Eval('currency_digits', 2)),
|
||||
|
|
4
work.py
4
work.py
|
@ -11,10 +11,10 @@ from trytond.pool import Pool, PoolMeta
|
|||
from trytond.tools import reduce_ids
|
||||
|
||||
__all__ = ['Work']
|
||||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
class Work:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'timesheet.work'
|
||||
product = fields.Many2One('product.product', 'Product',
|
||||
domain=[
|
||||
|
@ -45,7 +45,7 @@ class Work:
|
|||
Employee = pool.get('company.employee')
|
||||
Line = pool.get('timesheet.line')
|
||||
transaction = Transaction()
|
||||
cursor = transaction.connection.cursor
|
||||
cursor = transaction.connection.cursor()
|
||||
in_max = cursor.IN_MAX
|
||||
|
||||
works = cls.search([
|
||||
|
|
Loading…
Reference in a new issue