nota_remision_print.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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.3cm;
  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: 1.0cm;
  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: 1cm;
  90. }
  91. .cli_nombre{
  92. width:3cm;
  93. min-height: 1cm;
  94. }
  95. .cli_ruc_label{
  96. width:2cm;
  97. min-height: 1cm;
  98. }
  99. .cli_ruc{
  100. width:3cm;
  101. min-height: 1cm;
  102. }
  103. .cli_telef_label{
  104. width:2cm;
  105. min-height: 1.8cm;
  106. }
  107. .cli_telef{
  108. width:3cm;
  109. min-height: 1.8cm;
  110. }
  111. .cli_movil_label{
  112. width:0cm;
  113. min-height: 1.8cm;
  114. }
  115. .cli_movil{
  116. width:3cm;
  117. min-height: 1.8cm;
  118. }
  119. .logo{
  120. height: 0.5cm;
  121. width: 100%;
  122. top: 0px;
  123. }
  124. .motivo_data_label{
  125. width:2.3cm;
  126. min-height: 1.0cm;
  127. }
  128. .motivo_data{
  129. width:9,5cm;
  130. padding-left: 1.2cm;
  131. min-height: 1.0cm;
  132. }
  133. .comprobante_data_label{
  134. width:0.2cm;
  135. min-height: 1.0cm;
  136. }
  137. .comprobante_data{
  138. width:3cm;
  139. float: left;
  140. padding-left: 0.2cm;
  141. min-height: 1.0cm;
  142. }
  143. .comprobante_label{
  144. width:0.2cm;
  145. min-height: 1.0cm;
  146. }
  147. .comprobante{
  148. width:3cm;
  149. padding-left: 3.2cm;
  150. min-height: 1.0cm;
  151. }
  152. .timbrado_label{
  153. width:1cm;
  154. min-height: 1.0cm;
  155. }
  156. .timbrado{
  157. width:3cm;
  158. padding-left: 0.2cm;
  159. min-height: 1.0cm;
  160. }
  161. .expedicion_label{
  162. width:1cm;
  163. min-height: 1.0cm;
  164. }
  165. .expedicion{
  166. width:2cm;
  167. padding-left: 2.5cm;
  168. min-height: 1.0cm;
  169. }
  170. .blank_space1{
  171. height:3.0px;
  172. }
  173. .fecha_inicio_label{
  174. width:3cm;
  175. min-height: 1.8cm;
  176. }
  177. .fecha_inicio{
  178. width:3cm;
  179. padding-left: 1.5cm;
  180. min-height: 1.68cm;
  181. }
  182. .fecha_termino_label{
  183. width:2cm;
  184. min-height: 1.8cm;
  185. }
  186. .fecha_termino{
  187. width:3cm;
  188. padding-left: 2.8cm;
  189. min-height: 1.8cm;
  190. }
  191. .direccion_partida_label{
  192. width:2cm;
  193. padding-left: 3.2cm;
  194. min-height: 1.3cm;
  195. }
  196. .direccion_partida{
  197. width:15cm;
  198. padding-left: 3.2cm;
  199. min-height: 1.3cm;
  200. }
  201. .ciudad_label{
  202. width:3cm;
  203. min-height: 1.3cm;
  204. }
  205. .ciudad{
  206. width:3cm;
  207. padding-left: 2.2cm;
  208. min-height: 1.3cm;
  209. }
  210. .departamento_label{
  211. width:1cm;
  212. min-height: 1.3cm;
  213. }
  214. .departamento{
  215. width:3cm;
  216. min-height: 1.3cm;
  217. }
  218. .direccion_llegada_label{
  219. width:2cm;
  220. min-height: 1.3cm;
  221. }
  222. .direccion_llegada{
  223. width:9cm;
  224. padding-left: 3.1cm;
  225. min-height: 1.3cm;
  226. }
  227. .ciudad2_label{
  228. width:3cm;
  229. min-height: 1.3cm;
  230. }
  231. .ciudad2{
  232. width:3cm;
  233. min-height: 1.3cm;
  234. }
  235. .departamento2_label{
  236. width:0.2cm;
  237. min-height: 1.3cm;
  238. }
  239. .departamento2{
  240. width:3cm;
  241. min-height: 1.3cm;
  242. }
  243. .km_label{
  244. width:0.1cm;
  245. min-height: 1.7cm;
  246. }
  247. .km{
  248. width:3cm;
  249. padding-left: 3.3cm;
  250. min-height: 1.7cm;
  251. }
  252. .cambio_fecha_label{
  253. width:3cm;
  254. min-height: 1.5cm;
  255. }
  256. .cambio_fecha{
  257. width:3cm;
  258. padding-left: 7.5cm;
  259. min-height: 1.5cm;
  260. }
  261. .espacio{
  262. width:1.1cm;
  263. }
  264. .motivo_cambio_label{
  265. width:3cm;
  266. min-height: 5.9cm;
  267. }
  268. .motivo_cambio{
  269. width:3cm;
  270. padding-left: 1.2cm;
  271. min-height: 5.9cm;
  272. }
  273. .espacio1{
  274. width:2.2cm;
  275. }
  276. .vehiculo_nombre_label{
  277. width:1.5cm;
  278. min-height: 1.2cm;
  279. }
  280. .vehiculo_nombre{
  281. width:3cm;
  282. padding-left: 0.2cm;
  283. min-height: 1.2cm;
  284. }
  285. .vehiculo_chapa_label{
  286. width:1cm;
  287. min-height: 1.2cm;
  288. }
  289. .vehiculo_chapa{
  290. width:3cm;
  291. padding-left: 4.8cm;
  292. min-height: 1.2cm;
  293. }
  294. .remolque_chapa_label{
  295. width:10cm;
  296. min-height: 4.5cm;
  297. }
  298. .remolque_chapa{
  299. width:3cm
  300. padding-left: 2.2cm;
  301. min-height: 4.5cm;
  302. }
  303. .conductor_nombre_label{
  304. width:3cm;
  305. min-height: 1.4cm;
  306. }
  307. .conductor_nombre{
  308. width:3cm;
  309. padding-left: 1.8cm;
  310. min-height: 1.4cm;
  311. }
  312. .conductor_ruc_label{
  313. width:2cm;
  314. min-height: 1.4cm;
  315. }
  316. .conductor_ruc{
  317. width:3cm;
  318. min-height: 1.4cm;
  319. }
  320. .conductor_direccion_label{
  321. width:3cm;
  322. min-height: 1.5cm;
  323. }
  324. .conductor_direccion{
  325. width:3cm;
  326. min-height: 1.5cm;
  327. }
  328. .cab-articulos{
  329. height: 2.5cm;
  330. padding-left: 1.4cm;
  331. width: 100%;
  332. clear: both;
  333. }
  334. .articulos{
  335. height: 4.65cm;
  336. padding-left: 1.4cm;
  337. width: 100%;
  338. }
  339. .art-col1{
  340. width:2.0cm;
  341. text-align: center;
  342. }
  343. .art-col2{
  344. padding-left: 0.7cm;
  345. width:1.2cm;
  346. text-align: center;
  347. }
  348. .art-col3{
  349. padding-left: 1cm;
  350. width:11.4cm;
  351. }
  352. </style>
  353. <div class="logo1"></div>
  354. <!-- <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2> -->
  355. <div class="fecha_emision_data"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  356. <div class="logo5"></div>
  357. <!-- <h5>1. DESTINATARIO DE LA MERCADERÍA</h5> -->
  358. <table width="100%">
  359. <tr>
  360. <td class="cli_nombre_label"></td>
  361. <td class="cli_nombre"><span t-field="o.partner_id"/></td>
  362. <td class="cli_ruc_label"> </td>
  363. <td class="cli_ruc"><span t-field="o.partner_ruc"/></td>
  364. </tr>
  365. <div class="blank_space"/>
  366. <tr>
  367. <td class="cli_telef_label"> </td>
  368. <td class="cli_telef"><span t-field="o.partner_street"/></td>
  369. <td class="cli_movil_label"> </td>
  370. <td class="cli_movil"><span t-field="o.partner_mobile"/></td>
  371. </tr>
  372. </table>
  373. <!-- </div> -->
  374. <div class="blank_space"/>
  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. <div class="blank_space"/>
  454. </tr>
  455. <tr>
  456. <td class="direccion_partida_label"> </td>
  457. <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/></td>
  458. </tr>
  459. <tr></tr><tr></tr>
  460. <tr>
  461. <td class="ciudad_label"> </td>
  462. <td class="ciudad"><span t-field="o.partner_company.city"/></td>
  463. <td class="departamento_label"> </td>
  464. <td class="departamento"><span t-field="o.partner_state"/></td>
  465. </tr>
  466. <tr></tr><tr></tr>
  467. <tr>
  468. <td class="direccion_llegada_label"> </td>
  469. <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>
  470. </tr>
  471. <tr></tr><tr></tr>
  472. <tr>
  473. <td class="ciudad2_label"> </td>
  474. <td class="ciudad2"><span t-field="o.partner_city"/></td>
  475. <td class="departamento2_label"> </td>
  476. <td class="departamento2"><span t-field="o.partner_state"/></td>
  477. </tr>
  478. </table>
  479. <div class="blank_space"/>
  480. <table width="70%">
  481. <tr>
  482. <td class="km_label"> </td>
  483. <td class="km"><span t-field="o.obs_remision"/></td>
  484. </tr>
  485. <tr>
  486. <td class="spacio"> </td>
  487. </tr>
  488. <tr>
  489. <td class="cambio_fecha_label"> </td>
  490. <td class="cambio_fecha"><span t-field="o.obs_remision"/></td>
  491. </tr>
  492. <td class="spacio"> </td>
  493. <tr>
  494. </tr>
  495. <tr>
  496. <td class="motivo_cambio_label"> </td>
  497. <td class="motivo_cambio"><span t-field="o.obs_remision"/></td>
  498. </tr>
  499. </table>
  500. <!-- </div> -->
  501. <div class="blank_space"/>
  502. <div class="blank_space"/>
  503. <div class="blank_space"/>
  504. <div class="blank_space"/>
  505. <!-- <div class="div_border"> -->
  506. <!-- <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5> -->
  507. <!-- <table width="100%">
  508. <tr>
  509. <td class="vend_nombre_label">Nombre y Apellido: <span t-field="o.user_id"/></td>
  510. </tr>
  511. <tr>
  512. <td class="vend_telef_label">Teléfono: </td>
  513. <td class="vend_telef"><span t-field="o.user_phone"/> <span t-field="o.user_mobile"/></td>
  514. </tr>
  515. <tr>
  516. <td class="transportista_nombre_label">Nombre o Razón Social del Transportista: <span t-field="o.logistic_company_id"/></td>
  517. </tr>
  518. <tr>
  519. <td class="transportista_ruc_label">R.U.C. del transportista: <span t-field="o.logistic_ruc"/></td>
  520. </tr>
  521. </table> -->
  522. <!-- </div> -->
  523. <!-- <div class="blank_space"/> -->
  524. <!-- <div class="div_border"> -->
  525. <!-- <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5> -->
  526. <div class="spacio1"> </div>
  527. <div class="blank_space"/>
  528. <div class="blank_space"/>
  529. <table width="100%">
  530. <tr>
  531. <td class="vehiculo_nombre_label"></td>
  532. <td class="vehiculo_nombre"><span t-field="o.vehicle_name"/></td>
  533. </tr>
  534. <tr>
  535. <td class="vehiculo_chapa_label"></td>
  536. <td class="vehiculo_chapa"><span t-field="o.vehicle_plate"/></td>
  537. </tr>
  538. </table>
  539. <table width="100%">
  540. <tr>
  541. <td class="remolque_chapa_label"></td>
  542. <td class="remolque_chapa"><span t-field="o.vehicle_plate"/></td>
  543. </tr>
  544. </table>
  545. <!-- </div> -->
  546. <div class="blank_space"/>
  547. <div class="blank_space"/>
  548. <div class="blank_space"/>
  549. <div class="blank_space"/>
  550. <div class="blank_space"/>
  551. <!-- <div class="div_border"> -->
  552. <!-- <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5> -->
  553. <table width="100%">
  554. <tr>
  555. <td class="conductor_nombre_label"> </td>
  556. <td class="conductor_nombre"><span t-field="o.driver_id"/></td>
  557. <td class="conductor_ruc_label"> </td>
  558. <td class="conductor_ruc"><span t-field="o.logistic_ruc"/></td>
  559. </tr>
  560. <tr>
  561. <td class="conductor_direccion_label"></td>
  562. <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></td>
  563. </tr>
  564. </table>
  565. <!-- </div> -->
  566. <div class="cab-articulos"> </div>
  567. <div class="articulos">
  568. <table class="tab-articulos">
  569. <tr t-foreach="o.nota_line" t-as="l">
  570. <td class="art-col1"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
  571. <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
  572. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  573. </tr>
  574. </table>
  575. </div>
  576. </div>
  577. </t>
  578. <!-- </t> -->
  579. </t>
  580. </template>
  581. </data>
  582. </openerp>