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?
@OdooMates2 жыл бұрын
You have crested this excel reports?
@ivanespinosa91042 жыл бұрын
@@OdooMates I already created my own excel report, but I already solved it, very good video
@OdooMates2 жыл бұрын
Glad to hear it ❤️
@smsmzean75911 ай бұрын
Excellent tutorial!
@OdooMates6 ай бұрын
Glad you liked it!
@marwael-sherif69283 жыл бұрын
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
@OdooMates3 жыл бұрын
seems you are trying to install old version of report_xlsx in odoo14. Can you download v14 of report_xlsx and then install it
@domza0013 жыл бұрын
You have VDO educate install in window 10 ?, where is developer mode
@OdooMates3 жыл бұрын
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
@SamirSELLAMI3 жыл бұрын
Great tutorial ! Can you plz provide tutorials on how to mail merge an Odoo model into .odt or .docx office template ?
@OdooMates3 жыл бұрын
Are you looking for how to export record in these formats?
@SamirSELLAMI3 жыл бұрын
@@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.
@muneebhaider58612 жыл бұрын
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
@OdooMates2 жыл бұрын
which version ?
@muneebhaider58612 жыл бұрын
@@OdooMates odoo 13
@ember2092 жыл бұрын
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 Жыл бұрын
Thanks Niyas for this great video! Could you please explain how can I email such xlsx report using a scheduled action? Thanks!
@huzaifaelnaeem26363 жыл бұрын
how can we add fields,menu,... from Odoo 14 based to our module? please provide video for it as u said .
@OdooMates3 жыл бұрын
For adding Menu and Action: kzbin.info/www/bejne/gXe7oJh7r9yrsLM For adding View: kzbin.info/www/bejne/rGG0n2B-gNmcqJo
@huzaifaelnaeem26363 жыл бұрын
@@OdooMates I already watched this,i mean exactly inheritance .
@OdooMates3 жыл бұрын
@@huzaifaelnaeem2636 can you elaborate little more brother
@huzaifaelnaeem26363 жыл бұрын
@@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.
@OdooMates3 жыл бұрын
@@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
@sabrianass27212 жыл бұрын
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?
@OdooMates2 жыл бұрын
can you compare the code with the code here: apps.odoo.com/apps/modules/14.0/om_hospital/
@ashaAhmed-hi5yl3 жыл бұрын
I working with enterprise version i didn't found report_xlsx module only found test xlsx export
@OdooMates3 жыл бұрын
you have to download the module from oca github or from odoo apps and then add it your odoo instance
@OdooMates3 жыл бұрын
apps.odoo.com/apps/modules/14.0/report_xlsx/
@ashaAhmed-hi5yl3 жыл бұрын
@@OdooMates ok thanks
@OdooMates3 жыл бұрын
@@ashaAhmed-hi5yl welcome
@medvallelhadjsidi3903 жыл бұрын
hello, when I create an excel report the generation of the pdf report was unsuccessful
@OdooMates3 жыл бұрын
what error is coming ?
@medvallelhadjsidi3903 жыл бұрын
@@OdooMates nothing , but just in the pycharm I saw "GET /web/static/image/placeholder.png HTTP / 1.1" 304 - - - -
@medvallelhadjsidi3903 жыл бұрын
when I go back to the sales module again pdf generation it does not work
@OdooMates3 жыл бұрын
so you are creating excel report for the sale order and default sale order pdf getting failed ?
@medvallelhadjsidi3903 жыл бұрын
@@OdooMates it does not work in the sales module
@OdooMates3 жыл бұрын
Let me know how you coded it
@medvallelhadjsidi3903 жыл бұрын
@@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
@OdooMates3 жыл бұрын
@@medvallelhadjsidi390what is the error you get. share your code and error message to odoomates@gmail.com
@MuhammedMushraf-h2b Жыл бұрын
ValueError: Wrong value for ir.actions.report.report_type: 'xlsx' i gert this error whwn upgrading the module
@OdooMates Жыл бұрын
did you add report_xlsx module to your instance and add dependency in your module ?
@parulsharma74742 жыл бұрын
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
@OdooMates2 жыл бұрын
can you show us the written code
@parulsharma74742 жыл бұрын
@@OdooMates how can i show you,your mail id?
@OdooMates2 жыл бұрын
Odoomates@gmail.com or you can share relevant part of the codes here as comment too
@parulsharma74742 жыл бұрын
@@OdooMates i mailed you plz check
@parulsharma74742 жыл бұрын
@@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-g8g6 ай бұрын
is it base report xlsx work for v17 odoo 17?
@OdooMates6 ай бұрын
yes, you can download v17 of that
@vajidap39033 жыл бұрын
how to print a one2many in excel
@OdooMates3 жыл бұрын
By iterating over a for loop
@vajidap39033 жыл бұрын
@@OdooMates can you do a video please
@bereketoldema68772 жыл бұрын
how to install xlsxwriter and xlrd module , it's not working for me
@OdooMates2 жыл бұрын
pip install XlsxWriter
@Anjalisharma-zj8ce2 жыл бұрын
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
@thaoo993 жыл бұрын
^^ thanks
@OdooMates3 жыл бұрын
welcome
@thaoo993 жыл бұрын
@@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 ^^