Put __metaclass__ into the class

This commit is contained in:
Jes?s Mart?n Jim?nez 2016-06-28 09:01:34 +02:00
parent ed369f152e
commit 5e7f95c70c
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,10 @@ from trytond.rpc import RPC
from trytond.wizard import Wizard, StateView, StateTransition, Button
__metaclass__ = PoolMeta
__all__ = ['Party', 'PartyMergeView', 'PartyMerge']
class MergeMixin:
class MergeMixin(object):
def merge_into(self, target):
"""
Merge current record into target
@ -83,6 +82,7 @@ class MergeMixin:
class Party(MergeMixin):
__metaclass__ = PoolMeta
__name__ = 'party.party'
merged_into = fields.Many2One('party.party', 'Merged Into', readonly=True,
states={