Manage Replace Wizard
issue5820 review32471002
This commit is contained in:
@@ -5,6 +5,7 @@ from trytond.pool import Pool
|
||||
from stock import *
|
||||
from sale import *
|
||||
from purchase import *
|
||||
from .party import PartyReplace
|
||||
|
||||
|
||||
def register():
|
||||
@@ -24,4 +25,5 @@ def register():
|
||||
Pool.register(
|
||||
CreatePurchase,
|
||||
PurchaseHandleShipmentException,
|
||||
PartyReplace,
|
||||
module='sale_supply_drop_shipment', type_='wizard')
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# 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() + [
|
||||
('purchase.request', 'customer'),
|
||||
('purchase.purchase', 'customer'),
|
||||
('stock.shipment.drop', 'supplier'),
|
||||
('stock.shipment.drop', 'customer'),
|
||||
]
|
||||
Reference in New Issue
Block a user