From 2d10d680615db0dc837f7067d99616a5908cb324 Mon Sep 17 00:00:00 2001 From: pkgu-odoo Date: Fri, 30 Aug 2024 15:27:15 +0530 Subject: [PATCH] [IMP] estate: add property reports in estate module - Improved the report by including additional data fields and ensuring the PDF output matches the data accurately. - Implemented conditional logic to handle cases with no offers, displaying a message instead of an empty table. - Inherited and extended the property report to add invoice details. --- estate/__manifest__.py | 3 + .../report/estate_property_offer_template.xml | 35 ++++++++++ estate/report/estate_property_reports.xml | 23 +++++++ estate/report/estate_property_templates.xml | 65 +++++++++++++++++++ estate_account/__manifest__.py | 2 +- .../report/estate_account_property_report.xml | 15 +++++ 6 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 estate/report/estate_property_offer_template.xml create mode 100644 estate/report/estate_property_reports.xml create mode 100644 estate/report/estate_property_templates.xml create mode 100644 estate_account/report/estate_account_property_report.xml diff --git a/estate/__manifest__.py b/estate/__manifest__.py index 30bd140d87..9fdddfd240 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -14,6 +14,9 @@ 'views/estate_property_type_view.xml', 'views/estate_property_tag.xml', 'views/estate_property_offer.xml', + 'report/estate_property_offer_template.xml', + 'report/estate_property_reports.xml', + 'report/estate_property_templates.xml', 'views/res_user.xml', 'views/estate_menus.xml', ], diff --git a/estate/report/estate_property_offer_template.xml b/estate/report/estate_property_offer_template.xml new file mode 100644 index 0000000000..a0ccaf7c2e --- /dev/null +++ b/estate/report/estate_property_offer_template.xml @@ -0,0 +1,35 @@ + + + diff --git a/estate/report/estate_property_reports.xml b/estate/report/estate_property_reports.xml new file mode 100644 index 0000000000..65c6b38792 --- /dev/null +++ b/estate/report/estate_property_reports.xml @@ -0,0 +1,23 @@ + + + Print Property + estate.property + qweb-html + estate.report_property_offers + estate.report_property_offers + 'Estate_property_offers - %s' % (object.name or 'Attendee').replace('/','') + + report + + + + User Property Offers Report + res.users + qweb-html + estate.report_user_property_offers + estate.report_user_property_offers + 'User Estate Property - %s' % (object.name or 'Attendee').replace('/','') + + report + + diff --git a/estate/report/estate_property_templates.xml b/estate/report/estate_property_templates.xml new file mode 100644 index 0000000000..0e55c87971 --- /dev/null +++ b/estate/report/estate_property_templates.xml @@ -0,0 +1,65 @@ + + + + diff --git a/estate_account/__manifest__.py b/estate_account/__manifest__.py index ec05438af8..c506e011d5 100644 --- a/estate_account/__manifest__.py +++ b/estate_account/__manifest__.py @@ -2,7 +2,7 @@ 'name': 'Estate Account', 'version': '1.0', 'depends': ['estate', 'account'], - 'data': [], + 'data': ['report/estate_account_property_report.xml'], 'installable': True, 'application': True, 'auto_install': False, diff --git a/estate_account/report/estate_account_property_report.xml b/estate_account/report/estate_account_property_report.xml new file mode 100644 index 0000000000..2418610f54 --- /dev/null +++ b/estate_account/report/estate_account_property_report.xml @@ -0,0 +1,15 @@ + + + +