Manage Replace Wizard

issue7171
review37041002
This commit is contained in:
Cédric Krier committed 2018-03-04 01:16:04 +01:00
1 parent 467480c3e5
commit a2a0f387e5
2 files changed
+18

No files matched your search

+2
View File
@@ -7,6 +7,7 @@ from . import recurrence
from . import service
from . import subscription
from . import invoice
from . import party
def register():
@@ -26,6 +27,7 @@ def register():
Pool.register(
subscription.CreateLineConsumption,
subscription.CreateSubscriptionInvoice,
party.PartyReplace,
module='sale_subscription', type_='wizard')
Pool.register(
module='sale_subscription', type_='report')
+16
View File
@@ -0,0 +1,16 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta
__all__ = ['PartyReplace']
class PartyReplace:
__metaclass__ = PoolMeta
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
return super(PartyReplace, cls).fields_to_replace() + [
('sale.subscription', 'party'),
]