Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Issue: "inherted" DB model for create pre-confirgured view/menu?

By
Krijn
on 10/18/14, 12:05 PM 525 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..

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/18/14, 12:05 PM
Seen: 525 times
Last updated: 3/16/15, 8:10 AM