Manage Replace Wizard
issue5820 review26781002
This commit is contained in:
@@ -14,3 +14,6 @@ def register():
|
||||
BankAccountParty,
|
||||
Party,
|
||||
module='bank', type_='model')
|
||||
Pool.register(
|
||||
PartyReplace,
|
||||
module='bank', type_='wizard')
|
||||
|
||||
@@ -4,7 +4,7 @@ from trytond.pool import PoolMeta
|
||||
from trytond.model import fields
|
||||
|
||||
|
||||
__all__ = ['Party']
|
||||
__all__ = ['Party', 'PartyReplace']
|
||||
|
||||
|
||||
class Party:
|
||||
@@ -24,3 +24,15 @@ class Party:
|
||||
domain,
|
||||
('bank_accounts',) + tuple(clause[1:]),
|
||||
]
|
||||
|
||||
|
||||
class PartyReplace:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'party.replace'
|
||||
|
||||
@classmethod
|
||||
def fields_to_replace(cls):
|
||||
return super(PartyReplace, cls).fields_to_replace() + [
|
||||
('bank', 'party'),
|
||||
('bank.account-party.party', 'owner'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user