From b80969e33e5db060f114b101f464d5dc31b2bd02 Mon Sep 17 00:00:00 2001 From: jmartin Date: Tue, 29 Mar 2016 12:00:23 +0200 Subject: [PATCH] Add python 3 support --- electronic_mail.py | 2 +- template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electronic_mail.py b/electronic_mail.py index 92fd1e5..d7719e7 100644 --- a/electronic_mail.py +++ b/electronic_mail.py @@ -10,7 +10,6 @@ from trytond.transaction import Transaction __all__ = ['ElectronicMailFilter', 'SearchingStart'] -__metaclass__ = PoolMeta class ElectronicMailFilter(ModelSQL, ModelView): @@ -203,6 +202,7 @@ class ElectronicMailFilter(ModelSQL, ModelView): class SearchingStart: + __metaclass__ = PoolMeta __name__ = 'searching.start' @staticmethod diff --git a/template.py b/template.py index c478e49..11502c9 100644 --- a/template.py +++ b/template.py @@ -5,10 +5,10 @@ from trytond.pool import PoolMeta __all__ = ['Template'] -__metaclass__ = PoolMeta class Template: + __metaclass__ = PoolMeta __name__ = 'electronic.mail.template' filters = fields.One2Many('electronic.mail.filter', 'template',