mirror of
https://github.com/NaN-tic/trytond-party_merge.git
synced 2023-12-14 03:13:02 +01:00
Put __metaclass__ into the class
This commit is contained in:
parent
e668d70326
commit
041535d7c7
1 changed files with 2 additions and 2 deletions
4
party.py
4
party.py
|
@ -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={
|
||||
|
|
Loading…
Reference in a new issue