Skip to Content
Odoo Menu
  • Log ind
  • Prøv gratis
  • Apps
    Økonomi
    • Bogføring
    • Fakturering
    • Udgifter
    • Regneark (BI)
    • Dokumenter
    • e-Signatur
    Salg
    • CRM
    • Salg
    • POS Butik
    • POS Restaurant
    • Abonnementer
    • Udlejning
    Hjemmeside
    • Hjemmesidebygger
    • e-Handel
    • Blog
    • Forum
    • LiveChat
    • e-Læring
    Forsyningskæde
    • Lagerbeholdning
    • Produktion
    • PLM
    • Indkøb
    • Vedligeholdelse
    • Kvalitet
    HR
    • Medarbejdere
    • Rekruttering
    • Fravær
    • Medarbejdersamtaler
    • Anbefalinger
    • Flåde
    Marketing
    • Markedsføring på sociale medier
    • E-mailmarketing
    • SMS-marketing
    • Arrangementer
    • Automatiseret marketing
    • Spørgeundersøgelser
    Tjenester
    • Projekt
    • Timesedler
    • Udkørende Service
    • Kundeservice
    • Planlægning
    • Aftaler
    Produktivitet
    • Dialog
    • Godkendelser
    • IoT
    • VoIP
    • Vidensdeling
    • WhatsApp
    Tredjepartsapps Odoo Studio Odoo Cloud-platform
  • Brancher
    Detailhandel
    • Boghandel
    • Tøjforretning
    • Møbelforretning
    • Dagligvarebutik
    • Byggemarked
    • Legetøjsforretning
    Mad og værtsskab
    • Bar og pub
    • Restaurant
    • Fastfood
    • Gæstehus
    • Drikkevareforhandler
    • Hotel
    Ejendom
    • Ejendomsmægler
    • Arkitektfirma
    • Byggeri
    • Ejendomsadministration
    • Havearbejde
    • Boligejerforening
    Rådgivning
    • Regnskabsfirma
    • Odoo-partner
    • Marketingbureau
    • Advokatfirma
    • Rekruttering
    • Audit & certificering
    Produktion
    • Tekstil
    • Metal
    • Møbler
    • Fødevareproduktion
    • Bryggeri
    • Firmagave
    Heldbred & Fitness
    • Sportsklub
    • Optiker
    • Fitnesscenter
    • Kosmetolog
    • Apotek
    • Frisør
    Håndværk
    • Handyman
    • IT-hardware og support
    • Solenergisystemer
    • Skomager
    • Rengøringsservicer
    • VVS- og ventilationsservice
    Andet
    • Nonprofitorganisation
    • Miljøagentur
    • Udlejning af billboards
    • Fotografi
    • Cykeludlejning
    • Softwareforhandler
    Gennemse alle brancher
  • Community
    Få mere at vide
    • Tutorials
    • Dokumentation
    • Certificeringer
    • Oplæring
    • Blog
    • Podcast
    Bliv klogere
    • Udannelselsesprogram
    • Scale Up!-virksomhedsspillet
    • Besøg Odoo
    Få softwaren
    • Download
    • Sammenlign versioner
    • Udgaver
    Samarbejde
    • Github
    • Forum
    • Arrangementer
    • Oversættelser
    • Bliv partner
    • Tjenester til partnere
    • Registrér dit regnskabsfirma
    Modtag tjenester
    • Find en partner
    • Find en bogholder
    • Kontakt en rådgiver
    • Implementeringstjenester
    • Kundereferencer
    • Support
    • Opgraderinger
    Github Youtube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Få en demo
  • Prissætning
  • Hjælp

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

  • CRM
  • e-Commerce
  • Bogføring
  • Lager
  • PoS
  • Projekt
  • MRP
All apps
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Du skal være registreret for at interagere med fællesskabet.
All Posts People Emblemer
Tags (View all)
odoo accounting v14 pos v15
Om dette forum
Hjælp

creating custome report with libreoffice or aeroo

Tilmeld

Få besked, når der er aktivitet på dette indlæg

Dette spørgsmål er blevet anmeldt
4 Besvarelser
10041 Visninger
Avatar
MoayadRayyan

greetings,

im trying to create new reports , but i don't know what is the best way to do it .

am using odoo 8 with ubuntu 12

i tried to add the report designer extension to the libreoffice 3.5 but i get this problem :

python-loader:<trype 'exceptions.importError'>;No module named com.sun.star.lang ,traceback follows couldn't find uno._uno_extract_printable_stacktrace

so i tried other module "Aeroo report " also with problem once i tried to add this module to my odoo

File "/opt/odoo/tierp/addons/report_aeroo/report_aeroo.py", line 38, in <module> from openerp.report.report_sxw import report_sxw, report_rml, browse_record_list ImportError: cannot import name browse_record_list

 

i really need help with this if any one can help me will be appreciated .

 

Best regards

 

1
Avatar
Kassér
Avatar
Alejandro Perez Cosio
Bedste svar

Hello MoayadRayyan,
Actually there is no way to create a custom report with Aeroo reports nor OpenOffice plugin with Odoo 8 and ubuntu.

  • Aeroo reports needs a python library (uno) which was deprecated and will not work without it, it works fine for pdf but it will not work for xls reports.
  • OpenOffice plugin doesn't work with Odoo 8

For Aeroo reports you will need to install some dependencies which are detailed in the project repository.

But there is a working alternative: 

  • Jasper reports

I personally use this last option + iReport designer and have no complains so far.

Cheers

2
Avatar
Kassér
Avatar
Abdullah Sofan
Bedste svar

@MoayyadRayan,

I have been struggling to figure how to make reports myself just a few days ago. I learned the basics of creating Qweb reports and this is what I have learned so far:

Let's say you want to create a report for your model named : moayad_model. and you want the report to display the fields: field_one and field_two.


1) Inside the folder of "moayad_model" create a new xml file (for example: moayad_report_view.xml) with this xml code in it:

<?xml version="1.0"?>
<openerp>
<data>

<!--#########################################################################
 Section 1: The below section specifies the paper format of the report you want 
 to create and its dimensions and orientation. 
 
##########################################################################--->

<record id="moayyadrayyn_paperformat_euro_lowmargin" model="report.paperformat">
        <field name="name">Moayyad's European A4 low margin</field>
        <field name="default" eval="True" />
        <field name="format">A4</field>
        <field name="page_height">0</field>
        <field name="page_width">0</field>
        <field name="orientation">Portrait</field>
        <field name="margin_top">5</field>
        <field name="margin_bottom">5</field>
        <field name="margin_left">5</field>
        <field name="margin_right">5</field>
        <field name="header_line" eval="False" />
        <field name="header_spacing">0</field>
        <field name="dpi">80</field>
    </record>

<!--#########################################################################
Section 2: In this section you specify the model you are creating this report for. in the
name and file attributes write them in this format:

the folder of your model.the name of the file of your report
 
##########################################################################--->

    <report 
        id="action_moayad_report"
        model="moayadmodel" 
        string="Moayad's Report"
        report_type="qweb-pdf"
        name="moayad_model.moayad_report" 
        file="moayad_model.moayad_report" 
    />
    
    
<!--#########################################################################
Section 3: This is the action record for the report. 
for record "id" use the id of the report you put in section 2 
for "ref" use the id of the paper format you put in section 1
 
##########################################################################--->    

    <record id="action_moayad_report" model="ir.actions.report.xml">
        <field name="paperformat_id" ref="moayyadrayyn_paperformat_euro_lowmargin"/>
    </record>

</data>
</openerp>


2) create another xml file called moayad_report.xml and place it inside your model directory (moayad_model) with the following code in it:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <template id="moayad_report">
            <t t-call="report.html_container">
                <t t-foreach="docs" t-as="o">
                    <div class="col-xs-12">
                        <t t-call="report.external_layout">
                            <div class="page">
                            <!--################Start body of the report in HTML ###########-->
                            <!--################You can use simple HTML to add organize the fields as you wish
                                                them to appear in your report###########-->
                            <h2>Moayad Report Title</h2>
                                <table>
                                    <tr>
                                        <td>
                                                <h5 t-field="o.field_one"/>
                                                <h5 t-field="o.field_two"/>
                                        </td>
                                    </tr>
                                </table>
                            <!--################End body of the report in HTML###########-->
                            </div>
                        </t>
                    </div>
                </t>
            </t>
        </template>
    </data>
</openerp>

3) add both xml files you created to "update_xml" definition of the file  __openerp__.py 

That's it. Now after you install your module, the "print" drop down menu will be available for you to view.

I hope this helps you out. Again, I am just a newbi and I am sure someone here with more expertise would help you even more.

Salam

4
Avatar
Kassér
Avatar
Mathias Neef
Bedste svar

It is not for Libre-Office or Aeroo, but it is an interesting Tutorial for the actual standard way to create reports in Odoo:
http://blog.emiprotechnologies.com/create-qweb-report-odoo/

 

0
Avatar
Kassér
Avatar
MoayadRayyan
Forfatter Bedste svar

ok can you please provide any helpfull taturial or links ? google is not that enought yet i can't find help .

0
Avatar
Kassér
Enjoying the discussion? Don't just read, join in!

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

Tilmeld dig
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Oversættelser
Tjenester
  • Odoo.sh-hosting
  • Support
  • Opgradere
  • Individuelt tilpasset udvikling
  • Uddannelse
  • Find en bogholder
  • Find en partner
  • Bliv partner
Om os
  • Vores virksomhed
  • Brandaktiver
  • Kontakt os
  • Stillinger
  • Arrangementer
  • Podcast
  • Blog
  • Kunder
  • Juridiske dokumenter • Privatlivspolitik
  • Sikkerhedspolitik
الْعَرَبيّة 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 er en samling open source-forretningsapps, der dækker alle dine virksomhedsbehov – lige fra CRM, e-handel og bogføring til lagerstyring, POS, projektledelse og meget mere.

Det unikke ved Odoo er, at systemet både er brugervenligt og fuldt integreret.

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