Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
10499 Vizualizări

I wanted to use one form view which will contain multiple models. Not just like Manytoone field. All fields are to be open in the form view. 

I am a beginner in Odoo. Please tell what wold be the right process to achieve this. 

Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

If you are looking to display fields from different models into one view, either you can use the concept of the related fields or create the view using the query. While using the query you can fetch the values from the different tables and display it in the view.


Take an example we have model sale.order and pos.order and if you have to display these records of the different model as a single table you can create a new view using the query. Please see this sample here in this question: how do set multiple models in single form view ?.


Thanks

Imagine profil
Abandonează
Autor

Yes, This solution work while displaying the model. But how it is possible to insert into those two model from one view.

@Rasmikant
You can add a button that direct the user to custom form wizard view. From there, you can process the data to each model. It will be complicated. But it's the only way. Because you are trying to manage multiple model in a view

Cel mai bun răspuns

Still no answer to how modify/insert fields ??

Imagine profil
Abandonează