presupuesto_venta_baco.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_baco"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-pdf"
  8. name="presupuesto_venta_baco.report_presupuesto_baco"
  9. file="presupuesto_venta_baco.report_presupuesto_baco"
  10. />
  11. <template id="report_header_custom" inherit_id="report.external_layout_header">
  12. <xpath expr="//div[@class='header']" position="replace">
  13. <div class ="header">
  14. </div>
  15. </xpath>
  16. </template>
  17. <template id="external_layout_footer" inherit_id="report.external_layout_footer">
  18. <xpath expr="//div[@class='footer']" position="replace">
  19. <div class ="footer">
  20. </div>
  21. </xpath>
  22. </template>
  23. <template id="report_presupuesto_baco">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <div class="page">
  27. <style type="text/css">
  28. body {
  29. font-size: 3.2mm;
  30. font-family: Arial;
  31. margin: 0; /* Elimina cualquier margen predeterminado del navegador */
  32. }
  33. div {
  34. padding: 0px;
  35. }
  36. .pagina {
  37. width: 100%; /* Deja un margen de 2 cm en cada lado */
  38. margin: 0 auto; /* Centra la página */
  39. padding: 0;
  40. padding-left: 2cm; /* Márgen izquierdo */
  41. padding-right: 1cm; /* Márgen derecho */
  42. height: 21cm; /* Ajusta la altura de la página si es necesario */
  43. }
  44. .descripcion{
  45. width: 11.2cm;
  46. font-size: 13px;
  47. padding-top: 0.5cm;
  48. float: left;
  49. min-height: 0cm;
  50. }
  51. .descripcion1{
  52. width: 11.2cm;
  53. font-size: 17px;
  54. padding-top: 0.2cm;
  55. padding-left: 0.2cm;
  56. float: left;
  57. min-height: 0cm;
  58. }
  59. .descripcion11{
  60. width: 11.2cm;
  61. font-size: 17px;
  62. padding-left: 0.2cm;
  63. padding-top: 0.1cm;
  64. float: left;
  65. min-height: 0cm;
  66. }
  67. .descripcion2{
  68. width: 13cm;
  69. padding-left: 0.2cm;
  70. font-size: 10px;
  71. float: left;
  72. min-height: 0cm;
  73. }
  74. .descripcion3{
  75. width: 15cm;
  76. font-size: 10px;
  77. padding-left: 0.2cm;
  78. float: left;
  79. min-height: 0cm;
  80. }
  81. .descripcion4{
  82. width: 15cm;
  83. font-size: 10px;
  84. padding-left: 0.2cm;
  85. float: left;
  86. min-height: 0cm;
  87. }
  88. .email{
  89. width: 13cm;
  90. font-size: 10px;
  91. padding-left: 0.2cm;
  92. float: left;
  93. min-height: 0cm;
  94. }
  95. .ciudad{
  96. width: 13cm;
  97. float: left;
  98. padding-left: 0.2cm;
  99. font-size: 10px;
  100. min-height: 0cm;
  101. }
  102. .tel{
  103. width: 13cm;
  104. float: left;
  105. padding-left: 0.2cm;
  106. font-size: 10px;
  107. min-height: 0cm;
  108. }
  109. .rucdata{
  110. width: 13cm;
  111. float: left;
  112. padding-left: 0.2cm;
  113. font-size: 10px;
  114. min-height: 0cm;
  115. }
  116. .table-condensed>tbody>tr>td {
  117. padding: 1px !important;
  118. }
  119. .divisoria{
  120. height: 0.5cm;
  121. clear: both;
  122. }
  123. .titulo{
  124. width: 19.2cm;
  125. text-align: center;
  126. width: 100%;
  127. min-height: 0.9cm;
  128. }
  129. .fecha_emision_data{
  130. width: 12.5cm;
  131. float: left;
  132. min-height: 0.5cm;
  133. }
  134. .vendor{
  135. width: 6.7cm;
  136. float: left;
  137. min-height: 0.5cm;
  138. }
  139. .razon_data{
  140. width: 12.5cm;
  141. float: left;
  142. min-height: 0.4cm;
  143. }
  144. .ruc_data{
  145. width: 6.7cm;
  146. float: left;
  147. min-height: 0.4cm;
  148. }
  149. .direccion_data{
  150. width: 19.2cm;
  151. float: left;
  152. min-height: 0.4cm;
  153. }
  154. .telefono_data{
  155. width: 19.2cm;
  156. float: left;
  157. min-height: 0.4cm;
  158. }
  159. .note{
  160. width: 19.2cm;
  161. float: left;
  162. min-height: 0.4cm;
  163. }
  164. .divisoria1{
  165. height: 0.3cm;
  166. clear: both;
  167. }
  168. .cab-articulos{
  169. height: 0.4cm;
  170. clear: both;
  171. }
  172. .articulos{
  173. height: 4.5cm;
  174. }
  175. .art-col1{
  176. width:2.3cm;
  177. text-align: center;
  178. }
  179. .art-col2{
  180. width:11.3cm;
  181. text-align: left;
  182. }
  183. .art-col3{
  184. padding-left: 0.5cm;
  185. width:3cm;
  186. text-align: right;
  187. }
  188. .art-col4{
  189. padding-left: 0.5cm;
  190. width:3cm;
  191. text-align: right;
  192. }
  193. .spad{
  194. width: 8.5cm;
  195. float: left;
  196. padding-top: 0.09cm;
  197. padding-bottom: 0.12cm;
  198. min-height: 0.4cm;
  199. }
  200. .sub_total{
  201. width: 11cm;
  202. text-align: right;
  203. padding-top: 0.09cm;
  204. padding-left: 9.5cm;
  205. padding-bottom: 0.12cm;
  206. min-height: 0.4cm;
  207. }
  208. .total_iva{
  209. width: 11cm;
  210. text-align: right;
  211. padding-top: 0.09cm;
  212. padding-left: 9.5cm;
  213. padding-bottom: 0.12cm;
  214. min-height: 0.4cm;
  215. }
  216. .total_total{
  217. width: 11cm;
  218. text-align: right;
  219. padding-top: 0.09cm;
  220. padding-left: 9.5cm;
  221. padding-bottom: 0.12cm;
  222. min-height: 0.4cm;
  223. }
  224. .total_pagar_data{
  225. width: 19.2cm;
  226. float: left;
  227. min-height: 0.4cm;
  228. }
  229. .logo1{
  230. height: 2cm;
  231. width: 100%;
  232. top: 0px;
  233. }
  234. </style>
  235. <t t-foreach="docs" t-as="o">
  236. <div class="pagina">
  237. <div class="col-xs-12" style="font-size: 11px; padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  238. <strong t-if="o.partner_shipping_id == o.partner_invoice_id">Dirección de facturación y de envío:</strong>
  239. <strong t-if="o.partner_shipping_id != o.partner_invoice_id">Dirección de facturación:</strong>
  240. <div t-field="o.partner_invoice_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: true}"/>
  241. <p t-if="o.partner_id.vat">RUC: <span t-field="o.partner_id.ruc"/></p>
  242. <div t-if="o.partner_shipping_id != o.partner_invoice_id" class="mt8">
  243. <strong>Dirección de envío:</strong>
  244. <div t-field="o.partner_shipping_id" t-field-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;, &quot;fax&quot;], &quot;no_marker&quot;: true}"/>
  245. <p t-if="o.partner_id.ruc">RUC: <span t-field="o.partner_id.ruc"/></p>
  246. </div>
  247. </div>
  248. <div class="col-xs-12" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  249. <h4>
  250. <center>
  251. <span t-if="o.state not in ['draft','sent']">PEDIDO N° </span>
  252. <span t-if="o.state in ['draft','sent']">PRESUPUESTO N° </span>
  253. <span t-field="o.name"/>
  254. </center>
  255. </h4>
  256. </div>
  257. <div t-if="o.date_order" class="col-xs-12" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  258. <strong t-if="o.state not in ['draft','sent']">Fecha de Pedido:</strong>
  259. <strong t-if="o.state in ['draft','sent']">Fecha de Presupuesto:</strong>
  260. <p t-field="o.date_order"/>
  261. </div>
  262. <div t-if="o.user_id.name" class="col-xs-12" style="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  263. <strong>Usuario:</strong>
  264. <p t-field="o.user_id.name"/>
  265. </div>
  266. <!-- <div class="divisoria1"> </div> -->
  267. <table style="border-collapse: collapse; width: 100%;" class="product">
  268. <tr>
  269. <th style="padding: 0.2cm; width:10%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Cant.</th>
  270. <th style="padding: 0.2cm; width:55%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Descripción</th>
  271. <th style="padding: 0.2cm; width:15%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Precio Unit.</th>
  272. <th style="padding: 0.2cm; width:20%; border-collapse: collapse; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;" class="text-center">Sub Total</th>
  273. </tr>
  274. </table>
  275. <!-- <div style="height: 7.5cm;border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"> -->
  276. <table style="border-collapse: collapse; width: 100%; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  277. <tr t-foreach="o.order_line" t-as="l">
  278. <td style="text-align: center; padding: 0.1cm; width: 10%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.product_uom_qty)"/></td>
  279. <td style="text-align: left; padding: 0.1cm; width:55%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-field="l.product_id.name"/></td>
  280. <td style="text-align: right; padding: 0.1cm; width:15%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  281. <td style="text-align: right; padding: 0.1cm; width:20%; border-collapse: collapse; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;"><span t-esc="'{0:,.0f}'.format((l.product_uom_qty * l.price_unit))"/></td>
  282. </tr>
  283. <!-- Inserta más filas aquí -->
  284. </table>
  285. <!-- </div> -->
  286. <div class="divisoria"> </div>
  287. <div class="row">
  288. <div class="col-xs-4 pull-right">
  289. <table class="table table-condensed">
  290. <tr class="border-black">
  291. <td><strong>Sub Total:</strong></td>
  292. <td class="text-right">
  293. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  294. </td>
  295. </tr>
  296. <tr>
  297. <td>Total IVA:</td>
  298. <td class="text-right">
  299. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  300. </td>
  301. </tr>
  302. <tr class="border-black">
  303. <td><strong>Total</strong></td>
  304. <td class="text-right">
  305. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  306. </td>
  307. </tr>
  308. </table>
  309. </div>
  310. </div>
  311. <div class="divisoria"> </div>
  312. <p t-field="o.note"/>
  313. <p t-if="o.payment_term.note">
  314. <strong>Payment Term:</strong>
  315. <span t-field="o.payment_term.note"/>
  316. </p>
  317. </div>
  318. </t>
  319. </div>
  320. </t>
  321. </t>
  322. </template>
  323. </data>
  324. </openerp>