Manage Replace Wizard
issue5820 review32471002
This commit is contained in:
@@ -7,6 +7,7 @@ from .product import *
|
||||
from .stock import *
|
||||
from .configuration import *
|
||||
from .invoice import *
|
||||
from .party import PartyReplace
|
||||
|
||||
|
||||
def register():
|
||||
@@ -35,6 +36,7 @@ def register():
|
||||
HandleShipmentException,
|
||||
HandleInvoiceException,
|
||||
ReturnSale,
|
||||
PartyReplace,
|
||||
module='sale', type_='wizard')
|
||||
Pool.register(
|
||||
SaleReport,
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# 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.sale', 'party'),
|
||||
('sale.sale', 'shipment_party'),
|
||||
]
|
||||
Reference in New Issue
Block a user