This question has been flagged
2043 Views

Hi,

I would like to set up menu with a view preconfigured settings, like refund invoice in the accounting module.
But every invoice is stored in the same table in database (DB). account.invoice
We do not want to change this, but we can not make a specialized view based on this model (account.invoice).

According to the refund structure in accounting module I see that there is made a seperate model, called account.invoice.refund.
By using this model I can make a menu item, a form/tree view, search option.

But I can not connect the new model to the same table (account.invoice) in the DB. So every record added this my added model > view is stored in a copy table. 

What is the correct way to make a model that stores in a exitsting DB.table?
Maybe there is someone that can send me a link or a really good example?

Thanks in advance..

Avatar
Discard