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

How do you make a second view for a menu that inherted a basic view?

By
Krijn
on 9/29/14, 2:21 PM 931 views

Problem definition:
In the table "account.invoice" the outgoing and incoming invoices are saved. By using the field type: "OUT" or "IN" we can define which kind of invoice is been inserted.

Normally within the outgoing (customer) invoice you have 1 type (Sales).
At the incoming (supplier) invoice you have 2 kinds of invoices:
1) Invoices of goods (saleable products)
2) Invoices of costs (insurrance etc)

At each tyoe of invoice your administration department has different demands. E.g. at "cost" (2) invoices you want the field "analytic accounting" to be required. Otherwise at the goods invoice your do not want the field "analytic accounting" being required.

But if you make a payable list your want to have all vendors with invoices due to date. So logic is the retain the information out of the same table (account.invoice).

Possible solution:
To make two (sub)menus:

  • Invoices of Goods (view a, masterview)
  • Invoices of Costs (view b)

Every menu has his own view. And here is the problem!
We would like to have 1 basic view that has every change. Form that view we will make a inherted view for the menu items.
But we cann't inherted a view because 1 is always the masterview.

A adjustment in view b == adjustment in view a.
The (sub)menu's have there own windows.action.

So we thaught to solve the problem with a second model based on account.invoice, but this turns out to add a table in the DB. That is not what we want because of centralisation of data, also the working of other modules is in danger. Therefore we would like to put the data in one table, but with predefined requirements, specialised views.

Question:
How do you make a second view for a menu that inherted a basic view. Whereby the menu is for the user (interface) a different form, different requirements, show/hide fields.

PS: we are using V7.

Thank you 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: 9/29/14, 2:21 PM
Seen: 931 times
Last updated: 3/16/15, 8:10 AM