Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Problem with excel report

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
enterpriseodoo.shv14
3706 Vizualizări
Imagine profil
Rafael Angel Ramirez Estrada

I'm trying to generate an XML report but I'm getting the following error:

Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/src/odoo/odoo/http.py", line 813, in dispatch r = self._call_function(**self.params) File "/home/odoo/src/odoo/odoo/http.py", line 370, in call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/odoo/http.py", line 358, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 919, in call return self.method(*args, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 544, in response_wrap response = f(*args, **kw) File "/home/odoo/src/user/report_xlsx/controllers/main.py", line 31, in report_routes xlsx = report.with_context(context).render_xlsx(docids, data=data)[0] File "/home/odoo/src/user/report_xlsx/models/ir_report.py", line 18, in render_xlsx raise UserError(("%s model was not found") % report_model_name) Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/home/odoo/src/odoo/odoo/http.py", line 813, in dispatch r = self._call_function(**self.params) File "/home/odoo/src/odoo/odoo/http.py", line 370, in call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/src/odoo/odoo/http.py", line 358, in checked_call result = self.endpoint(*a, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 919, in call return self.method(*args, **kw) File "/home/odoo/src/odoo/odoo/http.py", line 544, in response_wrap response = f(*args, **kw) File "/home/odoo/src/user/report_xlsx/controllers/main.py", line 31, in report_routes xlsx = report.with_context(context).render_xlsx(docids, data=data)[0] File "/home/odoo/src/user/report_xlsx/models/ir_report.py", line 18, in render_xlsx raise UserError(("%s model was not found") % report_model_name) odoo.exceptions.UserError: report.False model was not found



This is the action I created:

xmlCopy codeid="action_report_saldos_y_movimientos_wizard" model="ir.actions.report">
    name="name">MATRIMAR | Reporte saldos y movimientos
    name="model">reporte_saldos_y_movimientos_wizard
    name="report_type">xlsx
    name="report_name">
        report.matrimar_reporte_de_saldos_y_movimientos.plantilla_excel
    name="report_file">
        report.matrimar_reporte_de_saldos_y_movimientos.plantilla_excel
    name="binding_type">report

This is the model to generate the report:

pythonCopy codeclass ReporteDeSaldosYMovimientosExcel(models.AbstractModel):
    _name = 'report.matrimar_reporte_de_saldos_y_movimientos.plantilla_excel'
    _description = 'MATRIMAR | Reporte excel de saldos y movimientos'
    _inherit = 'report.report_xlsx.abstract'

    def generate_xlsx_report(self, workbook, data, partners):
        _logger.info(f'{data=} {partners=}')
        pass

And this is the model of the wizard where I call the report:

pythonCopy codeclass ReporteDeSaldosYMovimientosWizard(models.TransientModel):
    _name = 'reporte_saldos_y_movimientos_wizard'
    _description = 'MATRIMAR | Saldos y movimientos - Reporte'

    partner_id = fields.Many2one(
        'res.partner',
        string='Cliente',
    )

    fecha = fields.Date()

    def generar_reporte_pdf(self):
        _logger.info('No definido')

    def generar_reporte_excel(self):
        _logger.info('Generando archivo de excel')
        data = {
            'form_data': self.read()[0]
        }
        return self.env.ref('matrimar_reporte_de_saldos_y_movimientos.action_report_saldos_y_movimientos_wizard').report_ac



0
Imagine profil
Abandonează
Cybrosys Techno Solutions Pvt.Ltd

Hi,

There is a little confusion in your question. In the heading, you are saying that issue is in the Excel report. But in the beginning of the paragraph, you are saying that issue is with generating XML files.
Anyway you can refer the below links for both
For XML report : https://www.cybrosys.com/blog/how-to-create-and-export-xml-reports-in-odoo
For Excel reports: https://www.cybrosys.com/blog/how-to-create-excel-report-using-controller-in-odoo-15
I hope this will help you.

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Unable to upgrade or uninstall custom module on odoo.sh, odoo 14 enterprise version.
enterprise odoo.sh v14
Imagine profil
0
iun. 21
3877
odoo.sh getting error on commit any changes
enterprise odoo.sh v14 Odoo.sh
Imagine profil
0
mar. 22
3388
Validating invoice - Failed to load the document 'SiiTypes_v10.xsd'
invoice enterprise odoo.sh v14
Imagine profil
0
iul. 21
3601
Multi language Invoice documents
odoo.sh v14
Imagine profil
Imagine profil
1
aug. 24
4041
Odoo 14 credit notes return invoiced products in sale order
enterprise v14
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
iul. 24
5469
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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