Migrate to python 3
This commit is contained in:
parent
105c9ee6ff
commit
38647a6ccc
|
@ -5,8 +5,7 @@ from trytond.model import fields
|
|||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Account:
|
||||
__metaclass__ = PoolMeta
|
||||
class Account(metaclass=PoolMeta):
|
||||
__name__ = 'account.account'
|
||||
|
||||
different_party_reconcile = fields.Boolean(
|
||||
|
|
6
move.py
6
move.py
|
@ -7,8 +7,7 @@ from trytond.model import fields
|
|||
__all__ = ['Line', 'Reconciliation']
|
||||
|
||||
|
||||
class Line:
|
||||
__metaclass__ = PoolMeta
|
||||
class Line(metaclass=PoolMeta):
|
||||
__name__ = 'account.move.line'
|
||||
|
||||
@classmethod
|
||||
|
@ -34,8 +33,7 @@ class Line:
|
|||
raise
|
||||
|
||||
|
||||
class Reconciliation:
|
||||
__metaclass__ = PoolMeta
|
||||
class Reconciliation(metaclass=PoolMeta):
|
||||
__name__ = 'account.move.reconciliation'
|
||||
|
||||
@classmethod
|
||||
|
|
5
setup.py
5
setup.py
|
@ -7,10 +7,7 @@ from setuptools import setup
|
|||
import re
|
||||
import os
|
||||
import io
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import ConfigParser
|
||||
from configparser import ConfigParser
|
||||
|
||||
MODULE = 'account_reconcile_different_party'
|
||||
PREFIX = 'trytonspain'
|
||||
|
|
Loading…
Reference in New Issue