• Sign in
  • Try it free
    • Apps
      Websites
      Build great user experience
      • Website Builder
      • eCommerce
      • Blogs
      • Forums
      • Events
      • Live Chat
      • eLearning
      Sales
      Boost your success rate
      • Sales
      • CRM
      • Invoicing
      • Point of Sale
        • Shops
        • Restaurants
        • Hardware
      • Subscriptions
      • Sign
      • Rental
      • Amazon Connector
      Operations
      It's all about efficiency
      • Accounting
        • Accounting
        • AI
      • Project
      • Human Resources
        • Referral
        • Recruitment
        • Employees
        • Expenses
        • Appraisal
        • Fleet
        • Leaves
      • Inventory
      • Purchase
      • Manufacturing
        • MRP
        • PLM
        • Maintenance
        • Quality
        • IoT Box
      • Helpdesk
      • Field Service
      Productivity Tools
      Great Tools = Happy People
      • Communication
        • Discuss
        • Mailing Lists
        • Notes
      • Timesheet
      • Marketing
        • Social
        • Email
        • Automation
        • SMS
      • Survey
      • Approvals
      • Appointments
      • Documents New
        • Documents
        • Spreadsheet New
      • Planning
      Third party apps Odoo Studio Odoo Cloud Platform
    • Tour
    • Pricing
    • Learn
    • Community

    Help

    Odoo is the world's easiest all-in-one management software.
    It includes hundreds of business apps:

    • CRM
    • e-Commerce
    • Accounting
    • Inventory
    • PoS
    • Project management
    • MRP
    Take the tour
    • All Forums
    • Topics
    • People
    • Tags
    • Badges
    • About
      Go to:
    • Question
      All Topics People Tags Badges About
    0

    remove title and footer in reports

    Avatar
    AZCHILENO .
    2 December 2019
    Thanks for your subscription!
    pythonhtmlodoo

    I am printing several id of a table in a single report and I repeatedly see the company logo and footer data.
    How can I remove it from the page and only appear once?
    link photo: \https://ibb.co/4WKRzhs
    The html code of the report is as follows:

    <?xml version="1.0" encoding="utf-8"?>
    <odoo>
    <data>
    <report
    id="listado_limayor"
    model="proyecto_rc.cuenta"
    string="Lmayor"
    name="proyecto_rc.report_cuenta_view"
    file="proyecto_rc.report_lmayor"
    report_type="qweb-html" />

    <template id="report_cuenta_view">
    <t t-call="web.html_container">
    <t t-foreach="docs" t-as="i">
    <t t-call="web.external_layout">
    <div class="page">
    <br/>
    <br/>
    <br/>
    <br/>
    <br/>
    <br/>
    <style>
    table.tabla {
    width: 100%;
    background-color: #FFFFFF;
    border-collapse: collapse;
    border-width: 2px;
    border-color: #182AFF;
    border-style: solid;
    color: #000000;
    }

    table.tabla td, table.tabla th {
    border-width: 2px;
    border-color: #182AFF;
    border-style: solid;
    padding: 2px;
    }

    table.tabla th {
    background-color: #FFFFFF;
    }
    </style>


    <h2 style="text-align: center">Libro mayor</h2>
    <h3>Cuenta
    <span t-esc="i.titulo"/>
    </h3>
    <table class="tabla">
    <tr>
    <th style="text-align: center">Fecha</th>
    <th style="text-align: center">Razón social</th>
    <th style="text-align: center">Debe</th>
    <th style="text-align: center">Haber</th>
    </tr>
    <t t-foreach="i.detalle_documento_ids" t-as="o">
    <tr>
    <td>
    <span t-esc="o.fecha"/>
    </td>
    <td>
    <span t-esc="o.razon_social_id.nombre"/>
    </td>
    <td>
    <span t-esc="o.total_debe"/>
    </td>
    <td>
    <span t-esc="o.total_haber"/>
    </td>
    </tr>
    </t>
    <tfoot>
    <tr><th colspan="2" style="text-align: center">Total</th>
    <th style = "text-align: center"> <span t-esc = "i[0].total_cuenta_debe" /> </th>
    <th style = "text-align: center"> <span t-esc = "i[0].total_cuenta_haber" /> </th></tr>
    <tr><th colspan="2" style="text-align: center">Saldo</th>
    <th colspan="2" style = "text-align: center"> <span t-esc = "i[0].saldo" /> </th></tr>
    </tfoot>
    </table>
    </div>
    </t>
    </t>
    </t>
    </template>
    </data>
    </odoo>





    Comment Share
    2 Comments
    Avatar
    Discard
    Avatar
    Ermin Trevisan
    - 3 December 2019

    Please learn to properly format your questions.

    Avatar
    Hilar Andikkadavath
    - 3 December 2019

    Read the ODOO reports Documentation. https://www.odoo.com/documentation/11.0/reference/reports.html

    2 Answers
    2
    Avatar
    Sylvain Michel RATSARAFAHATRA
    3 December 2019
    Best Answer

    Hi!

    Please change <t t-call="web.external_layout"> to <t t-call="web.internal_layout"> in your code.

    Best regards!

    Comment Share
    Avatar
    Discard
    Community
    • eLearning
    • Documentation
    • Forum
    • Mailing Lists
    Open Source
    • Download
    • Github
    • Runbot
    • Translations
    Services
    • Odoo.sh Hosting
    • Support
    • Upgrade
    • Education
    • Find an Accountant
    • Find a Partner
    • Become a Partner
    About us
    • Our company
    • Contact us
    • Careers
    • Events
    • Blog
    • Customers
    • Partners
    • Legal
    • Privacy
    • Security
    الْعَرَبيّة 简体中文 繁體中文 Nederlands English Français Deutsch Bahasa Indonesia Italiano 日本語 한국어 (KR) Português (BR) русский язык Slovenský jazyk Español ภาษาไทย Türkçe українська Tiếng Việt

    Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

    Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

    Website made with

    Webinar French on YouTube

    1. Use the live chat to ask your questions.
    2. The operator answers within a few minutes.

    Watch now