Manage Replace Wizard

issue5820
review29611002
This commit is contained in:
Cédric Krier
2016-10-11 18:17:34 +02:00
parent b5e6ebc95d
commit 4f477e7409
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -6,6 +6,7 @@ from .commission import *
from .invoice import *
from .sale import *
from .product import *
from . import party
def register():
@@ -25,4 +26,5 @@ def register():
module='commission', type_='model')
Pool.register(
CreateInvoice,
party.PartyReplace,
module='commission', type_='wizard')
+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() + [
('commission.agent', 'party'),
]