Manage Replace Wizard
issue5820 review32471002
This commit is contained in:
@@ -30,3 +30,6 @@ def register():
|
||||
Company,
|
||||
Employee,
|
||||
module='sale_opportunity', type_='model')
|
||||
Pool.register(
|
||||
PartyReplace,
|
||||
module='sale_opportunity', type_='wizard')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
__all__ = ['Party', 'Address']
|
||||
__all__ = ['Party', 'Address', 'PartyReplace']
|
||||
|
||||
|
||||
class Party:
|
||||
@@ -15,3 +15,14 @@ class Address:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'party.address'
|
||||
_history = True
|
||||
|
||||
|
||||
class PartyReplace:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'party.replace'
|
||||
|
||||
@classmethod
|
||||
def fields_to_replace(cls):
|
||||
return super(PartyReplace, cls).fields_to_replace() + [
|
||||
('sale.opportunity', 'party'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user