Jump to content

Error deleting entry from DB in custom module table


Recommended Posts

Hello guys,

I just made a simple module for my customer so he can delete invoices without accessing database.

The plugin shows a table with all invoices and the main concept is to remove the db entry when "Delete" action is cliked. But the following error pops up:
"An error occurred while deleting the object. order_invoice (cannot load object)"

 

Do i have to define the delete action logic somewhere? Thought those default actions were already defined. 
 

I'm having trouble to find documentation aside from the basic module set up from prestashop docs.

Thank you!

post-1385266-0-95773000-1497549029_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...