From bd0de00005f676e85587f8233f0b07decb158d12 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 8 Oct 2024 14:57:05 +0530 Subject: [PATCH] Oct 08: [FIX] Bug Fixed 'base_advanced_report_templates' --- base_advanced_report_templates/__init__.py | 14 ++++++++++++++ base_advanced_report_templates/__manifest__.py | 3 ++- .../doc/RELEASE_NOTES.md | 5 +++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/base_advanced_report_templates/__init__.py b/base_advanced_report_templates/__init__.py index 8d20355a2..46d6f4e6f 100644 --- a/base_advanced_report_templates/__init__.py +++ b/base_advanced_report_templates/__init__.py @@ -20,3 +20,17 @@ # ############################################################################# from . import model + +def uninstall_hook(env): + + env['ir.actions.report'].search([ + ('report_name', '=','base_advanced_report_templates.report_saleorder_custom')]).write({'report_name': 'sale.report_saleorder', + 'name': 'PDF Quote'}) + env['ir.actions.report'].search([ + ('report_name', '=','base_advanced_report_templates.report_deliveryslip_custom')]).write({'report_name':'stock.report_deliveryslip'}) + env['ir.actions.report'].search([ + ('report_name', '=','base_advanced_report_templates.report_invoice_custom')]).write({'report_name':'account.report_invoice_with_payments',}) + env['ir.actions.report'].search([ + ('report_name', '=','base_advanced_report_templates.report_purchase_custom'),('name','=','Purchase Order')]).write({'report_name': 'purchase.report_purchaseorder'}) + env['ir.actions.report'].search([('report_name', '=','base_advanced_report_templates.report_purchase_custom'), + ('name','=','Request for Quotation')]).write({'report_name':'purchase.report_purchasequotation'}) diff --git a/base_advanced_report_templates/__manifest__.py b/base_advanced_report_templates/__manifest__.py index 466ba8968..61fd7f167 100644 --- a/base_advanced_report_templates/__manifest__.py +++ b/base_advanced_report_templates/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': 'Odoo Professional Report Templates', - 'version': '17.0.1.0.0', + 'version': '17.0.1.1.0', 'category': 'Sales,Purchases,Accounting,Warehouse', 'summary': "Report Templates, Professional Report Templates, Report Customisations, Sale Reports, Purchase Reports, Invoice Reports, Templates, Odoo17, Oodoo Apps", 'description': "To tailor the presentation of different reports such as " @@ -66,4 +66,5 @@ 'installable': True, 'auto_install': False, 'application': False, + 'uninstall_hook': 'uninstall_hook', } diff --git a/base_advanced_report_templates/doc/RELEASE_NOTES.md b/base_advanced_report_templates/doc/RELEASE_NOTES.md index c052f59ab..b3ba33147 100644 --- a/base_advanced_report_templates/doc/RELEASE_NOTES.md +++ b/base_advanced_report_templates/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 17.0.1.0.0 ##### ADD - Initial commit for Odoo Professional Report Templates + +#### 07.10.2024 +#### Version 17.0.1.1.0 +##### UPDT +- Add uninstall_hook in init file