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
ed369f152e
commit
5e7f95c70c
4
party.py
4
party.py
|
@ -15,11 +15,10 @@ from trytond.rpc import RPC
|
||||||
from trytond.wizard import Wizard, StateView, StateTransition, Button
|
from trytond.wizard import Wizard, StateView, StateTransition, Button
|
||||||
|
|
||||||
|
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__all__ = ['Party', 'PartyMergeView', 'PartyMerge']
|
__all__ = ['Party', 'PartyMergeView', 'PartyMerge']
|
||||||
|
|
||||||
|
|
||||||
class MergeMixin:
|
class MergeMixin(object):
|
||||||
def merge_into(self, target):
|
def merge_into(self, target):
|
||||||
"""
|
"""
|
||||||
Merge current record into target
|
Merge current record into target
|
||||||
|
@ -83,6 +82,7 @@ class MergeMixin:
|
||||||
|
|
||||||
|
|
||||||
class Party(MergeMixin):
|
class Party(MergeMixin):
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'party.party'
|
__name__ = 'party.party'
|
||||||
merged_into = fields.Many2One('party.party', 'Merged Into', readonly=True,
|
merged_into = fields.Many2One('party.party', 'Merged Into', readonly=True,
|
||||||
states={
|
states={
|
||||||
|
|
Loading…
Reference in a new issue