print_stock_transfer.xml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="print_stock_transfer"
  5. model="stock.warehouse.transfer"
  6. string="Transferencia de Productos"
  7. report_type="qweb-html"
  8. name="print_stock_transfer.report_stock_transfer"
  9. file="print_stock_transfer.report_stock_transfer"
  10. />
  11. <template id="report_stock_transfer">
  12. <t t-call="report.html_container">
  13. <!-- <t t-call="report.external_layout"> -->
  14. <t t-foreach="[1]" t-as="i">
  15. <div class="page">
  16. <style type="text/css">
  17. body{
  18. font-size: 3mm;
  19. font-family: Arial;
  20. }
  21. div{
  22. padding: 0px;
  23. }
  24. .pagina{
  25. width:19.3cm;
  26. }
  27. .descripcion1{
  28. width: 11.2cm;
  29. font-size: 13px;
  30. padding-top: 0.2cm;
  31. float: left;
  32. min-height: 0cm;
  33. }
  34. .email{
  35. width: 13cm;
  36. font-size: 10px;
  37. float: left;
  38. min-height: 0cm;
  39. }
  40. .ciudad{
  41. width: 13cm;
  42. float: left;
  43. font-size: 10px;
  44. min-height: 0cm;
  45. }
  46. .tel{
  47. width: 11cm;
  48. float: left;
  49. font-size: 10px;
  50. min-height: 0cm;
  51. }
  52. .table-condensed>tbody>tr>td {
  53. padding: 1px !important;
  54. }
  55. .divisoria{
  56. height: 0.2cm;
  57. clear: both;
  58. }
  59. .fecha_emision_data{
  60. width: 11.5cm;
  61. float: left;
  62. min-height: 0.5cm;
  63. }
  64. .contado_x{
  65. width: 1.8cm;
  66. float: left;
  67. padding-left: 9cm;
  68. min-height: 0.5cm;
  69. }
  70. .credito_x{
  71. width: 1.8cm;
  72. float: left;
  73. padding-left: 1.6cm;
  74. min-height: 0.5cm;
  75. }
  76. .linea2{
  77. position: relative;
  78. top: -0.12cm;
  79. min-height: 0.5cm;
  80. }
  81. .razon_data{
  82. width: 10cm;
  83. float: left;
  84. min-height: 0.4cm;
  85. }
  86. .ruc_data{
  87. width: 10cm;
  88. float: left;
  89. min-height: 0.5cm;
  90. }
  91. .linea3{
  92. position: relative;
  93. top: -0.12cm;
  94. min-height: 0.3cm;
  95. }
  96. .direccion_data{
  97. width: 14cm;
  98. float: left;
  99. min-height: 0.4cm;
  100. }
  101. .linea4{
  102. position: relative;
  103. top: -0.12cm;
  104. min-height: 0.3cm;
  105. }
  106. .telefono_data{
  107. width: 10cm;
  108. float: left;
  109. min-height: 0.4cm;
  110. }
  111. .nota_remision_data{
  112. width: 8cm;
  113. float: left;
  114. min-height: 0.4cm;
  115. }
  116. .cab-articulos{
  117. height: 0.4cm;
  118. clear: both;
  119. }
  120. .articulos{
  121. height: 4.5cm;
  122. }
  123. .art-col1{
  124. width:0.4cm;
  125. text-align: center;
  126. }
  127. .art-col2{
  128. padding-left: 0.7cm;
  129. width:1cm;
  130. text-align: center;
  131. }
  132. .art-col3{
  133. padding-left: 0.3cm;
  134. width:9cm;
  135. }
  136. .art-col4{
  137. width:0.9cm;
  138. text-align: right;
  139. }
  140. .art-col5{
  141. width:2.8cm;
  142. text-align: right;
  143. }
  144. .art-col6{
  145. width:2.7cm;
  146. text-align: right;
  147. }
  148. .art-col7{
  149. width:1.5cm;
  150. text-align: right;
  151. }
  152. .logo1{
  153. height: 2cm;
  154. width: 100%;
  155. top: 0px;
  156. }
  157. </style>
  158. <t t-set="total_qty" t-value="0"/>
  159. <t t-foreach="docs" t-as="o">
  160. <div class="pagina">
  161. <div class="logo1"> </div>
  162. <div style="border:0.3px solid #000;"></div>
  163. <div class="divisoria"> </div>
  164. <h3><strong>TRANSFERENCIA DE PRODUCTOS</strong></h3>
  165. <div class="divisoria"> </div>
  166. <div class="divisoria"> </div>
  167. <div class="linea3">
  168. <div class="fecha_emision_data"><b>Fecha de Transferencia: </b><span t-field="o.date"/></div>
  169. </div>
  170. <div class="linea2">
  171. <div class="razon_data"><b>Sucursal de Origen: </b><span t-field="o.source_warehouse"/></div>
  172. <div class="ruc_data"><b>Sucursal de Destino: </b><span t-field="o.dest_warehouse"/></div>
  173. </div>
  174. <div class="linea3">
  175. <div class="direccion_data"><b>Referencia: </b><span t-field="o.name"/></div>
  176. </div>
  177. <table class="table table-condensed table-bordered">
  178. <thead>
  179. <tr>
  180. <th class="text-center">EAN13</th>
  181. <th class="text-center">Descripción</th>
  182. <th class="text-center">Cantidad</th>
  183. </tr>
  184. </thead>
  185. <tbody class="sale_tbody">
  186. <tr t-foreach="o.lines" t-as="l">
  187. <td>
  188. <span t-field="l.ean13"/>
  189. </td>
  190. <td>
  191. <span t-field="l.product_id"/>
  192. </td>
  193. <td class="text-right">
  194. <span t-esc="'%.0f'%l.product_qty"/>
  195. <t t-set="total_qty" t-value="total_qty + l.product_qty"/>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td class="text-center"><strong>Total</strong></td>
  200. <td class="text-right">
  201. <strong><span t-esc="'%.0f'%total_qty"/></strong>
  202. </td>
  203. </tr>
  204. </tbody>
  205. </table>
  206. </div>
  207. </t>
  208. </div>
  209. </t>
  210. <!-- </t> -->
  211. </t>
  212. </template>
  213. </data>
  214. </openerp>