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