Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How does specification of a XML View in v8 work?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
v8viewsxmlviewodoo
1 Respondre
5183 Vistes
Avatar
Peter Nietz

I tried to reproduce this tutorial for my module with the same data structure:

specify_view_to_use_doc_v6  

Is this still the right way for Odoo V8 because only the view with priority 15 is shown in both menu entries?

Is there a difference if there is no form view but only a tree/list view?

THX.

0
Avatar
Descartar
Peter Nietz
Autor

The tutorial to specify the FORM view works so far for me, but if I change the view type to list instead of form only the view with the higher priority is shown. Is there a way to specify a list view, too?

Peter Nietz
Autor

Did it! - Had to add my custom view_modes to VIEW_TYPES in: /openerp/addons/base/ir/ir_actions.py Then just I used my custom_type as view_mode for ir.actions.act_window.view and it works like perfect.

Avatar
John
Best Answer

To my knowledge, that is still applicable.  You did notice that the only difference in the two actions was specifying the view_id in the following line, correct?

   <field name="view_id" ref="client_form_view_1"/> 
1
Avatar
Descartar
Peter Nietz
Autor

and also in the "ir.ui.view" for the higher priority: field name="priority" eval="15"

John

Setting the eval to 15 makes client_form_view_2 a higher priority (the default view), but I thought you were saying that only the one with eval=15 was showing. Again, the only difference between the two actions are that client_form_action calls the default view and client_form_action1 specifies a view_id and that "overrides" the default view.

Peter Nietz
Autor

ok for the form view it works without priority, but for list graph gantt kanban its not working at all... how is it possible to use the "REF" for lists or even better for customized lists derived from list of the web module.

John

Peter,

As far as I know, without using the "views" option in some python code, you can only specify a single view_id or set the priority like you did originally to get the views you want by default.

Look at the answer here for an example of how to specify the views for all view types using python code:
http://stackoverflow.com/questions/27441230/why-isnt-my-act-window-with-views-definition-and-using-act-window-view-equival

So, you could call an action that specifies some python code which returns the list, graph, gantt, kanban, etc. views specified with the 'views' dictionary key.

Hope that helps!

John

I also just came across this:

https://answers.launchpad.net/openobject-server/+question/197559

I've never done it, but please try it and let me know if it works for you!

Peter Nietz
Autor

I also found the method with ir.actions.act_window.view and it all works with form,tree,kanban,graph but if I add list or custom_list to view_mode it tells me: ParseError: "Wrong value for ir.actions.act_window.view.view_mode: 'custom_list'" but in the normal ir.actions.act_window the view_mode custom_list works fine but not with a ref to a view_id.

OdooBot
Peter,

I'm sorry, but I've not used lists or custom_lists before, so I have no idea what it could be.

Maybe try looking at the postgres and see what the other view_modes look like?
 
~John Walsh



On Wednesday, June 10, 2015 11:37 AM, Peter Nietz <nietz-gmx.net@mail.odoo.com> wrote:


I also found the method with ir.actions.act_window.view and it all works with form,tree,kanban,graph but if I add list or custom_list to view_mode it tells me: ParseError: "Wrong value for ir.actions.act_window.view.view_mode: 'custom_list'" but in the normal ir.actions.act_window the view_mode custom_list works fine but not with a ref to a view_id.
--
Peter Nietz
Sent by Odoo Inc. using Odoo access your messages


Peter Nietz
Autor

Thx ... u put me on the right track ... just had to add custom_list to VIEW_TYPES in /openerp/addons/base/ir/ir_actions.py

OdooBot
Glad to hear it! Good luck!
 
~John Walsh




On Thursday, June 11, 2015 11:52 AM, Peter Nietz <nietz-gmx.net@mail.odoo.com> wrote:


Thx ... u put me on the right track ... just had to add custom_list to VIEW_TYPES in /openerp/addons/base/ir/ir_actions.py
--
Peter Nietz
Sent by Odoo Inc. using Odoo access your messages


Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
partner view blank page
javascript v8 views xml odoo
Avatar
0
d’ag. 16
3644
Why on my module which works in saas-5 in v8 field labels are missing?
v8 views view
Avatar
Avatar
1
de març 15
4319
Display eternal duration in Gantt view (f. e. without end date)
views xml view
Avatar
0
de març 15
2597
[ODOO 16CE] How to choose the form used when clicking on 'Add a line' in a tree view?
views view odoo odoo16features
Avatar
Avatar
2
de juny 23
3849
[ODOO 16CE] How to choose the form view used with Many2One or Many2Many (m2x) field? Solved
views view odoo odoo16features
Avatar
Avatar
1
de juny 23
3607
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now