From 59e45f75a392fe8f50c7f55d54254b2ca3f36e51 Mon Sep 17 00:00:00 2001 From: "luc.demeyer@noviat.com" Date: Fri, 17 Aug 2018 17:57:47 +0200 Subject: [PATCH] suggestions pankk --- intrastat_product/report/intrastat_product_report_xls.py | 3 +-- intrastat_product/views/intrastat_product_declaration.xml | 2 +- intrastat_product_generic/README.rst | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/intrastat_product/report/intrastat_product_report_xls.py b/intrastat_product/report/intrastat_product_report_xls.py index 4a6063b..cd21afe 100644 --- a/intrastat_product/report/intrastat_product_report_xls.py +++ b/intrastat_product/report/intrastat_product_report_xls.py @@ -6,7 +6,6 @@ import logging from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \ import AbstractReportXlsx -# from odoo.exceptions import UserError from odoo.report import report_sxw from odoo.tools.translate import translate, _ @@ -255,7 +254,7 @@ class IntrastatProductDeclarationXlsx(AbstractReportXlsx): def _intrastat_report(self, workbook, ws, ws_params, data, declaration): - ws.set_portrait() + ws.set_landscape() ws.fit_to_pages(1, 0) ws.set_header(self.xls_headers['standard']) ws.set_footer(self.xls_footers['standard']) diff --git a/intrastat_product/views/intrastat_product_declaration.xml b/intrastat_product/views/intrastat_product_declaration.xml index 35a5059..254eb23 100644 --- a/intrastat_product/views/intrastat_product_declaration.xml +++ b/intrastat_product/views/intrastat_product_declaration.xml @@ -32,7 +32,7 @@ - + diff --git a/intrastat_product_generic/README.rst b/intrastat_product_generic/README.rst index abb2d9e..00f570c 100644 --- a/intrastat_product_generic/README.rst +++ b/intrastat_product_generic/README.rst @@ -7,7 +7,7 @@ Generic Intrastat Product Declaration ===================================== This module adds a menu entry for a Generic Intrastat Product Declaration. -This is usefull to cover countries for which there is no localization module. +This is useful to cover countries for which there is no localization module. Installation ============