Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How to have default graph as pie chart in dashboard?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
xmlgraphodoo10
1 Répondre
15723 Vues
Avatar
onkar

Hi all,

Does odoo version 10 has provision to show pie chart as default graph in dashboard.

I have used board.board for creating my dashboard and given action of my graph view in dashboard.

By default i only get bar graph in my dashboard.

Is there a way to get all the graphs on dashboard.


Code so far-

code for graph view

<record model="ir.ui.view" id="view_camp_graph">

  <field name="name">crm.lead.camp.graph</field>

  <field name="model">sale.report</field>

  <field name="arch" type="xml">

   <graph string="Camps">

    <field name="partner_id" type="col"/>

    <field name="price_total" type="measure"/>

    <field name="user_id"/>

    <field name="date" interval="month" type="row"/>

   </graph>

  </field>

 </record>

 Action for graph view                                            

 <record id="action_camp_graph" model="ir.actions.act_window">

  <field name="name">Camp</field>

  <field name="type">ir.actions.act_window</field>

  <field name="res_model">sale.report</field>

  <field name="view_type">form</field>

  <field name="view_mode">graph</field>

  <field name="view_id" ref="tricity_addons.view_camp_graph"/>

 </record>


dashboard view 

 <record model="ir.ui.view" id="my_dash_view">

  <field name="name">User Dashboard</field>

  <field name="model">board.board</field>

  <field name="arch" type="xml">

  <form string="User Dashboard" version="7.0">

   <board style="1-3">

    <column>

     <action name="%(action_camp_graph)d" string="Camps"/>

    </column>

   </board>

  </form>

  </field>

 </record>


Action for dashboard

 <record model="ir.actions.act_window" id="my_dash_view_action">

  <field name="name">User Dashboard</field>

  <field name="res_model">board.board</field>

  <field name="view_type">form</field>

  <field name="view_mode">form</field>

  <field name="usage">menu</field>

  <field name="view_id" ref="my_dash_view"/>

  <field name="target">inline</field>

  <field name="help" type="html">

   <div class="oe_empty_custom_dashboard">

    <p>

    <b>Your personal dashboard is empty.</b>

    </p><p>

    To add your first report into this dashboard, go to any

    menu, switch to list or graph view, and click <i>'Add to

    Dashboard'</i> in the extended search options.

    </p><p>

    You can filter and group data before inserting into the

    dashboard using the search options.

    </p>

   </div>

  </field>

 </record>

menu ofdashboard

 <menuitem name="Dashboard personal" id="main_menu_camp_dashboard" parent="sales_team.menu_base_partner" action="my_dash_view_action" sequence="1"/>

0
Avatar
Ignorer
onkar
Auteur

This is what i have got so far-

Just need to pass context with graph mode that is desired.

<field name="context">{'graph_mode':'pie'}</field>

But still in dashboard i don't get my output as desired.The size of dashboard column is small making the pie chart look miserable.

Here is a screen shot of custom dashboard-

How can we increase size of dashboard .

Avatar
onkar
Auteur Meilleure réponse

This is what i have got so far-

Just need to pass context with graph mode that is desired.

<field name="context">{'graph_mode':'pie'}</field>



0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Odoo 10: Field 'pre-existing_field' does not exist. Résolu
xml odoo10
Avatar
1
sept. 18
106
How to add button inside one2many field odoo 10?
xml odoo10
Avatar
Avatar
1
mai 17
9169
[Odoo 10.0] Graph View with Interval Option
xml graph custom_module interval odoo10
Avatar
Avatar
1
sept. 22
6740
Display graph as per selected year odoo 10
javascript xml graph python2.7 odoo10
Avatar
0
oct. 17
3925
uncaught typeerror: cannot read properties of undefined (reading 'body') in odoo 10.
xml python2.7 odoo10
Avatar
0
févr. 25
1890
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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