I'm trying to add some functionaltiy after generating invoice by magento store owner for orders. I'm using the following code
<sales_order_invoice_save_after>
<observers>
<sales_order_invoice_save_after_handler>
<type>model</type>
<class>invoice/observer</class>
<method>saveinvoiceno</method>
</sales_order_invoice_save_after_handler>
</observers>
</sales_order_invoice_save_after>
Issue
Above code is also working PayPal payment, but i want to execute it for admin only. Any suggestion or help?
Thank you in advance.