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.

204 lines
7.6 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 src="/theme_light/static/img/gallery/label_fin.jpg" style="width:98px;height:auto;padding-bottom:5px;"/>
  67. </td>
  68. </t>
  69. <t t-if="company.display_logo2">
  70. <td rowspan="5" style="padding-left:15px;text-align:center;width:135px;border-left:1px solid #adadad" >
  71. <img 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. <span t-field="company.rml_header1"/> -
  78. <b><span t-field="company.name"/></b>
  79. </td>
  80. <td/>
  81. <td/>
  82. <td/>
  83. </tr>
  84. <tr style="height:20px">
  85. <td style="align: left;">
  86. <span t-field="company.partner_id.street"/> -
  87. <span t-field="company.partner_id.zip"/>
  88. <span t-field="company.partner_id.city"/>
  89. </td>
  90. <td/>
  91. <td/>
  92. <td/>
  93. </tr>
  94. <tr style="height:20px">
  95. <td style="align: left;">
  96. <t t-if="company.company_registry">
  97. <span>N.Entr.</span> :
  98. <span t-field="company.company_registry"/>
  99. </t>
  100. <t t-if="company.vat">
  101. -
  102. <span>VAT Number</span> :
  103. <span t-field="company.vat"/>
  104. </t>
  105. <t t-foreach="o.company_id.bank_journal_ids" t-as="journal">
  106. <t t-set="b" t-value="journal.bank_account_id"/>
  107. <t t-if="journal.display_on_footer">
  108. -
  109. <span t-field="b.bank_name"/>
  110. <span t-field="b.acc_number"/>
  111. <span t-field="b.bank_bic"/>
  112. </t>
  113. </t>
  114. </td>
  115. <td/>
  116. <td/>
  117. <td/>
  118. </tr>
  119. </table>
  120. </div>
  121. </template>
  122. <template id="theme_light.invoice_footer_002">
  123. <div class="footer">
  124. <table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center">
  125. <tr style="height:20px;">
  126. <td width="85%"></td>
  127. <td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" >
  128. <img src="/theme_light/static/img/gallery/cnc_agree.png" style="max-height: 80px;padding-bottom:5px;"/>
  129. <div style="color :#adadad;" t-field="company.company_registry"/>
  130. </td>
  131. </tr>
  132. </table>
  133. </div>
  134. </template>
  135. <template id="theme_light.invoice_header">
  136. <div>
  137. <div class="row">
  138. <div class="col-xs-3">
  139. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="height: 113px; width: auto;"/>
  140. </div>
  141. </div>
  142. </div>
  143. </template>
  144. <template id="theme_light.invoice_layout">
  145. <!-- Multicompany -->
  146. <t t-if="o and 'company_id' in o">
  147. <t t-set="company" t-value="o.company_id"></t>
  148. </t>
  149. <t t-if="not o or not 'company_id' in o">
  150. <t t-set="company" t-value="res_company"></t>
  151. </t>
  152. <t t-raw="0" />
  153. <t t-call="theme_light.invoice_footer" />
  154. </template>
  155. <template id="theme_light.invoice_layout_002">
  156. <!-- Multicompany -->
  157. <t t-if="o and 'company_id' in o">
  158. <t t-set="company" t-value="o.company_id"></t>
  159. </t>
  160. <t t-if="not o or not 'company_id' in o">
  161. <t t-set="company" t-value="res_company"></t>
  162. </t>
  163. <t t-raw="0" />
  164. <t t-call="theme_light.invoice_footer_002" />
  165. </template>
  166. <template id="theme_light.report_footer_002">
  167. <div class="footer">
  168. <table style="width: 100%;font-size:13;color :black;font-family:Montserrat-Regular;text-align:center">
  169. <tr style="height:20px;">
  170. <td width="90%"></td>
  171. <td rowspan="5" style="padding-left:15px;text-align:center;width:260px;border-left:1px solid #adadad" >
  172. Page :
  173. <span class="page"/>
  174. </td>
  175. </tr>
  176. </table>
  177. </div>
  178. </template>
  179. <template id="theme_light.report_layout_002">
  180. <!-- Multicompany -->
  181. <t t-if="o and 'company_id' in o">
  182. <t t-set="company" t-value="o.company_id"></t>
  183. </t>
  184. <t t-if="not o or not 'company_id' in o">
  185. <t t-set="company" t-value="res_company"></t>
  186. </t>
  187. <t t-raw="0" />
  188. <t t-call="theme_light.report_footer_002" />
  189. </template>
  190. </data>
  191. </openerp>