factura_venta_novotempo.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_novotempo"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_novotempo.report_facturaventa_novotempo"
  9. file="factura_comun_novotempo.report_facturaventa_novotempo"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">European A4 low margin</field>
  13. <field name="default" eval="True" />
  14. <field name="format">A4</field>
  15. <field name="page_height">0</field>
  16. <field name="page_width">0</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">0</field>
  19. <field name="margin_bottom">1</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">2</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">0</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_comun_novotempo.factura_venta_novotempo" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_comun_novotempo.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_facturaventa_novotempo">
  30. <t t-call="report.html_container">
  31. <!-- <t t-foreach="[1,2]" t-as="i"> -->
  32. <div class="page">
  33. <style type="text/css">
  34. body{
  35. font-size: 3.6mm;
  36. font-family: Arial;
  37. }
  38. body1{
  39. font-size: 4.3mm;
  40. font-family: Arial;
  41. }
  42. div{
  43. padding: 0px;
  44. }
  45. .pagina{
  46. width:19.3cm;
  47. padding-left: 2cm;
  48. padding-right: 1cm;
  49. height: 15cm;
  50. }
  51. .descripcion1{
  52. width: 11.2cm;
  53. font-size: 13px;
  54. padding-top: 0.5cm;
  55. float: left;
  56. min-height: 0.7cm;
  57. }
  58. .descripcion2{
  59. width: 13cm;
  60. font-size: 11px;
  61. float: left;
  62. min-height: 0cm;
  63. }
  64. .descripcion3{
  65. width: 15cm;
  66. font-size: 11px;
  67. float: left;
  68. min-height: 0cm;
  69. }
  70. .descripcion4{
  71. width: 15cm;
  72. font-size: 11px;
  73. float: left;
  74. min-height: 0.3cm;
  75. }
  76. .email{
  77. width: 13cm;
  78. font-size: 11px;
  79. float: left;
  80. min-height: 0.3cm;
  81. }
  82. .tel{
  83. width: 13cm;
  84. font-size: 11px;
  85. float: left;
  86. min-height: 0.3cm;
  87. }
  88. .rucdata1{
  89. width: 13cm;
  90. font-size: 11px;
  91. float: left;
  92. min-height: 0.3cm;
  93. }
  94. .table-condensed>tbody>tr>td {
  95. padding: 1px !important;
  96. }
  97. .divisoria{
  98. height: 0.5cm;
  99. clear: both;
  100. }
  101. .linea1{
  102. position: relative;
  103. top: -0.12cm;
  104. min-height: 0.5cm;
  105. }
  106. .fecha_emision_data{
  107. width: 8.5cm;
  108. float: left;
  109. min-height: 0.5cm;
  110. }
  111. .number{
  112. width: 7cm;
  113. float: left;
  114. padding-left: 0.2cm;
  115. min-height: 0.5cm;
  116. }
  117. .linea2{
  118. position: relative;
  119. top: -0.12cm;
  120. min-height: 0.5cm;
  121. }
  122. .razon_data{
  123. width: 12cm;
  124. float: left;
  125. min-height: 0.4cm;
  126. }
  127. .linea3{
  128. position: relative;
  129. top: -0.12cm;
  130. min-height: 0.3cm;
  131. }
  132. .vendor{
  133. width: 5cm;
  134. float: left;
  135. min-height: 0.4cm;
  136. }
  137. .contado_x{
  138. width: 8.0cm;
  139. float: left;
  140. min-height: 0.4cm;
  141. }
  142. .cab-articulos{
  143. height: 0.4cm;
  144. clear: both;
  145. }
  146. .articulos{
  147. height: 4.5cm;
  148. width: 14cm;
  149. }
  150. .art-col1{
  151. width:1.9cm;
  152. font-size: 3.0mm;
  153. text-align: center;
  154. }
  155. .art-col2{
  156. padding-left: 0.3cm;
  157. font-size: 3.0mm;
  158. width:12cm;
  159. }
  160. .art-col3{
  161. padding-left: 0.3cm;
  162. font-size: 3.0mm;
  163. text-align: right;
  164. width:3cm;
  165. }
  166. .art-col4{
  167. width:3.4cm;
  168. font-size: 3.0mm;
  169. text-align: right;
  170. }
  171. .art-col5{
  172. width:3.4cm;
  173. font-size: 3.0mm;
  174. text-align: right;
  175. }
  176. .logo1{
  177. height: 2cm;
  178. width: 100%;
  179. top: 0px;
  180. }
  181. </style>
  182. <t t-foreach="docs" t-as="o">
  183. <div class="pagina">
  184. <div class="divisoria"> </div>
  185. <div style="border:0.3px solid #000;"></div>
  186. <div class="divisoria"> </div>
  187. <div class="row">
  188. <div class="col-xs-6">
  189. <tr>
  190. <div class="descripcion">
  191. </div>
  192. </tr>
  193. <tr>
  194. <div class="descripcion1"><b>NOVOTEMPO</b></div>
  195. </tr>
  196. <tr>
  197. <div class="descripcion2"><b></b></div>
  198. </tr>
  199. <tr>
  200. <div class="descripcion3"><b></b></div>
  201. </tr>
  202. <tr>
  203. <div class="descripcion4"><b></b></div>
  204. </tr>
  205. <tr>
  206. <div class="email"><b>Avda Cap. del Puerto c/ Acaray</b></div>
  207. </tr>
  208. <tr>
  209. <div class="tel"><b>Ciudad del Este - Paraguay</b></div>
  210. </tr>
  211. <tr>
  212. <div class="rucdata1"><b>(0994)827 661</b></div>
  213. </tr>
  214. </div>
  215. </div>
  216. <div class="divisoria"> </div>
  217. <div style="border:0.3px solid #000;"></div>
  218. <div class="divisoria"> </div>
  219. <div class="linea1">
  220. <div class="fecha_emision_data"><b>FECHA: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  221. <div class="number"><strong>REF. VENTA: </strong><span t-field="o.name"/></div>
  222. </div>
  223. <div class="linea2">
  224. <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
  225. </div>
  226. <div class="linea3">
  227. <div class="vendor"><b>VENDEDOR: </b><span t-field="o.user_id"/></div>
  228. <div class="contado_x"><b>FORMA DE PAGO: </b><t t-if="o.contado == True">Contado</t><t t-if="o.contado == False">Crédito</t></div>
  229. </div>
  230. <div class="divisoria"> </div>
  231. <div style="border:0.3px solid #000;"></div>
  232. <div class="divisoria"> </div>
  233. <table class="table table-condensed table-bordered">
  234. <thead>
  235. <tr>
  236. <th class="art-col1">CODIGO</th>
  237. <th class="art-col2">DESCRIPCION</th>
  238. <th class="art-col3">CANT.</th>
  239. <th class="art-col4">P. UNIT </th>
  240. <th class="art-col5">SUBTOTAL</th>
  241. </tr>
  242. </thead>
  243. <tbody class="sale_tbody">
  244. <t t-set="valor_mat" t-value="0"/>
  245. <t t-set="qty" t-value="0"/>
  246. <tr t-foreach="o.invoice_line" t-as="l">
  247. <td class="art-col1">
  248. <span t-field="l.product_id.default_code"/>
  249. </td>
  250. <td class="art-col2">
  251. <span t-field="l.name"/>
  252. </td>
  253. <td class="art-col3">
  254. <span t-esc= "'{0:,.0f}'.format(int(l.quantity)).replace(',', '.')">
  255. <span t-value="qty + l.quantity"/></span>
  256. <t t-set="qty" t-value="qty + l.quantity"/>
  257. </td>
  258. <td class="art-col4">
  259. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  260. </td>
  261. <td class="art-col5">
  262. <span t-esc= "'{0:,.0f}'.format((l.quantity * l.price_unit)).replace(',', '.')">
  263. <span t-value="valor_mat+(l.quantity * l.price_unit)"/></span>
  264. <t t-set="valor_mat" t-value="valor_mat+(l.quantity * l.price_unit)"/>
  265. </td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. <div class="row">
  270. <div class="col-xs-12 pull-right">
  271. <table class="table table-condensed">
  272. <td class="art-col1"><b>Totales: </b></td>
  273. <td class="art-col2"></td>
  274. <td class="art-col3">
  275. <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
  276. </td>
  277. <td class="art-col4"></td>
  278. <td class="art-col5">
  279. <span t-esc="'{0:,.0f}'.format((valor_mat)).replace(',', '.')"></span>
  280. </td>
  281. </table>
  282. </div>
  283. </div>
  284. <div class="row">
  285. <div class="col-xs-4 pull-right">
  286. <table class="table table-condensed">
  287. <!-- <tr class="border-black">
  288. <td><strong>Total s/ IVA</strong></td>
  289. <td class="text-right">
  290. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td>IVA</td>
  295. <td class="text-right">
  296. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  297. </td>
  298. </tr> -->
  299. <tr class="border-black">
  300. <td><strong>Total</strong></td>
  301. <td class="text-right">
  302. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  303. </td>
  304. </tr>
  305. </table>
  306. </div>
  307. </div>
  308. </div>
  309. </t>
  310. </div>
  311. </t>
  312. </template>
  313. </data>
  314. </openerp>