Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

creating custome report with libreoffice or aeroo

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
4 Respuestas
10042 Vistas
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
Descartar
Avatar
Alejandro Perez Cosio
Mejor respuesta

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
Descartar
Avatar
Abdullah Sofan
Mejor respuesta

@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
Descartar
Avatar
Mathias Neef
Mejor respuesta

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
Descartar
Avatar
MoayadRayyan
Autor Mejor respuesta

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

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

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