From ae252ec5797238eac630468ca344fae2cf44cb12 Mon Sep 17 00:00:00 2001 From: niku-odoo Date: Fri, 30 Aug 2024 15:29:51 +0530 Subject: [PATCH] [IMP] estate: Implemented PDF Reports After this commit: Implemented Minimal Template Implemented Sub Templeted Implemented Report Inheritance --- estate/__manifest__.py | 5 +- estate/demo/estate_demo_offers.xml | 43 ++++++------ estate/report/estate_property_report.xml | 22 ++++++ estate/report/estate_property_subtemplate.xml | 36 ++++++++++ estate/report/estate_property_template.xml | 67 +++++++++++++++++++ estate/view/estate_property_views.xml | 3 +- estate_account/__manifest__.py | 7 +- .../report/estate_account_report.xml | 12 ++++ 8 files changed, 169 insertions(+), 26 deletions(-) create mode 100644 estate/report/estate_property_report.xml create mode 100644 estate/report/estate_property_subtemplate.xml create mode 100644 estate/report/estate_property_template.xml create mode 100644 estate_account/report/estate_account_report.xml diff --git a/estate/__manifest__.py b/estate/__manifest__.py index eefe2c88db..92e27a532d 100644 --- a/estate/__manifest__.py +++ b/estate/__manifest__.py @@ -15,7 +15,10 @@ 'view/estate_property_tag_view.xml', 'view/res_users_view.xml', 'view/estate_menus.xml', - 'data/property_type.xml' + 'data/property_type.xml', + 'report/estate_property_template.xml', + 'report/estate_property_report.xml', + 'report/estate_property_subtemplate.xml' ], 'demo': [ 'demo/estate_property_demo.xml', diff --git a/estate/demo/estate_demo_offers.xml b/estate/demo/estate_demo_offers.xml index 4bbdf223bd..4889418fd0 100644 --- a/estate/demo/estate_demo_offers.xml +++ b/estate/demo/estate_demo_offers.xml @@ -1,39 +1,38 @@ - - - 10000 - 14 - + + + 10000 + 14 + - + - - - 1500000 - 14 - + + + 1500000 + 14 + - + - - - 1500001 - 14 - + + + 1500001 + 14 + - + - + - + - - \ No newline at end of file + \ No newline at end of file diff --git a/estate/report/estate_property_report.xml b/estate/report/estate_property_report.xml new file mode 100644 index 0000000000..0320628f2b --- /dev/null +++ b/estate/report/estate_property_report.xml @@ -0,0 +1,22 @@ + + + + + Estate Property Report + estate.property + qweb-html + estate.report_property_offers + + report + + + + Estate User Property + res.users + qweb-html + estate.report_salesperson_properties + + report + + + \ No newline at end of file diff --git a/estate/report/estate_property_subtemplate.xml b/estate/report/estate_property_subtemplate.xml new file mode 100644 index 0000000000..519f0cb6a3 --- /dev/null +++ b/estate/report/estate_property_subtemplate.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/estate/report/estate_property_template.xml b/estate/report/estate_property_template.xml new file mode 100644 index 0000000000..91647c8419 --- /dev/null +++ b/estate/report/estate_property_template.xml @@ -0,0 +1,67 @@ + + + + + \ No newline at end of file diff --git a/estate/view/estate_property_views.xml b/estate/view/estate_property_views.xml index 09b54aad0b..ebcf8d625e 100644 --- a/estate/view/estate_property_views.xml +++ b/estate/view/estate_property_views.xml @@ -54,7 +54,8 @@
-
diff --git a/estate_account/__manifest__.py b/estate_account/__manifest__.py index bb96566021..6ca7ae6de1 100644 --- a/estate_account/__manifest__.py +++ b/estate_account/__manifest__.py @@ -3,8 +3,11 @@ 'version': '1.0', 'category': 'Real Estate', 'depends': ['estate', 'account'], - 'data': [], 'license': 'LGPL-3', + 'data': [ + 'report/estate_account_report.xml', + ], 'installable': True, - 'application': True + 'application': True, + } diff --git a/estate_account/report/estate_account_report.xml b/estate_account/report/estate_account_report.xml new file mode 100644 index 0000000000..6cefba76a2 --- /dev/null +++ b/estate_account/report/estate_account_report.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file