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.

209 lines
8.0 KiB

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