title: Report documents are not showing styles and header in PDF but they are in HTML version (After migration Odoo 8 to Odoo 10)
body: <p>I'm trying to use my inherited templates I had done on Odoo 8 for my just migrated Odoo 10 database. Unexpectedly, header has disappeared and there is not styles either. I have checked logs and make some changes but I can't see header, footer or styles in PDFs but, if I "print" as HTML I see that.</p>
  
  <p>I have this additional content for external layout:</p>
  
  <pre><code>&lt;template id="dentaltix_report_layout_styles" inherit_id="report.assets_editor"&gt;
          &lt;xpath expr="." position="inside"&gt;
              &lt;link rel="stylesheet" type="text/css" href="/dentaltix_core_changes/static/src/css/dentaltix_report.css"/&gt;
          &lt;/xpath&gt;
      &lt;/template&gt;
  
      &lt;template id="dentaltix_external_layout_header" inherit_id="report.external_layout_header"&gt;
          &lt;xpath expr="//div[@class='header']/div[@class='row'][2]/div[@class='col-xs-6']" position="replace"&gt;
              &lt;div class="col-xs-6"&gt;
                  &lt;div t-field="company.partner_id" 
                       t-field-options='{"widget": "contact", "fields": ["name"], "no_marker": True}' /&gt;
                  &lt;div t-if="company.partner_id.vat"&gt;TIN: &lt;span t-field="company.partner_id.vat"/&gt;&lt;/div&gt;
                  &lt;div t-field="company.partner_id" 
                       t-field-options='{"widget": "contact", "fields": ["address"], "no_marker": True}' /&gt;
              &lt;/div&gt;
              &lt;div class="col-xs-6 text-right"&gt;
                  &lt;div t-field="company.partner_id" 
                       t-field-options='{"widget": "contact", "fields": ["phone","email"], "no_marker": False}' /&gt;
              &lt;/div&gt;
          &lt;/xpath&gt;
      &lt;/template&gt;
  </code></pre>
  
  <p>And the following content for report_saleorder_document template:</p>
  
  <pre><code>&lt;template id="report_saleorder_document_ext" inherit_id="sale.report_saleorder_document"&gt;
      &lt;xpath expr="//div[@class='page']/div[@class='row'][1]" position="replace"&gt;
          &lt;div class="col-xs-12"&gt;
              &lt;h6&gt;&lt;strong&gt;Invoice and shipping address:&lt;/strong&gt;&lt;/h6&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-xs-5 col-xs-offset-1"&gt;
                      &lt;div t-if="doc.partner_id.parent_id and doc.partner_id.parent_id.id &amp;gt; 0"&gt;&lt;span t-field="doc.partner_id.parent_id.name"/&gt;&lt;/div&gt;
                      &lt;div t-if="not doc.partner_id.parent_id"&gt;&lt;span t-field="doc.partner_id.name"/&gt;&lt;/div&gt;
                      &lt;div t-if="doc.partner_id.vat"&gt;VAT: &lt;span t-field="doc.partner_id.vat"/&gt;&lt;/div&gt;
                      &lt;div t-field="doc.partner_id" t-options='{"widget": "contact", "fields": ["address", "phone", "email"], "no_marker": False, "phone_icons": True}'/&gt;
                  &lt;/div&gt;
                  &lt;div class="col-xs-5 col-xs-offset-1"&gt;
                      &lt;div t-field="doc.ship_addr_name"/&gt;
                      &lt;div&gt;
                          &lt;div t-field="doc.ship_addr_street"/&gt;
                          &lt;div&gt;
                              &lt;span t-field="doc.ship_addr_zip"/&gt;
                              &lt;span t-field="doc.ship_addr_city"/&gt;,
                              &lt;span t-field="doc.ship_addr_state"/&gt;.
                          &lt;/div&gt;
                          &lt;span t-field="doc.ship_addr_country"/&gt;
                      &lt;/div&gt;
                      &lt;div t-field="doc.ship_addr_phone"/&gt;
                      &lt;div t-field="doc.ship_addr_extra_info"/&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/xpath&gt;
  
      &lt;xpath expr="//div[@id='informations']/div[3]" position="replace"/&gt;
  
      &lt;xpath expr="//div[@class='page']/h2" position="replace"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-xs-12"&gt;
                  &lt;h4&gt;&lt;strong&gt;
                      &lt;span t-if="doc.state not in ['draft','sent']"&gt;Order N° &lt;/span&gt;
                      &lt;span t-if="doc.state in ['draft','sent']"&gt;Quotation N° &lt;/span&gt;
                      &lt;span t-field="doc.name"/&gt;
                  &lt;/strong&gt;&lt;/h4&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/xpath&gt;
  
      &lt;xpath expr="//div[@class='page']/t[2]/table" position="replace"&gt;
          &lt;table class="table table-condensed"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th class="text-center"&gt;Reference&lt;/th&gt;
                      &lt;th class="text-center"&gt;Description&lt;/th&gt;
                      &lt;th class="text-center"&gt;Taxes&lt;/th&gt;
                      &lt;th class="text-center"&gt;Quantity&lt;/th&gt;
                      &lt;th class="text-center"&gt;Unit Price&lt;/th&gt;
                      &lt;th class="text-center"&gt;Discount (%)&lt;/th&gt;
                      &lt;th class="text-center"&gt;Price&lt;/th&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody class="sale_tbody"&gt;
                  &lt;tr t-foreach="doc.order_line" t-as="l"&gt;
                      &lt;td&gt;&lt;span t-field="l.product_id.default_code"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;span t-field="l.name"/&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/&gt;&lt;/td&gt;
                      &lt;td class="text-right"&gt;
                          &lt;span t-esc="l.product_uom_qty"/&gt;
                          &lt;span groups="product.group_uom" t-field="l.product_uom"/&gt; ut.
                      &lt;/td&gt;
                      &lt;td class="text-right"&gt;
                          &lt;span t-field="l.price_unit"
                              t-field-options='{"widget": "monetary", "display_currency": doc.currency_id}'/&gt;
                      &lt;/td&gt;
                      &lt;td class="text-right"&gt;&lt;span t-esc="l.discount"/&gt;%&lt;/td&gt;
                      &lt;td class="text-right"&gt;
                          &lt;span t-field="l.price_subtotal"
                              t-field-options='{"widget": "monetary", "display_currency": doc.pricelist_id.currency_id}'/&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/xpath&gt;
  
      &lt;xpath expr="//div[@class='page']/div[@class='oe_structure'][2]" position="before"&gt;
          &lt;div t-if="doc.payment_method and doc.payment_method == 'bank_transfer' and doc.payment_method != ''" id="payment_method_note" class="row" style="font-size: 10px;"&gt;
              &lt;div class="col-xs-12"&gt;
                  &lt;h6&gt;&lt;strong&gt;Payment method:&lt;/strong&gt;&lt;/h6&gt;
                      &lt;div t-field="doc.ship_addr_phone"/&gt;
                  &lt;p&gt;&lt;strong&gt;
                      To process this order is necessary you pay the total amount &lt;br/&gt;
                      making a transfer to the next bank account number:
                  &lt;/strong&gt;&lt;/p&gt;
                  &lt;div t-foreach="doc.company_id.partner_id.bank_ids" t-as="b"&gt;
                      &lt;span&gt;Account owner:&lt;/span&gt; &lt;span t-field="b.partner_id.name"/&gt;&lt;br/&gt;
                      &lt;span t-field="b.acc_country_id"/&gt;: &lt;span t-field="b.acc_number"/&gt;&lt;br/&gt;
                      &lt;span&gt;BIC / SWIFT Code:&lt;/span&gt; &lt;span t-field="b.bank_bic"/&gt;&lt;br/&gt;
                      &lt;span&gt;Bank:&lt;/span&gt; &lt;span t-field="b.bank_name"/&gt;&lt;br/&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/xpath&gt;
  &lt;/template&gt;
  
  &lt;template id="report_saleorder_ext"&gt;
      &lt;t t-call="report.html_container"&gt;
          &lt;t t-foreach="docs" t-as="doc"&gt;
              &lt;t t-call="sale.report_saleorder_document" t-lang="doc.partner_id.lang"/&gt;
          &lt;/t&gt;
      &lt;/t&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Are there other changes I'm loosing?</p>
  
  <p>Custom header was setted through Odoo 8 settings view and it used to work. If you need it, just tell me and I paste it here.</p>