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.

244 lines
9.7 KiB

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