Add model, record and records attribute on Wizard

issue9421
review309861012
This commit is contained in:
Cédric Krier committed 2020-07-07 23:56:10 +02:00
1 parent 13dc407bc1
commit 2cf6a156ff
1 file changed
+3 -5
+3 -5
View File
@@ -204,9 +204,7 @@ class CreateShipping(Wizard):
start = StateTransition()
def transition_start(self):
pool = Pool()
ShipmentOut = pool.get('stock.shipment.out')
shipment = ShipmentOut(Transaction().context['active_id'])
method_name = 'validate_packing_%' % shipment.carrier.shipping_service
getattr(shipment, method_name)()
shipping_service = self.record.carrier.shipping_service
method_name = 'validate_packing_%' % shipping_service
getattr(self.record, method_name)()
return 'end'