Odoo v11:Override Create Invoice
I'm trying to make a module that do some specific operation when an invoice is created.So I need to override the
create invoice button and create and view invoice button.
i.e when any of the buttons clicked , I want to check wether a specific type of product is in the order line or not.
How to do this?