nota_remision_print.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="nota_remision"
  5. model="sale.nota.remision"
  6. string="Nota Remision"
  7. report_type="qweb-html"
  8. name="nota_remision_standard.report_nota_remision"
  9. file="nota_remision_standard.report_nota_remision"
  10. />
  11. <!-- <template id="new_external_layout"> -->
  12. <!-- Multicompany -->
  13. <!-- <t t-if="o and 'company_id' in o">
  14. <t t-set="company" t-value="o.company_id"></t>
  15. </t>
  16. <t t-if="not o or not 'company_id' in o">
  17. <t t-set="company" t-value="res_company"></t>
  18. </t> -->
  19. <!-- <t t-call="nota_remision_standard.new_external_layout_header" />
  20. <t t-raw="0" /> -->
  21. <!-- </template> -->
  22. <!-- <template id="new_external_layout_header">
  23. <div class="header">
  24. <div class="row">
  25. <div class="col-xs-8">
  26. <div>
  27. <strong><span t-field="company.partner_id" style="font-size:20px"/></strong>
  28. </div>
  29. <div t-field="company.rml_header1"/>
  30. <div>
  31. <span>R.U.C:</span>
  32. <span t-field="company.partner_id.ruc"/>
  33. </div>
  34. <div t-field="company.street"/>
  35. <div t-field="company.street2"/>
  36. <div t-field="company.state_id"/>
  37. <div t-field="company.country_id"/>
  38. </div>
  39. <div class="col-xs-4">
  40. <img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 100px; float:right"/>
  41. </div>
  42. </div>
  43. <div class="row zero_min_height">
  44. <div class="col-xs-12">
  45. <div style="border-bottom: 1px solid black;"></div>
  46. </div>
  47. </div>
  48. </div>
  49. </template> -->
  50. <template id="report_nota_remision">
  51. <t t-call="report.html_container">
  52. <!-- <t t-call="nota_remision_standard.new_external_layout"> -->
  53. <t t-foreach="docs" t-as="o">
  54. <div class="page">
  55. <style>
  56. body{
  57. font-size: 3mm;
  58. font-family: Arial, Helvetica, sans-serif;
  59. }
  60. .div_border{
  61. border: 1px solid black;
  62. padding:10px
  63. }
  64. th, td {
  65. width:150px;
  66. padding:4.8px
  67. }
  68. .logo1{
  69. height: 5.1cm;
  70. width: 100%;
  71. top: 0px;
  72. }
  73. .fecha_emision_data{
  74. width: 12.5cm;
  75. padding-left: 6.4cm;
  76. float: left;
  77. min-height: 0.9cm;
  78. }
  79. .blank_space{
  80. height:5px;
  81. }
  82. .logo5{
  83. height: 0.7cm;
  84. width: 100%;
  85. top: 0px;
  86. }
  87. .cli_nombre_label{
  88. width:3.0cm;
  89. min-height: 0.9cm;
  90. }
  91. .cli_nombre{
  92. width:3cm;
  93. min-height: 0.9cm;
  94. }
  95. .cli_ruc_label{
  96. width:1cm;
  97. min-height: 0.9cm;
  98. }
  99. .cli_ruc{
  100. width:3cm;
  101. min-height: 0.9cm;
  102. }
  103. .cli_telef_label{
  104. width:0cm;
  105. min-height: 0.2cm;
  106. }
  107. .cli_telef{
  108. width:3cm;
  109. min-height: 0.2cm;
  110. }
  111. .cli_movil_label{
  112. width:0cm;
  113. min-height: 0.2cm;
  114. }
  115. .cli_movil{
  116. width:3cm;
  117. min-height: 0.2cm;
  118. }
  119. .logo{
  120. height: 0.35cm;
  121. width: 100%;
  122. top: 0px;
  123. }
  124. .motivo_data_label{
  125. width:1.8cm;
  126. min-height: 0.7cm;
  127. }
  128. .motivo_data{
  129. width:9,5cm;
  130. float: left;
  131. padding-left: 0.8cm;
  132. min-height: 0.5cm;
  133. }
  134. .comprobante_data_label{
  135. width:0.1cm;
  136. min-height: 0.5cm;
  137. }
  138. .comprobante_data{
  139. width:2.5cm;
  140. float: left;
  141. padding-left: 0.1cm;
  142. min-height: 0.5cm;
  143. }
  144. .comprobante_label{
  145. width:0.2cm;
  146. min-height: 0.5cm;
  147. }
  148. .comprobante{
  149. width:2.6cm;
  150. padding-left: 0.4cm;
  151. min-height: 0.5cm;
  152. }
  153. .timbrado_label{
  154. width:0.5cm;
  155. min-height: 0.5cm;
  156. }
  157. .timbrado{
  158. width:2.6cm;
  159. padding-left: 0.1cm;
  160. min-height: 0.5cm;
  161. }
  162. .expedicion_label{
  163. width:1cm;
  164. min-height: 0.1cm;
  165. }
  166. .expedicion{
  167. width:2cm;
  168. padding-left: 1.5cm;
  169. min-height: 0.1cm;
  170. }
  171. .blank_space1{
  172. min-height: 0.5cm;
  173. }
  174. .fecha_inicio_label{
  175. width:3cm;
  176. min-height: 0.6cm;
  177. }
  178. .fecha_inicio{
  179. width:3cm;
  180. padding-left: 1.1cm;
  181. min-height: 0.6cm;
  182. }
  183. .fecha_termino_label{
  184. width:1.5cm;
  185. min-height: 0.6cm;
  186. }
  187. .fecha_termino{
  188. width:3cm;
  189. padding-left: 1.9cm;
  190. min-height: 0.6cm;
  191. }
  192. .direccion_partida_label{
  193. width:2cm;
  194. padding-left: 3.2cm;
  195. min-height: 0.6cm;
  196. }
  197. .direccion_partida{
  198. width:15cm;
  199. padding-left: 1.2cm;
  200. min-height: 0.6cm;
  201. }
  202. .ciudad_label{
  203. width:0.5cm;
  204. min-height: 0.6cm;
  205. }
  206. .ciudad{
  207. width:3cm;
  208. padding-left: 0.2cm;
  209. min-height: 0.6cm;
  210. }
  211. .departamento_label{
  212. width:1cm;
  213. min-height: 0.6cm;
  214. }
  215. .departamento{
  216. width:3cm;
  217. min-height: 0.6cm;
  218. }
  219. .direccion_llegada_label{
  220. width:2cm;
  221. min-height: 1.0cm;
  222. }
  223. .direccion_llegada{
  224. width:9cm;
  225. padding-left: 3.1cm;
  226. min-height: 1.0cm;
  227. }
  228. .ciudad2_label{
  229. width:1.5cm;
  230. min-height: 1.0cm;
  231. }
  232. .ciudad2{
  233. width:3cm;
  234. min-height: 1.0cm;
  235. }
  236. .departamento2_label{
  237. width:0.2cm;
  238. min-height: 1.0cm;
  239. }
  240. .departamento2{
  241. width:3cm;
  242. min-height: 1.0cm;
  243. }
  244. .km_label{
  245. width:0.1cm;
  246. min-height: 1.5cm;
  247. }
  248. .km{
  249. width:3cm;
  250. padding-left: 3.3cm;
  251. min-height: 1.5cm;
  252. }
  253. .cambio_fecha_label{
  254. width:3cm;
  255. min-height: 1.5cm;
  256. }
  257. .cambio_fecha{
  258. width:3cm;
  259. padding-left: 7.5cm;
  260. min-height: 1.5cm;
  261. }
  262. .espacio{
  263. width:1.1cm;
  264. }
  265. .motivo_cambio_label{
  266. width:3cm;
  267. min-height: 5.9cm;
  268. }
  269. .motivo_cambio{
  270. width:3cm;
  271. padding-left: 1.2cm;
  272. min-height: 5.9cm;
  273. }
  274. .espacio1{
  275. width:2.9cm;
  276. }
  277. .vehiculo_nombre_label{
  278. width:1.5cm;
  279. min-height: 1.1cm;
  280. }
  281. .vehiculo_nombre{
  282. width:3cm;
  283. padding-left: 0.5cm;
  284. min-height: 1.1cm;
  285. }
  286. .vehiculo_chapa_label{
  287. width:1cm;
  288. min-height: 1.1cm;
  289. }
  290. .vehiculo_chapa{
  291. width:3cm;
  292. padding-left: 4.8cm;
  293. min-height: 1.1cm;
  294. }
  295. .remolque_chapa_label{
  296. width:10cm;
  297. min-height: 2.8cm;
  298. }
  299. .remolque_chapa{
  300. width:3cm
  301. padding-left: 2.2cm;
  302. min-height: 2.8cm;
  303. }
  304. .conductor_nombre_label{
  305. width:3cm;
  306. min-height: 1.4cm;
  307. }
  308. .conductor_nombre{
  309. width:3cm;
  310. padding-left: 1.8cm;
  311. min-height: 1.4cm;
  312. }
  313. .conductor_ruc_label{
  314. width:2cm;
  315. min-height: 1.4cm;
  316. }
  317. .conductor_ruc{
  318. width:3cm;
  319. min-height: 1.4cm;
  320. }
  321. .conductor_direccion_label{
  322. width:3cm;
  323. min-height: 1.5cm;
  324. }
  325. .conductor_direccion{
  326. width:3cm;
  327. min-height: 1.5cm;
  328. }
  329. .cab-articulos{
  330. height: 2.2cm;
  331. padding-left: 1.4cm;
  332. width: 100%;
  333. clear: both;
  334. }
  335. .articulos{
  336. height: 4.65cm;
  337. padding-left: 1.4cm;
  338. width: 100%;
  339. }
  340. .art-col1{
  341. width:1.4cm;
  342. text-align: center;
  343. }
  344. .art-col2{
  345. padding-left: 0.7cm;
  346. width:1.2cm;
  347. text-align: center;
  348. }
  349. .art-col3{
  350. padding-left: 1cm;
  351. width:11.4cm;
  352. }
  353. </style>
  354. <div class="logo1"></div>
  355. <!-- <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2> -->
  356. <div class="fecha_emision_data"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  357. <div class="logo5"></div>
  358. <!-- <h5>1. DESTINATARIO DE LA MERCADERÍA</h5> -->
  359. <table width="100%">
  360. <tr>
  361. <td class="cli_nombre_label"></td>
  362. <td class="cli_nombre"><span t-field="o.partner_id"/></td>
  363. <td class="cli_ruc_label"> </td>
  364. <td class="cli_ruc"><span t-field="o.partner_ruc"/></td>
  365. </tr>
  366. <div class="blank_space"/>
  367. <tr>
  368. <td class="cli_telef_label"> </td>
  369. <td class="cli_telef"><span t-field="o.partner_street"/></td>
  370. <td class="cli_movil_label"> </td>
  371. <td class="cli_movil"><span t-field="o.partner_mobile"/></td>
  372. </tr>
  373. </table>
  374. <!-- </div> -->
  375. <div class="blank_space"/>
  376. <div class="logo"></div>
  377. <div class="blank_space"/>
  378. <!-- <div class="div_border"> -->
  379. <!-- <h5>3. MOTIVO DEL TRANSLADO</h5> -->
  380. <table width="100%">
  381. <tr>
  382. <td class="motivo_data_label">
  383. </td>
  384. <td class="motivo_data">
  385. <t t-if="o.is_sale">
  386. <span>Venta</span>
  387. </t>
  388. <t t-if="o.is_export">
  389. <span>Exportación</span>
  390. </t>
  391. <t t-if="o.is_consignment">
  392. <span>Consignación</span>
  393. </t>
  394. <t t-if="o.is_intertal_transfer">
  395. <span>Traslado entre locales de la misma empresa</span>
  396. </t>
  397. <t t-if="o.is_repair_transfer">
  398. <span>Traslado de Bienes para Reparación</span>
  399. </t>
  400. <t t-if="o.is_exhibition">
  401. <span>Exhibición, demostración</span>
  402. </t>
  403. <t t-if="o.is_purchase">
  404. <span>Compra</span>
  405. </t>
  406. <t t-if="o.is_import">
  407. <span>Importación</span>
  408. </t>
  409. <t t-if="o.is_return">
  410. <span>Devolución</span>
  411. </t>
  412. <t t-if="o.is_transformation_transfer">
  413. <span>Traslado de Bienes para la Transformación</span>
  414. </t>
  415. <t t-if="o.is_movil_transfer">
  416. <span>Traslado por Emisión móvil</span>
  417. </t>
  418. <t t-if="o.is_fair">
  419. <span>Participación en Ferias</span>
  420. </t>
  421. </td>
  422. <td class="comprobante_data_label"></td>
  423. <td class="comprobante_data"><span t-field="o.origin"/></td>
  424. </tr>
  425. <tr>
  426. <td class="comprobante_label"></td>
  427. <td class="comprobante"><span t-field="o.sale_voucher"/></td>
  428. <td class="timbrado_label">
  429. </td>
  430. <td class="timbrado"><span t-field="o.name"/></td>
  431. </tr>
  432. <tr>
  433. <td class="expedicion_label">
  434. </td>
  435. <td class="expedicion"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  436. </tr>
  437. </table>
  438. <!-- </div> -->
  439. <!-- <h5>2. DATOS DEL ENVÍO</h5> -->
  440. <div class="blank_space1"/>
  441. <table width="100%">
  442. <tr>
  443. <td class="fecha_inicio_label"> </td>
  444. <td class="fecha_inicio"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  445. <td class="fecha_termino_label"> </td>
  446. <!-- <td class="fecha_termino">06/09/2019</td> -->
  447. <td class="fecha_termino"><span t-field="o.finish_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  448. </tr>
  449. <tr>
  450. <div class="blank_space"/>
  451. </tr>
  452. <tr>
  453. <td class="direccion_partida_label"> </td>
  454. <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/></td>
  455. </tr>
  456. <tr></tr><tr></tr>
  457. <tr>
  458. <td class="ciudad_label"> </td>
  459. <td class="ciudad"><span t-field="o.partner_company.city"/></td>
  460. <td class="departamento_label"> </td>
  461. <td class="departamento"><span t-field="o.partner_state"/></td>
  462. </tr>
  463. <tr></tr><tr></tr>
  464. <tr>
  465. <td class="direccion_llegada_label"> </td>
  466. <td class="direccion_llegada" colspan="3"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/>, <span t-field="o.partner_id.city"/></td>
  467. </tr>
  468. <tr></tr><tr></tr>
  469. <tr>
  470. <td class="ciudad2_label"> </td>
  471. <td class="ciudad2"><span t-field="o.partner_city"/></td>
  472. <td class="departamento2_label"> </td>
  473. <td class="departamento2"><span t-field="o.partner_state"/></td>
  474. </tr>
  475. </table>
  476. <div class="blank_space"/>
  477. <table width="70%">
  478. <tr>
  479. <td class="km_label"> </td>
  480. <td class="km"><span t-field="o.obs_remision"/></td>
  481. </tr>
  482. <tr>
  483. <td class="spacio"> </td>
  484. </tr>
  485. <tr>
  486. <td class="cambio_fecha_label"> </td>
  487. <td class="cambio_fecha"><span t-field="o.obs_remision"/></td>
  488. </tr>
  489. <td class="spacio"> </td>
  490. <tr>
  491. </tr>
  492. <tr>
  493. <td class="motivo_cambio_label"> </td>
  494. <td class="motivo_cambio"><span t-field="o.obs_remision"/></td>
  495. </tr>
  496. </table>
  497. <!-- </div> -->
  498. <div class="blank_space"/>
  499. <div class="blank_space"/>
  500. <div class="blank_space"/>
  501. <div class="blank_space"/>
  502. <!-- <div class="div_border"> -->
  503. <!-- <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5> -->
  504. <!-- <table width="100%">
  505. <tr>
  506. <td class="vend_nombre_label">Nombre y Apellido: <span t-field="o.user_id"/></td>
  507. </tr>
  508. <tr>
  509. <td class="vend_telef_label">Teléfono: </td>
  510. <td class="vend_telef"><span t-field="o.user_phone"/> <span t-field="o.user_mobile"/></td>
  511. </tr>
  512. <tr>
  513. <td class="transportista_nombre_label">Nombre o Razón Social del Transportista: <span t-field="o.logistic_company_id"/></td>
  514. </tr>
  515. <tr>
  516. <td class="transportista_ruc_label">R.U.C. del transportista: <span t-field="o.logistic_ruc"/></td>
  517. </tr>
  518. </table> -->
  519. <!-- </div> -->
  520. <!-- <div class="blank_space"/> -->
  521. <!-- <div class="div_border"> -->
  522. <!-- <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5> -->
  523. <div class="spacio1"> </div>
  524. <div class="blank_space"/>
  525. <div class="blank_space"/>
  526. <table width="100%">
  527. <tr>
  528. <td class="vehiculo_nombre_label"></td>
  529. <td class="vehiculo_nombre"><span t-field="o.vehicle_name"/></td>
  530. </tr>
  531. <tr>
  532. <td class="vehiculo_chapa_label"></td>
  533. <td class="vehiculo_chapa"><span t-field="o.vehicle_plate"/></td>
  534. </tr>
  535. </table>
  536. <table width="100%">
  537. <tr>
  538. <td class="remolque_chapa_label"></td>
  539. <td class="remolque_chapa"><span t-field="o.vehicle_plate"/></td>
  540. </tr>
  541. </table>
  542. <!-- </div> -->
  543. <div class="blank_space"/>
  544. <div class="blank_space"/>
  545. <div class="blank_space"/>
  546. <div class="blank_space"/>
  547. <div class="blank_space"/>
  548. <!-- <div class="div_border"> -->
  549. <!-- <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5> -->
  550. <table width="100%">
  551. <tr>
  552. <td class="conductor_nombre_label"> </td>
  553. <td class="conductor_nombre"><span t-field="o.driver_id"/></td>
  554. <td class="conductor_ruc_label"> </td>
  555. <td class="conductor_ruc"><span t-field="o.logistic_ruc"/></td>
  556. </tr>
  557. <tr>
  558. <td class="conductor_direccion_label"></td>
  559. <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></td>
  560. </tr>
  561. </table>
  562. <!-- </div> -->
  563. <div class="cab-articulos"> </div>
  564. <div class="articulos">
  565. <table class="tab-articulos">
  566. <tr t-foreach="o.nota_line" t-as="l">
  567. <td class="art-col1"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
  568. <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
  569. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  570. </tr>
  571. </table>
  572. </div>
  573. </div>
  574. </t>
  575. <!-- </t> -->
  576. </t>
  577. </template>
  578. </data>
  579. </openerp>