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.

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