layouts.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="new_external_layout">
  5. <!-- Multicompany -->
  6. <t t-if="o and 'company_id' in o">
  7. <t t-set="company" t-value="o.company_id"></t>
  8. </t>
  9. <t t-if="not o or not 'company_id' in o">
  10. <t t-set="company" t-value="res_company"></t>
  11. </t>
  12. <t t-call="new_pdf_formats.new_external_layout_header" />
  13. <t t-raw="0" />
  14. <t t-call="report.external_layout_footer" />
  15. </template>
  16. <template id="new_external_layout_header">
  17. <div class="header">
  18. <div class="row">
  19. <div class="col-xs-8">
  20. <div>
  21. <strong><span t-field="company.partner_id" style="font-size:20px"/></strong>
  22. </div>
  23. <div t-field="company.rml_header1"/>
  24. <div>
  25. <span>R.U.C:</span>
  26. <span t-field="company.partner_id.ruc"/>
  27. </div>
  28. <div t-field="company.street"/>
  29. <div t-field="company.street2"/>
  30. <div t-field="company.state_id"/>
  31. <div t-field="company.country_id"/>
  32. </div>
  33. <div class="col-xs-4">
  34. <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 100px; float:right"/>
  35. </div>
  36. </div>
  37. <div class="row zero_min_height">
  38. <div class="col-xs-12">
  39. <div style="border-bottom: 1px solid black;"></div>
  40. </div>
  41. </div>
  42. </div>
  43. </template>
  44. </data>
  45. </openerp>