factura_venta_mocona.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_mocona"
  5. model="sale.order"
  6. string="Presupuesto de Venta"
  7. report_type="qweb-html"
  8. name="factura_comun_mocona.report_presupuesto_mocona"
  9. file="factura_comun_mocona.report_presupuesto_mocona"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">Hoja mocona</field>
  13. <field name="default" eval="True" />
  14. <field name="format">custom</field>
  15. <field name="page_height">210</field>
  16. <field name="page_width">297</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">11</field>
  19. <field name="margin_bottom">3</field>
  20. <field name="margin_left">2</field>
  21. <field name="margin_right">1</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">3</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_comun_mocona.factura_venta_mocona" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_comun_mocona.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_presupuesto_mocona">
  30. <t t-call="report.html_container">
  31. <t t-foreach="[1]" t-as="i">
  32. <div class="page">
  33. <style type="text/css">
  34. body{
  35. font-size: 3mm;
  36. font-family: Arial;
  37. }
  38. div{
  39. padding: 0px;
  40. }
  41. .pagina{
  42. width:19.3cm;
  43. }
  44. .cabecera{
  45. width:6cm;
  46. width: 100%;
  47. }
  48. .descripcion{
  49. width: 0.3cm;
  50. font-size: 13px;
  51. padding-top: 0.2cm;
  52. float: left;
  53. min-height: 0cm;
  54. }
  55. .descripcion1{
  56. width: 11.2cm;
  57. font-size: 13px;
  58. padding-top: 0.2cm;
  59. float: left;
  60. min-height: 0cm;
  61. }
  62. .descripcion2{
  63. width: 13cm;
  64. font-size: 10px;
  65. float: left;
  66. min-height: 0cm;
  67. }
  68. .descripcion3{
  69. width: 15cm;
  70. font-size: 10px;
  71. float: left;
  72. min-height: 0cm;
  73. }
  74. .descripcion4{
  75. width: 15cm;
  76. font-size: 10px;
  77. float: left;
  78. min-height: 0cm;
  79. }
  80. .email{
  81. width: 13cm;
  82. font-size: 10px;
  83. float: left;
  84. min-height: 0cm;
  85. }
  86. .ciudad{
  87. width: 13cm;
  88. float: left;
  89. font-size: 10px;
  90. min-height: 0cm;
  91. }
  92. .tel{
  93. width: 13cm;
  94. float: left;
  95. font-size: 10px;
  96. min-height: 0cm;
  97. }
  98. .table-condensed>tbody>tr>td {
  99. padding: 1px !important;
  100. }
  101. .divisoria{
  102. height: 0.5cm;
  103. clear: both;
  104. }
  105. .linea{
  106. position: relative;
  107. top: -0.12cm;
  108. min-height: 0.4cm;
  109. }
  110. .presu_name{
  111. width: 14cm;
  112. float: left;
  113. padding-left: 9.9cm;
  114. min-height: 0.5cm;
  115. }
  116. .fecha_emision_data{
  117. width: 11.5cm;
  118. float: left;
  119. min-height: 0.5cm;
  120. }
  121. .contado_x{
  122. width: 1.8cm;
  123. float: left;
  124. padding-left: 9cm;
  125. min-height: 0.5cm;
  126. }
  127. .credito_x{
  128. width: 1.8cm;
  129. float: left;
  130. padding-left: 1.6cm;
  131. min-height: 0.5cm;
  132. }
  133. .linea2{
  134. position: relative;
  135. top: -0.12cm;
  136. min-height: 0.5cm;
  137. }
  138. .razon_data{
  139. width: 12cm;
  140. float: left;
  141. min-height: 0.4cm;
  142. }
  143. .ruc_data{
  144. width: 5cm;
  145. float: left;
  146. min-height: 0.5cm;
  147. }
  148. .linea3{
  149. position: relative;
  150. top: -0.12cm;
  151. min-height: 0.3cm;
  152. }
  153. .direccion_data{
  154. width: 14cm;
  155. float: left;
  156. min-height: 0.4cm;
  157. }
  158. .linea4{
  159. position: relative;
  160. top: -0.12cm;
  161. min-height: 0.3cm;
  162. }
  163. .telefono_data{
  164. width: 7cm;
  165. float: left;
  166. min-height: 0.4cm;
  167. }
  168. .origin{
  169. width: 6cm;
  170. float: left;
  171. min-height: 0.4cm;
  172. }
  173. .referencia{
  174. width: 7cm;
  175. float: left;
  176. min-height: 0.4cm;
  177. }
  178. .cab-articulos{
  179. height: 0.4cm;
  180. clear: both;
  181. }
  182. .articulos{
  183. height: 4.5cm;
  184. }
  185. .art-col1{
  186. width:0.4cm;
  187. text-align: center;
  188. }
  189. .art-col2{
  190. padding-left: 0.8cm;
  191. width:1cm;
  192. text-align: center;
  193. }
  194. .art-col3{
  195. padding-left: 0.3cm;
  196. width:9cm;
  197. }
  198. .art-col4{
  199. width:2.8cm;
  200. text-align: right;
  201. }
  202. .art-col5{
  203. width:2.7cm;
  204. text-align: right;
  205. }
  206. .logo1{
  207. height: 2cm;
  208. width: 100%;
  209. top: 0px;
  210. }
  211. </style>
  212. <t t-foreach="docs" t-as="o">
  213. <div class="pagina">
  214. <div class="cabecera"> </div>
  215. <div class="divisoria"> </div>
  216. <div class="row">
  217. <div class="col-xs-6">
  218. <center>
  219. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 250px;max-width: 80px;"/>
  220. </center>
  221. </div>
  222. <div class="col-xs-6">
  223. <tr>
  224. <div class="descripcion">
  225. </div>
  226. </tr>
  227. <tr>
  228. <div class="descripcion1"><b><i>DENTAL MOCONÁ</i></b></div>
  229. </tr>
  230. <tr>
  231. <div class="descripcion2"><b></b></div>
  232. </tr>
  233. <tr>
  234. <div class="descripcion3"><b></b></div>
  235. </tr>
  236. <tr>
  237. <div class="descripcion4"><b>Avda. Cabred 1053</b></div>
  238. </tr>
  239. <tr>
  240. <div class="email"><b>Posadas - Misiones</b></div>
  241. </tr>
  242. <tr>
  243. <div class="ciudad"><b>info@dentalmocona.com</b></div>
  244. </tr>
  245. <tr>
  246. <div class="tel"><b>Contacto: 376-4427292 / 376-4635372</b></div>
  247. </tr>
  248. <tr>
  249. <div class="rucdata1"><b></b></div>
  250. </tr>
  251. </div>
  252. </div>
  253. <div class="divisoria"> </div>
  254. <!-- <div style="border:0.3px solid #000;"></div> -->
  255. <div class="divisoria"> </div>
  256. <div class="linea">
  257. <div class="presu_name"><b>PRESUPUESTO N°: </b><span t-field="o.name"/></div>
  258. </div>
  259. <div class="linea3">
  260. <div class="fecha_emision_data"><b>Fecha de Presupuesto: </b><span t-field="o.create_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  261. </div>
  262. <div class="linea2">
  263. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  264. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  265. </div>
  266. <div class="linea3">
  267. <div class="direccion_data">
  268. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  269. <t t-f="not o.partner_id.street"> </t>
  270. </div>
  271. </div>
  272. <div class="linea4">
  273. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  274. </div>
  275. <table class="table table-condensed table-bordered">
  276. <thead>
  277. <tr>
  278. <th class="art-col1">Código</th>
  279. <th class="art-col2">Cantidad</th>
  280. <th class="art-col3">Descripción</th>
  281. <th class="art-col4">Prec. Unitario</th>
  282. <th class="art-col5">Sub Total</th>
  283. </tr>
  284. </thead>
  285. <tbody class="sale_tbody">
  286. <tr t-foreach="o.order_line" t-as="l">
  287. <td class="art-col1">
  288. <span t-field="l.product_id.default_code"/>
  289. </td>
  290. <td class="art-col2">
  291. <span t-esc="'%.0f'%l.product_uom_qty"/>
  292. </td>
  293. <td class="art-col3">
  294. <span t-field="l.product_id.name"/>
  295. </td>
  296. <td class="art-col4">
  297. <t t-if="o.currency_id.id == 166">
  298. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  299. </t>
  300. <t t-if="o.currency_id.id != 166">
  301. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  302. </t>
  303. </td>
  304. <td class="art-col5">
  305. <t t-if="o.currency_id.id == 166">
  306. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.product_uom_qty)"/>
  307. </t>
  308. <t t-if="o.currency_id.id != 166">
  309. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.product_uom_qty)"/>
  310. </t>
  311. </td>
  312. </tr>
  313. </tbody>
  314. </table>
  315. <div class="row">
  316. <div class="col-xs-4 pull-right">
  317. <table class="table table-condensed">
  318. <tr class="border-black">
  319. <td><strong>Total s/ IVA</strong></td>
  320. <td class="text-right">
  321. <t t-if="o.currency_id.id == 166">
  322. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  323. </t>
  324. <t t-if="o.currency_id.id != 166">
  325. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  326. </t>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td>IVA</td>
  331. <td class="text-right">
  332. <t t-if="o.currency_id.id == 166">
  333. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  334. </t>
  335. <t t-if="o.currency_id.id != 166">
  336. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  337. </t>
  338. </td>
  339. </tr>
  340. <tr class="border-black">
  341. <td><strong>Total</strong></td>
  342. <td class="text-right">
  343. <t t-if="o.currency_id.id == 166">
  344. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  345. </t>
  346. <t t-if="o.currency_id.id != 166">
  347. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  348. </t>
  349. </td>
  350. </tr>
  351. </table>
  352. </div>
  353. </div>
  354. </div>
  355. <!-- <div class="logo1"> </div> -->
  356. </t>
  357. </div>
  358. </t>
  359. </t>
  360. </template>
  361. </data>
  362. </openerp>