presupuesto_venta_gavilan.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="presupuesto_venta_gavilan"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="presupuesto_venta_gavilan.report_presupuesto_gavilan"
  9. file="presupuesto_venta_gavilan.report_presupuesto_gavilan"
  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_gavilan">
  24. <t t-call="report.external_layout">
  25. <div class="page">
  26. <style type="text/css">
  27. body{
  28. font-size: 3.2mm;
  29. font-family: Arial;
  30. }
  31. div{
  32. padding: 0px;
  33. }
  34. .pagina{
  35. width:19.3cm;
  36. }
  37. .descripcion{
  38. width: 11.2cm;
  39. font-size: 13px;
  40. padding-top: 0.5cm;
  41. float: left;
  42. min-height: 0cm;
  43. }
  44. .descripcion1{
  45. width: 11.2cm;
  46. font-size: 17px;
  47. padding-top: 0.2cm;
  48. float: left;
  49. min-height: 0cm;
  50. }
  51. .descripcion11{
  52. width: 11.2cm;
  53. font-size: 17px;
  54. padding-top: 0.2cm;
  55. float: left;
  56. min-height: 0cm;
  57. }
  58. .descripcion2{
  59. width: 13cm;
  60. font-size: 10px;
  61. float: left;
  62. min-height: 0cm;
  63. }
  64. .descripcion3{
  65. width: 15cm;
  66. font-size: 10px;
  67. float: left;
  68. min-height: 0cm;
  69. }
  70. .descripcion4{
  71. width: 15cm;
  72. font-size: 10px;
  73. float: left;
  74. min-height: 0cm;
  75. }
  76. .email{
  77. width: 13cm;
  78. font-size: 10px;
  79. float: left;
  80. min-height: 0cm;
  81. }
  82. .ciudad{
  83. width: 13cm;
  84. float: left;
  85. font-size: 10px;
  86. min-height: 0cm;
  87. }
  88. .tel{
  89. width: 13cm;
  90. float: left;
  91. font-size: 10px;
  92. min-height: 0cm;
  93. }
  94. .rucdata{
  95. width: 13cm;
  96. float: left;
  97. font-size: 10px;
  98. min-height: 0cm;
  99. }
  100. .table-condensed>tbody>tr>td {
  101. padding: 1px !important;
  102. }
  103. .divisoria{
  104. height: 0.9cm;
  105. clear: both;
  106. }
  107. .titulo{
  108. width: 19.2cm;
  109. text-align: center;
  110. width: 100%;
  111. min-height: 0.9cm;
  112. }
  113. .fecha_emision_data{
  114. width: 12.5cm;
  115. float: left;
  116. min-height: 0.5cm;
  117. }
  118. .vendor{
  119. width: 6.7cm;
  120. float: left;
  121. min-height: 0.5cm;
  122. }
  123. .razon_data{
  124. width: 12.5cm;
  125. float: left;
  126. min-height: 0.4cm;
  127. }
  128. .ruc_data{
  129. width: 6.7cm;
  130. float: left;
  131. min-height: 0.4cm;
  132. }
  133. .direccion_data{
  134. width: 19.2cm;
  135. float: left;
  136. min-height: 0.4cm;
  137. }
  138. .telefono_data{
  139. width: 19.2cm;
  140. float: left;
  141. min-height: 0.4cm;
  142. }
  143. .note{
  144. width: 19.2cm;
  145. float: left;
  146. min-height: 0.4cm;
  147. }
  148. .cab-articulos{
  149. height: 0.4cm;
  150. clear: both;
  151. }
  152. .articulos{
  153. height: 4.5cm;
  154. }
  155. .art-col1{
  156. width:2.3cm;
  157. text-align: center;
  158. }
  159. .art-col2{
  160. width:11.3cm;
  161. text-align: left;
  162. }
  163. .art-col3{
  164. padding-left: 0.5cm;
  165. width:3cm;
  166. text-align: right;
  167. }
  168. .art-col4{
  169. padding-left: 0.5cm;
  170. width:3cm;
  171. text-align: right;
  172. }
  173. .spad{
  174. width: 8.5cm;
  175. float: left;
  176. padding-top: 0.09cm;
  177. padding-bottom: 0.12cm;
  178. min-height: 0.4cm;
  179. }
  180. .sub_total{
  181. width: 8cm;
  182. float: left;
  183. text-align: right;
  184. padding-top: 0.09cm;
  185. font-size: 3.5mm;
  186. padding-left: 9.5cm;
  187. padding-bottom: 0.12cm;
  188. min-height: 0.4cm;
  189. }
  190. .total_iva{
  191. width: 8cm;
  192. float: left;
  193. text-align: right;
  194. padding-top: 0.09cm;
  195. font-size: 3.5mm;
  196. padding-left: 9.5cm;
  197. padding-bottom: 0.12cm;
  198. min-height: 0.4cm;
  199. }
  200. .total_total{
  201. width: 8cm;
  202. float: left;
  203. text-align: right;
  204. padding-top: 0.09cm;
  205. font-size: 3.5mm;
  206. padding-left: 9.5cm;
  207. padding-bottom: 0.12cm;
  208. min-height: 0.4cm;
  209. }
  210. .total_pagar_data{
  211. width: 19.2cm;
  212. float: left;
  213. min-height: 0.4cm;
  214. }
  215. .logo1{
  216. height: 2cm;
  217. width: 100%;
  218. top: 0px;
  219. }
  220. </style>
  221. <t t-foreach="docs" t-as="o">
  222. <div class="pagina">
  223. <div class="row">
  224. <div class="col-xs-4">
  225. <tr>
  226. <div class="descripcion">
  227. </div>
  228. </tr>
  229. <tr>
  230. <div class="descripcion1"><b><i>GAVILAN COMPANY</i></b></div>
  231. </tr>
  232. <tr>
  233. <div class="descripcion2"><b>de Prins Gavilán Mendez</b></div>
  234. </tr>
  235. <tr>
  236. <div class="descripcion11"></div>
  237. </tr>
  238. <tr>
  239. <div class="descripcion3"><b>Sistemas de promoción en medios digitales</b></div>
  240. </tr>
  241. <tr>
  242. <div class="descripcion4"><b>R.U.C. N°: 4525936-4</b></div>
  243. </tr>
  244. <tr>
  245. <div class="email"><b></b></div>
  246. </tr>
  247. <tr>
  248. <div class="ciudad"><b>Avda. Julio C. Riquelme Km.7 - Ciudad Nueva</b></div>
  249. </tr>
  250. <tr>
  251. <div class="tel"><b>Ciudad del Este - Paraguay</b></div>
  252. </tr>
  253. <tr>
  254. <div class="rucdata"><b>Teléfono: (0984) 707 850</b></div>
  255. </tr>
  256. </div>
  257. <!-- <div class="col-xs-8">
  258. <center>
  259. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 240px;max-width: 80px;"/>
  260. </center>
  261. </div> -->
  262. </div>
  263. <div class="divisoria"> </div>
  264. <h2>
  265. <center>
  266. <span>PRESUPUESTO N° </span>
  267. <span t-field="o.name"/>
  268. </center>
  269. </h2>
  270. <table class="table table-condensed table-bordered">
  271. <tr>
  272. <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
  273. <td class="vendor"><b>Vendedor: </b><span t-field="o.user_id.name"/></td>
  274. </tr>
  275. <tr>
  276. <td class="razon_data"><b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/></td>
  277. <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
  278. </tr>
  279. <tr>
  280. <td class="direccion_data"><b>Direccion: </b><span t-field="o.partner_id.street"/></td>
  281. </tr>
  282. <tr>
  283. <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
  284. </tr>
  285. <tr>
  286. <td class="note"><b>Por medio de la presente ponemos a su consideración el presente presupuesto.</b></td>
  287. </tr>
  288. </table>
  289. <div class="divisoria"> </div>
  290. <table>
  291. <thead>
  292. <tr>
  293. <th class="art-col1">Cantidad</th>
  294. <th class="art-col2">Descripción</th>
  295. <th class="art-col3">Precio Unitario</th>
  296. <th class="art-col4">Sub Total</th>
  297. </tr>
  298. </thead>
  299. <tbody class="sale_tbody">
  300. <tr t-foreach="o.order_line" t-as="l">
  301. <td class="art-col1">
  302. <span t-esc="'%.0f'%l.product_uom_qty"/>
  303. </td>
  304. <td class="art-col2">
  305. <span t-field="l.name"/>
  306. </td>
  307. <td class="art-col3">
  308. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  309. </td>
  310. <td class="art-col4">
  311. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
  312. </td>
  313. </tr>
  314. </tbody>
  315. </table>
  316. <div class="divisoria"> </div>
  317. <div class="sub_total">
  318. <strong>Sub Total: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  319. </div>
  320. <div class="total_iva">
  321. <strong>Total IVA: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  322. </div>
  323. <div class="total_total">
  324. <strong>Total: </strong> <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  325. </div>
  326. <div class="total_pagar_data">En letras: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras1)"/></div> -->
  327. <div class="divisoria"> </div>
  328. <p t-field="o.note"/>
  329. <p t-if="o.payment_term.note">
  330. <strong>Condición de Pago:</strong>
  331. <span t-field="o.payment_term.note"/>
  332. </p>
  333. <p>
  334. <strong>Plazo de Pago:</strong>
  335. <span t-field="o.payment_term.note"/>
  336. </p>
  337. <p>
  338. <strong>Garantia:</strong>
  339. <span t-field="o.payment_term.note"/>
  340. </p>
  341. <div>
  342. <center>
  343. <strong>Validez del presente presupuesto 15 días</strong>
  344. </center>
  345. </div>
  346. <div class="divisoria"> </div>
  347. <div>
  348. <center>
  349. <strong>GRACIAS POR CONFIAR EN NOSOTROS</strong>
  350. </center>
  351. </div>
  352. </div>
  353. </t>
  354. </div>
  355. </t>
  356. </template>
  357. </data>
  358. </openerp>