Manage Replace Wizard
issue5820 review29611002
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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'),
|
||||
]
|
||||
Reference in New Issue
Block a user