Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Pivot view does not display in odoo 8

Odoberať

Get notified when there's activity on this post

This question has been flagged
python2.7odoo8
1 Odpoveď
6294 Zobrazenia
Avatar
Dhouha

I have created a custom module in odoo 8 that allows me to add a sub_menu "convention" which I want to display a pivot view to display the numbers of the convention used as a table. My problem is how to display a pivot view because I found a problem to display a pivot view with version 8 of odoo. I tried this module with version 9 of odoo and it works well but with version 8 even the icon of the pivot view is not displayed. Any idea for help please?
here is a link to an image to explain my problem https://ibb.co/io0uZJ

Convention.xml 

<?xml version="1.0" encoding="UTF-8"?>

<openerp>
<data>
  <record id="convention_table_tree_view" model="ir.ui.view">
    <field name="name">Convention Table Tree View</field>
    <field name="model">hr.convention</field>
    <field name="arch" type="xml">
        <tree>
            <field name="Degree"/>
            <field name="Categorie_11"/>
            <field name="Categorie_12"/>
            <field name="Categorie_13"/>
            <field name="Categorie_21"/>
            <field name="Categorie_22"/>
            <field name="Categorie_23"/>
            <field name="Categorie_31"/>
            <field name="Categorie_32"/>
            <field name="Categorie_33"/>
            <field name="Categorie_41"/>
            <field name="Categorie_42"/>
            <field name="Categorie_43"/>
        </tree>
    </field>
</record>
<!-- salary_table graph view -->
<record id="convention_table_graph_view" model="ir.ui.view">
    <field name="name">Convention Table Graph View</field>
    <field name="model">hr.convention</field>
    <field name="arch" type="xml">
        <graph>              
            <field name="Degree" type="row"/>
        </graph>
    </field>
</record>
<!-- salary_table Pivot view -->
<record id="convention_table_pivot_view" model="ir.ui.view">
    <field name="name">Salary Table Pivot View</field>
    <field name="model">hr.convention</field>
    <field name="arch" type="xml">
        <graph string="pivot" type="pivot">
            <field name="Categorie_11" type="measure"/>
            <field name="Categorie_12" type="measure"/>
            <field name="Categorie_13" type="measure"/>
            <field name="Categorie_21" type="measure"/>
            <field name="Categorie_22" type="measure"/>
            <field name="Categorie_23" type="measure"/>
            <field name="Categorie_31" type="measure"/>
            <field name="Categorie_32" type="measure"/>
            <field name="Categorie_33" type="measure"/>
            <field name="Categorie_41" type="measure"/>
            <field name="Categorie_42" type="measure"/>
            <field name="Categorie_43" type="measure"/>
            <field name="Degree" type="row"/>
        </graph>
    </field>
</record>

    <record model="hr.convention" id="five1">
    <field name="Categorie_11" >2.253</field>
    <field name="Categorie_12" >2.418</field>
    <field name="Categorie_13" >2.494</field>
    <field name="Categorie_21" >2.548</field>
    <field name="Categorie_22" >2.784</field>
    <field name="Categorie_23" >2.964</field>
    <field name="Categorie_31" >3.165</field>
    <field name="Categorie_32" >3.321</field>
    <field name="Categorie_33" >3.396</field>
    <field name="Categorie_41" >3.165</field>
    <field name="Categorie_42" >3.321</field>
    <field name="Categorie_43" >3.396</field>
    <field name="Degree" >Degree_1</field>
</record>

<!-- salary_table Action -->
<record model="ir.actions.act_window" id="action_convention">
    <field name="name">Salary Table</field>
    <field name="res_model">hr.convention</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form,graph,pivot</field>
</record>


    <!-- convention menu item -->

     <menuitem action="action_convention" id="hr_menu_convention" parent="hr.menu_hr_configuration" name="Convention" sequence="0" groups="base.group_hr_manager"/>


</data>
</openerp> 

hr_convention.py

 from openerp.osv import fields, osv


 class Convention(osv.osv):
_name = 'hr.convention'
_columns = {

 "Degree" : fields.char(string="Degree"),
"Categorie_11"  : fields.float(string="Categorie_11"), 
"Categorie_12"  : fields.float(string="Categorie_12"),
"Categorie_13"  : fields.float(string="Categorie_13"),
"Categorie_21"  : fields.float(string="Categorie_21"),
"Categorie_22"  : fields.float(string="Categorie_22"),
"Categorie_23"  : fields.float(string="Categorie_23") ,
"Categorie_31"  : fields.float(string="Categorie_31"),
"Categorie_32"  : fields.float(string="Categorie_32"),
"Categorie_33"  : fields.float(string="Categorie_33"),
"Categorie_41"  : fields.float(string="Categorie_41"),
"Categorie_42"  : fields.float(string="Categorie_42"),
"Categorie_43"  : fields.float(string="Categorie_43"),

    }
0
Avatar
Zrušiť
Avatar
Nikhil Krishnan
Best Answer

Hi  Dhouha,
In odoo 8 It's not Pivot view its gantt view.

<field name="view_mode">kanban,tree,form,calendar,gantt,graph</field>

so please change the code like bellow

<!-- salary_table Action -->
<record model="ir.actions.act_window" id="action_convention">
    <field name="name">Salary Table</field>
    <field name="res_model">hr.convention</field>
    <field name="view_type">form</field>
    <field name="view_mode">tree,form,graph,gantt</field>
</record>


0
Avatar
Zrušiť
Dhouha
Autor

Thank you but how can i modify the record structure (id="salary_table_pivot_view") to suit the gantt view ?

Nikhil Krishnan

Sorry, I can't get you exactly.!

you just edit the form " id="action_convention" ".

Update the module. then you check the pivot view.

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

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Odoo 8: how to prevent wizard from closing after a new one is opened?
wizard python2.7 odoo8
Avatar
Avatar
Avatar
2
nov 17
7043
Error occurred during the installation of loan management(V6.1) module in V7.0
python2.7
Avatar
Avatar
Avatar
Avatar
3
okt 23
6844
How to write a python function called automatically?
python2.7
Avatar
Avatar
Avatar
2
jan 23
6276
Selecting items for one2many relation Solved
odoo8
Avatar
Avatar
Avatar
2
dec 22
15765
How to upload files automatically on attachments on button click ?
odoo8
Avatar
Avatar
1
nov 21
5859
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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