Add python 3 support

This commit is contained in:
jmartin 2016-03-29 12:00:50 +02:00
parent 0a92922ea5
commit cb0c6fd2e5
2 changed files with 3 additions and 3 deletions

View file

@ -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)),

View file

@ -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([