order_line = fields.Many2many ('purchase.order.line', string = 'Available Products')
@ api.model
def default_get (self, fields):
res = super (PurchaseUpdatePriceWizard, self) .default_get (fields)
active_product = self.env ["purchase.order"]. browse (self.env.context.get ("active_id")). search ([]) [0]
res.update ( {
'order_line': [(6, 0, [active_product.id])]
})
return res
# I am getting blank wizard but i want to display current purchase order line in my wizard. Please help