52.How To Create Excel Report In Odoo 14 || Excel Reporting in Odoo || Base Report XLSX Odoo 14

  Рет қаралды 21,614

Odoo Mates

Odoo Mates

Күн бұрын

Пікірлер: 69
@ivanespinosa9104
@ivanespinosa9104 2 жыл бұрын
Excellent tutorial! but I have a question, a date field that I have in my module at the time the excel report appears, the box appears with #### instead of the date corresponding to a record, how do I change the #### for the date?
@OdooMates
@OdooMates 2 жыл бұрын
You have crested this excel reports?
@ivanespinosa9104
@ivanespinosa9104 2 жыл бұрын
@@OdooMates I already created my own excel report, but I already solved it, very good video
@OdooMates
@OdooMates 2 жыл бұрын
Glad to hear it ❤️
@smsmzean759
@smsmzean759 11 ай бұрын
Excellent tutorial!
@OdooMates
@OdooMates 6 ай бұрын
Glad you liked it!
@marwael-sherif6928
@marwael-sherif6928 3 жыл бұрын
When try t install report xlsx module I have the following exception: ValueError: ir.actions.report.report_type: required selection fields must define an ondelete policy that implements the proper cleanup of the corresponding records upon module uninstallation. Please use one or more of the following policies: 'set default' (if the field has a default defined), 'cascade', or a single-argument callable where the argument is the recordset containing the specified option
@OdooMates
@OdooMates 3 жыл бұрын
seems you are trying to install old version of report_xlsx in odoo14. Can you download v14 of report_xlsx and then install it
@domza001
@domza001 3 жыл бұрын
You have VDO educate install in window 10 ?, where is developer mode
@OdooMates
@OdooMates 3 жыл бұрын
we haven't made any videos in windows yet, if you are looking for how to activate the developer mode, you can go to settings menu, there you can see the option to activate the developer mode
@SamirSELLAMI
@SamirSELLAMI 3 жыл бұрын
Great tutorial ! Can you plz provide tutorials on how to mail merge an Odoo model into .odt or .docx office template ?
@OdooMates
@OdooMates 3 жыл бұрын
Are you looking for how to export record in these formats?
@SamirSELLAMI
@SamirSELLAMI 3 жыл бұрын
@@OdooMates I mean using a prepared .odt template to generate an Odoo report in various format pdf, doc, etc. Something like “Py3o Report Engine” from the OCA.
@muneebhaider5861
@muneebhaider5861 2 жыл бұрын
Hi 'Format' object has no attribute 'set_bg-color' this error shows up when i put 'bg-color' : 'yellow' in the format otherwise it works fine. Any solution? Thank you
@OdooMates
@OdooMates 2 жыл бұрын
which version ?
@muneebhaider5861
@muneebhaider5861 2 жыл бұрын
@@OdooMates odoo 13
@ember209
@ember209 2 жыл бұрын
Hello, I get raise "UnsupportedImageFormat( xlsxwriter.exceptions.UnsupportedImageFormat: image.png: Unknown or unsupported image file format" while generating an excel file with a pic. I tried image.jpg and image.jpeg but it did not help. What might be the source of problem?
@rafwenger
@rafwenger Жыл бұрын
Thanks Niyas for this great video! Could you please explain how can I email such xlsx report using a scheduled action? Thanks!
@huzaifaelnaeem2636
@huzaifaelnaeem2636 3 жыл бұрын
how can we add fields,menu,... from Odoo 14 based to our module? please provide video for it as u said .
@OdooMates
@OdooMates 3 жыл бұрын
For adding Menu and Action: kzbin.info/www/bejne/gXe7oJh7r9yrsLM For adding View: kzbin.info/www/bejne/rGG0n2B-gNmcqJo
@huzaifaelnaeem2636
@huzaifaelnaeem2636 3 жыл бұрын
@@OdooMates I already watched this,i mean exactly inheritance .
@OdooMates
@OdooMates 3 жыл бұрын
@@huzaifaelnaeem2636 can you elaborate little more brother
@huzaifaelnaeem2636
@huzaifaelnaeem2636 3 жыл бұрын
@@OdooMates why if we want to inherit odoo based(fields,...)--> it's appear in odoo based module instead to our model form or list. I've a little doubt since i am coming form java background.
@OdooMates
@OdooMates 3 жыл бұрын
@@huzaifaelnaeem2636 sorry to say that we didnt get the question correctly, if still it is not resolved and looking for solution, can you elaborate further with an example of res.partner model
@sabrianass2721
@sabrianass2721 2 жыл бұрын
Hello, First, thank you very much for the tutoriel, I followed all the steps, but when I click on "print", then on "Patient Card Excel" nothing happens : no error and no generation of the excel report. Any solutions please?
@OdooMates
@OdooMates 2 жыл бұрын
can you compare the code with the code here: apps.odoo.com/apps/modules/14.0/om_hospital/
@ashaAhmed-hi5yl
@ashaAhmed-hi5yl 3 жыл бұрын
I working with enterprise version i didn't found report_xlsx module only found test xlsx export
@OdooMates
@OdooMates 3 жыл бұрын
you have to download the module from oca github or from odoo apps and then add it your odoo instance
@OdooMates
@OdooMates 3 жыл бұрын
apps.odoo.com/apps/modules/14.0/report_xlsx/
@ashaAhmed-hi5yl
@ashaAhmed-hi5yl 3 жыл бұрын
@@OdooMates ok thanks
@OdooMates
@OdooMates 3 жыл бұрын
@@ashaAhmed-hi5yl welcome
@medvallelhadjsidi390
@medvallelhadjsidi390 3 жыл бұрын
hello, when I create an excel report the generation of the pdf report was unsuccessful
@OdooMates
@OdooMates 3 жыл бұрын
what error is coming ?
@medvallelhadjsidi390
@medvallelhadjsidi390 3 жыл бұрын
@@OdooMates nothing , but just in the pycharm I saw "GET /web/static/image/placeholder.png HTTP / 1.1" 304 - - - -
@medvallelhadjsidi390
@medvallelhadjsidi390 3 жыл бұрын
when I go back to the sales module again pdf generation it does not work
@OdooMates
@OdooMates 3 жыл бұрын
so you are creating excel report for the sale order and default sale order pdf getting failed ?
@medvallelhadjsidi390
@medvallelhadjsidi390 3 жыл бұрын
@@OdooMates it does not work in the sales module
@OdooMates
@OdooMates 3 жыл бұрын
Let me know how you coded it
@medvallelhadjsidi390
@medvallelhadjsidi390 3 жыл бұрын
@@OdooMates I created a directory that I named report in which I put two report.xml file with its content and patient_card.xml contains my template and I put their path in the manifest.xml file
@OdooMates
@OdooMates 3 жыл бұрын
@@medvallelhadjsidi390what is the error you get. share your code and error message to odoomates@gmail.com
@MuhammedMushraf-h2b
@MuhammedMushraf-h2b Жыл бұрын
ValueError: Wrong value for ir.actions.report.report_type: 'xlsx' i gert this error whwn upgrading the module
@OdooMates
@OdooMates Жыл бұрын
did you add report_xlsx module to your instance and add dependency in your module ?
@parulsharma7474
@parulsharma7474 2 жыл бұрын
when i print invoice_line_ids in excel report , i got 4 extra fields, and i hide these field using condition , but now it showing blank cell, how can i reduce these blank cells in excel
@OdooMates
@OdooMates 2 жыл бұрын
can you show us the written code
@parulsharma7474
@parulsharma7474 2 жыл бұрын
@@OdooMates how can i show you,your mail id?
@OdooMates
@OdooMates 2 жыл бұрын
Odoomates@gmail.com or you can share relevant part of the codes here as comment too
@parulsharma7474
@parulsharma7474 2 жыл бұрын
@@OdooMates i mailed you plz check
@parulsharma7474
@parulsharma7474 2 жыл бұрын
@@OdooMates from odoo import models import datetime from datetime import datetime, timedelta, date import re from odoo.exceptions import ValidationError class PartnerXlsx(models.AbstractModel): _name = 'report.extrainfo.report_hsn_report' _inherit = 'report.report_xlsx.abstract' def generate_xlsx_report(self, workbook, data, partners): sheet = workbook.add_worksheet('HSN REPORT') bold = workbook.add_format({'bold': True}) format1 = workbook.add_format({'bold': True, 'align': 'left'}) todays_date = date.today() today_date = date.today() - timedelta(1) row = 0 col = 0 sheet.write(row, col + 0, 'HSN', format1) sheet.write(row, col + 1, 'Description', format1) sheet.write(row, col + 2, 'UQC', format1) sheet.write(row, col + 3, 'Total Quantity', format1) sheet.write(row, col + 4, 'Total Value', format1) sheet.write(row, col + 5, 'Rate', format1) sheet.write(row, col + 6, 'Taxable Value', format1) sheet.write(row, col + 7, 'Integrated Tax Amount', format1) sheet.write(row, col + 8, 'Central Tax Amount', format1) sheet.write(row, col + 9, 'State/UT Tax Amount', format1) sheet.write(row, col + 10, 'Cess Amount', format1) for obj in partners: for rec in data['partner_id']: row += 1 res = rec.get('partner_id') domain = [] res_partnerId = self.env['account.move'].sudo().search([('partner_id', '=', res[0])]) actual_item = [] abc_id = self.env['account.move.line'].sudo().search([('move_id', '=', 8)]) data = self.env['product.product'].sudo().search_read(domain) # print("@@@@@@@@@@@@@@@@@@@@@@@@@@@@", real_item) for y in abc_id: row += 1 if y['total_amount'] == 0: sheet.write(row, col," ") else: sheet.write(row, col, y['hsnsac']) if y['total_amount'] == 0: sheet.write(row, col + 1, " ") else: sheet.write(row, col + 1, y['name']) if y['total_amount'] == 0: sheet.write(row, col + 2, " ") else: sheet.write(row, col + 2, y['uom']) if y['total_amount'] == 0: sheet.write(row, col+3," ") else: sheet.write(row, col + 3, y['quantity']) if y['total_amount'] == 0: sheet.write(row, col+4," ") else: sheet.write(row, col + 4, y['total_amount']) if y['total_amount'] == 0: sheet.write(row, col+5," ") else: sheet.write(row, col + 5, y['price_unit']) if y['total_amount'] == 0: sheet.write(row, col+6," ") else: sheet.write(row, col + 6, y['price_subtotal']) if y['total_amount'] == 0: sheet.write(row, col + 8, " ") elif (y['tax_ids'] == "GST 1%", "GST 5%", "GST 12%", "GST 18%", "GST 28%"): sheet.write(row, col + 8, y['tax_value'] / 2) else: sheet.write(row, col + 8,"yes") if y['total_amount'] == 0: sheet.write(row, col + 9, " ") elif (y['tax_ids'] == "GST 1%", "GST 5%", "GST 12%", "GST 18%", "GST 28%"): sheet.write(row, col + 9, y['tax_value']/2) else: sheet.write(row, col + 9, "no") if y['total_amount'] == 0: sheet.write(row, col + 7, " ") elif (y['tax_ids'] == "IGST 1%", "IGST 5%", "IGST 12%", "IGST 18%", "IGST 28%"): sheet.write(row, col + 7, y['tax_value']) else: sheet.write(row, col + 7, "no") check this
@NuredinMuhamed-g8g
@NuredinMuhamed-g8g 6 ай бұрын
is it base report xlsx work for v17 odoo 17?
@OdooMates
@OdooMates 6 ай бұрын
yes, you can download v17 of that
@vajidap3903
@vajidap3903 3 жыл бұрын
how to print a one2many in excel
@OdooMates
@OdooMates 3 жыл бұрын
By iterating over a for loop
@vajidap3903
@vajidap3903 3 жыл бұрын
@@OdooMates can you do a video please
@bereketoldema6877
@bereketoldema6877 2 жыл бұрын
how to install xlsxwriter and xlrd module , it's not working for me
@OdooMates
@OdooMates 2 жыл бұрын
pip install XlsxWriter
@Anjalisharma-zj8ce
@Anjalisharma-zj8ce 2 жыл бұрын
when i use, search_read in my code it through 'name' error, code is- p_id = self.env['partner.loan.details'].search_read(domain) what should i do
@thaoo99
@thaoo99 3 жыл бұрын
^^ thanks
@OdooMates
@OdooMates 3 жыл бұрын
welcome
@thaoo99
@thaoo99 3 жыл бұрын
@@OdooMates can you give me the solution to do this? how to create field: date, type : datetime with autofill with today's date and default 00:00 time, thanks ^^
@OdooMates
@OdooMates 3 жыл бұрын
@@thaoo99 date_from = fields.Date(string='Start Date', default=date.today(), required=True)
@thaoo99
@thaoo99 3 жыл бұрын
@@OdooMates
@OdooMates
@OdooMates 3 жыл бұрын
@@thaoo99 welcome
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Case Study: Create Reports Like a Pro with Odoo Studio
27:07
Why Does Scrum Make Programmers HATE Coding?
16:14
Thriving Technologist
Рет қаралды 527 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,5 МЛН
How To Create Excel/XLS Report in Odoo
17:55
Odoo Mates
Рет қаралды 42 М.