Odoo get parent id from wizard

Odoo get parent id from wizard, example: we open a new wizard from a button on stock.picking form and we need picking id:

picking_id = self.env.context.get('active_id')