You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
8.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- ****************** POUR IMPRESSION FACTURE **************** -->
  5. <template id="theme_light.layout" inherit_id="web.layout" primary="True">
  6. <!-- Add report attributes -->
  7. <xpath expr="//html" position="attributes">
  8. <attribute name="t-att-data-report-margin-top">data_report_margin_top if data_report_margin_top else None</attribute>
  9. <attribute name="t-att-data-report-header-spacing">data_report_header_spacing if data_report_header_spacing else None</attribute>
  10. <attribute name="t-att-data-report-dpi">data_report_dpi if data_report_dpi else None</attribute>
  11. </xpath>
  12. <!-- Add report style -->
  13. <xpath expr="//head" position="inside">
  14. <link href="/web/static/lib/bootstrap/css/bootstrap.css" rel="stylesheet"/>
  15. <link href="/website/static/src/css/website.css" rel="stylesheet"/>
  16. <link href="/web/static/lib/fontawesome/css/font-awesome.css" rel="stylesheet"/>
  17. <link href="/theme_light/static/css/invoice_orange.css" rel="stylesheet"/>
  18. <style type="text/css">
  19. <t t-call="theme_light.style"/>
  20. </style>
  21. </xpath>
  22. <!-- Remove conflicting style -->
  23. <xpath expr="//head/link[@href='/web/static/src/css/full.css']" position="replace"></xpath>
  24. </template>
  25. <!-- CSS -->
  26. <template id="style">
  27. /* Montserrat */
  28. @font-face {
  29. font-family: 'Montserrat-Regular';
  30. font-style: normal;
  31. src: local('Montserrat Regular'), url('/theme_light/static/font/Montserrat-Regular.ttf') format('truetype');
  32. }
  33. /* Roboto Regular */
  34. @font-face {
  35. font-family: 'Roboto-Regular';
  36. font-style: normal;
  37. src: local('Roboto Regular'), url('/theme_light/static/font/Roboto-Regular.ttf') format('truetype');
  38. }
  39. /* Roboto Bold */
  40. @font-face {
  41. font-family: 'Roboto-Bold';
  42. font-style: normal;
  43. src: local('Roboto Bold'), url('/theme_light/static/font/Roboto-Bold.ttf') format('truetype');
  44. }
  45. /* BEBASNEUE Bold */
  46. @font-face {
  47. font-family: 'Bebasneue-Bold';
  48. font-style: normal;
  49. src: local('Bebasneue-Bold'), url('/theme_light/static/font/BEBASNEUE_BOLD.ttf') format('truetype');
  50. }
  51. </template>
  52. <template id="theme_light.html_container">
  53. <t t-set="body_classname" t-value="'container'"/>
  54. <t t-call="theme_light.layout">
  55. <t t-raw="0"/>
  56. </t>
  57. </template>
  58. <template id="theme_light.invoice_footer">
  59. <div class="footer">
  60. <table style="width: 100%;font-size:13;color:black;font-family:Roboto-Regular;text-align:center">
  61. <tr style="height:20px;">
  62. <td/>
  63. <td/>
  64. <t t-if="company.display_logo1">
  65. <td rowspan="5" style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad" >
  66. <img t-if="company.bottom_logo1" t-att-src="'data:image/png;base64,%s' % company.bottom_logo1" style="width:98px;height:auto;padding-bottom:5px;"/>
  67. <img t-if="not company.bottom_logo1" src="/theme_light/static/img/gallery/label_fin.jpg" style="width:98px;height:auto;padding-bottom:5px;"/>
  68. </td>
  69. </t>
  70. <t t-if="company.display_logo2">
  71. <td rowspan="5" style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad" >
  72. <img t-if="company.bottom_logo2" t-att-src="'data:image/png;base64,%s' % company.bottom_logo2" style="width:162px;height:auto;padding-bottom:5px;"/>
  73. <img t-if="not company.bottom_logo2" src="/theme_light/static/img/gallery/cnc_agree.jpg" style="width:162px;height:auto;padding-bottom:5px;"/>
  74. </td>
  75. </t>
  76. </tr>
  77. <tr style="height:20px;">
  78. <td style="align: left;">
  79. <span t-field="company.rml_header1"/> -
  80. <b><span t-field="company.name"/></b>
  81. </td>
  82. <td/>
  83. <td/>
  84. <td/>
  85. </tr>
  86. <tr style="height:20px">
  87. <td style="align: left;">
  88. <span t-field="company.partner_id.street"/> -
  89. <span t-field="company.partner_id.zip"/>
  90. <span t-field="company.partner_id.city"/>
  91. </td>
  92. <td/>
  93. <td/>
  94. <td/>
  95. </tr>
  96. <tr style="height:20px">
  97. <td style="align: left;">
  98. <t t-if="company.company_registry">
  99. <span>N.Entr.</span> :
  100. <span t-field="company.company_registry"/>
  101. </t>
  102. <t t-if="company.vat">
  103. -
  104. <span>VAT Number</span> :
  105. <span t-field="company.vat"/>
  106. </t>
  107. <t t-foreach="o.company_id.bank_journal_ids" t-as="journal">
  108. <t t-set="b" t-value="journal.bank_account_id"/>
  109. <t t-if="journal.display_on_footer">
  110. -
  111. <span t-field="b.bank_name"/>
  112. <span t-field="b.acc_number"/>
  113. <span t-field="b.bank_bic"/>
  114. </t>
  115. </t>
  116. </td>
  117. <td/>
  118. <td/>
  119. <td/>
  120. </tr>
  121. </table>
  122. </div>
  123. </template>
  124. <template id="theme_light.invoice_footer_002">
  125. <div class="footer">
  126. <table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center">
  127. <tr style="height:20px;">
  128. <td width="85%"></td>
  129. <td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" >
  130. <img src="/theme_light/static/img/gallery/cnc_agree.png" style="max-height: 80px;padding-bottom:5px;"/>
  131. <div style="color :#adadad;" t-field="company.company_registry"/>
  132. </td>
  133. </tr>
  134. </table>
  135. </div>
  136. </template>
  137. <template id="theme_light.invoice_header">
  138. <div>
  139. <div class="row">
  140. <div class="col-xs-3">
  141. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="height: 113px; width: auto;"/>
  142. </div>
  143. </div>
  144. </div>
  145. </template>
  146. <template id="theme_light.invoice_layout">
  147. <!-- Multicompany -->
  148. <t t-if="o and 'company_id' in o">
  149. <t t-set="company" t-value="o.company_id"></t>
  150. </t>
  151. <t t-if="not o or not 'company_id' in o">
  152. <t t-set="company" t-value="res_company"></t>
  153. </t>
  154. <t t-raw="0" />
  155. <t t-call="theme_light.invoice_footer" />
  156. </template>
  157. <template id="theme_light.invoice_layout_002">
  158. <!-- Multicompany -->
  159. <t t-if="o and 'company_id' in o">
  160. <t t-set="company" t-value="o.company_id"></t>
  161. </t>
  162. <t t-if="not o or not 'company_id' in o">
  163. <t t-set="company" t-value="res_company"></t>
  164. </t>
  165. <t t-raw="0" />
  166. <t t-call="theme_light.invoice_footer_002" />
  167. </template>
  168. <template id="theme_light.report_footer_002">
  169. <div class="footer">
  170. <table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center">
  171. <tr style="height:20px;">
  172. <td width="90%"></td>
  173. <td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" >
  174. Page :
  175. <span class="page"/>
  176. </td>
  177. </tr>
  178. </table>
  179. </div>
  180. </template>
  181. <template id="theme_light.report_layout_002">
  182. <!-- Multicompany -->
  183. <t t-if="o and 'company_id' in o">
  184. <t t-set="company" t-value="o.company_id"></t>
  185. </t>
  186. <t t-if="not o or not 'company_id' in o">
  187. <t t-set="company" t-value="res_company"></t>
  188. </t>
  189. <t t-raw="0" />
  190. <t t-call="theme_light.report_footer_002" />
  191. </template>
  192. </data>
  193. </openerp>