Manage Replace Wizard

issue5820
review32471002
This commit is contained in:
Cédric Krier
2016-10-02 15:21:20 +02:00
parent b2e4d2b754
commit 345d88f7aa
2 changed files with 15 additions and 1 deletions
+3
View File
@@ -30,3 +30,6 @@ def register():
Company,
Employee,
module='sale_opportunity', type_='model')
Pool.register(
PartyReplace,
module='sale_opportunity', type_='wizard')
+12 -1
View File
@@ -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'),
]