nota_remision_print.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  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: 4.4cm;
  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:4.0cm;
  89. min-height: 1cm;
  90. }
  91. .cli_nombre{
  92. width:3cm;
  93. min-height: 1cm;
  94. }
  95. .cli_ruc_label{
  96. width:3cm;
  97. min-height: 1cm;
  98. }
  99. .cli_ruc{
  100. width:3cm;
  101. min-height: 1cm;
  102. }
  103. .cli_telef_label{
  104. width:3cm;
  105. min-height: 1.8cm;
  106. }
  107. .cli_telef{
  108. width:3cm;
  109. min-height: 1.8cm;
  110. }
  111. .cli_movil_label{
  112. width:3cm;
  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:2cm;
  126. min-height: 1.2cm;
  127. }
  128. .motivo_data{
  129. width:11,5cm;
  130. padding-left: 1.2cm;
  131. min-height: 1.2cm;
  132. }
  133. .comprobante_data_label{
  134. width:0.5cm;
  135. min-height: 1.2cm;
  136. }
  137. .comprobante_data{
  138. width:3cm;
  139. padding-left: 0.5cm;
  140. min-height: 1.2m;
  141. }
  142. .comprobante_label{
  143. width:0.2cm;
  144. min-height: 1.2cm;
  145. }
  146. .comprobante{
  147. width:3cm;
  148. padding-left: 3.2cm;
  149. min-height: 1.0cm;
  150. }
  151. .timbrado_label{
  152. width:3cm;
  153. min-height: 1.0cm;
  154. }
  155. .timbrado{
  156. width:3cm;
  157. padding-left: 0.2cm;
  158. min-height: 1.0cm;
  159. }
  160. .expedicion_label{
  161. width:1cm;
  162. min-height: 1.0cm;
  163. }
  164. .expedicion{
  165. width:2cm;
  166. padding-left: 3.3cm;
  167. min-height: 1.0cm;
  168. }
  169. .blank_space1{
  170. height:4.0px;
  171. }
  172. .fecha_inicio_label{
  173. width:3cm;
  174. min-height: 1.8cm;
  175. }
  176. .fecha_inicio{
  177. width:3cm;
  178. padding-left: 1.8cm;
  179. min-height: 1.68cm;
  180. }
  181. .fecha_termino_label{
  182. width:3cm;
  183. min-height: 1.8cm;
  184. }
  185. .fecha_termino{
  186. width:3cm;
  187. padding-left: 3.8cm;
  188. min-height: 1.8cm;
  189. }
  190. .direccion_partida_label{
  191. width:2cm;
  192. padding-left: 3.9cm;
  193. min-height: 1.5cm;
  194. }
  195. .direccion_partida{
  196. width:15cm;
  197. padding-left: 3.2cm;
  198. min-height: 1.5cm;
  199. }
  200. .ciudad_label{
  201. width:3cm;
  202. min-height: 1.9cm;
  203. }
  204. .ciudad{
  205. width:3cm;
  206. padding-left: 2.2cm;
  207. min-height: 1.9cm;
  208. }
  209. .departamento_label{
  210. width:1cm;
  211. min-height: 1.9cm;
  212. }
  213. .departamento{
  214. width:3cm;
  215. min-height: 1.9cm;
  216. }
  217. .direccion_llegada_label{
  218. width:2cm;
  219. min-height: 1.6cm;
  220. }
  221. .direccion_llegada{
  222. width:9cm;
  223. padding-left: 4.3cm;
  224. min-height: 1.6cm;
  225. }
  226. .ciudad2_label{
  227. width:3cm;
  228. min-height: 1.6cm;
  229. }
  230. .ciudad2{
  231. width:3cm;
  232. min-height: 1.6cm;
  233. }
  234. .departamento2_label{
  235. width:0.2cm;
  236. min-height: 1.6cm;
  237. }
  238. .departamento2{
  239. width:3cm;
  240. min-height: 1.6cm;
  241. }
  242. .km_label{
  243. width:0.1cm;
  244. min-height: 1.7cm;
  245. }
  246. .km{
  247. width:3cm;
  248. padding-left: 3.3cm;
  249. min-height: 1.7cm;
  250. }
  251. .cambio_fecha_label{
  252. width:3cm;
  253. min-height: 1.5cm;
  254. }
  255. .cambio_fecha{
  256. width:3cm;
  257. padding-left: 7.5cm;
  258. min-height: 1.5cm;
  259. }
  260. .espacio{
  261. width:1.1cm;
  262. }
  263. .motivo_cambio_label{
  264. width:3cm;
  265. min-height: 5.9cm;
  266. }
  267. .motivo_cambio{
  268. width:3cm;
  269. padding-left: 1.2cm;
  270. min-height: 5.9cm;
  271. }
  272. .espacio1{
  273. width:2.1cm;
  274. }
  275. .vehiculo_nombre_label{
  276. width:1.5cm;
  277. min-height: 1.4m;
  278. }
  279. .vehiculo_nombre{
  280. width:3cm;
  281. padding-left: 0.2cm;
  282. min-height: 1.4cm;
  283. }
  284. .vehiculo_chapa_label{
  285. width:1cm;
  286. min-height: 1.4cm;
  287. }
  288. .vehiculo_chapa{
  289. width:3cm;
  290. padding-left: 4.8cm;
  291. min-height: 1.4cm;
  292. }
  293. .remolque_chapa_label{
  294. width:10cm;
  295. min-height: 4.5cm;
  296. }
  297. .remolque_chapa{
  298. width:3cm
  299. padding-left: 2.2cm;
  300. min-height: 4.5cm;
  301. }
  302. .conductor_nombre_label{
  303. width:3cm;
  304. min-height: 1.4cm;
  305. }
  306. .conductor_nombre{
  307. width:3cm;
  308. padding-left: 1.8cm;
  309. min-height: 1.4cm;
  310. }
  311. .conductor_ruc_label{
  312. width:2cm;
  313. min-height: 1.4cm;
  314. }
  315. .conductor_ruc{
  316. width:3cm;
  317. min-height: 1.4cm;
  318. }
  319. .conductor_direccion_label{
  320. width:3cm;
  321. min-height: 1.5cm;
  322. }
  323. .conductor_direccion{
  324. width:3cm;
  325. min-height: 1.5cm;
  326. }
  327. .cab-articulos{
  328. height: 2.9cm;
  329. padding-left: 1.4cm;
  330. width: 100%;
  331. clear: both;
  332. }
  333. .articulos{
  334. height: 4.65cm;
  335. padding-left: 1.4cm;
  336. width: 100%;
  337. }
  338. .art-col1{
  339. width:2.2cm;
  340. text-align: center;
  341. }
  342. .art-col2{
  343. padding-left: 1.5cm;
  344. width:1cm;
  345. text-align: center;
  346. }
  347. .art-col3{
  348. padding-left: 1cm;
  349. width:11.4cm;
  350. }
  351. </style>
  352. <div class="logo1"></div>
  353. <!-- <h2><center>NOTA DE REMISIÓN <span t-field="o.name"></span></center></h2> -->
  354. <div class="fecha_emision_data"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  355. <div class="logo5"></div>
  356. <!-- <h5>1. DESTINATARIO DE LA MERCADERÍA</h5> -->
  357. <table width="100%">
  358. <tr>
  359. <td class="cli_nombre_label"></td>
  360. <td class="cli_nombre"><span t-field="o.partner_id"/></td>
  361. <td class="cli_ruc_label"> </td>
  362. <td class="cli_ruc"><span t-field="o.partner_ruc"/></td>
  363. </tr>
  364. <div class="blank_space"/>
  365. <tr>
  366. <td class="cli_telef_label"> </td>
  367. <td class="cli_telef"><span t-field="o.partner_street"/></td>
  368. <td class="cli_movil_label"> </td>
  369. <td class="cli_movil"><span t-field="o.partner_mobile"/></td>
  370. </tr>
  371. </table>
  372. <!-- </div> -->
  373. <div class="blank_space"/>
  374. <div class="blank_space"/>
  375. <div class="logo"></div>
  376. <div class="blank_space"/>
  377. <!-- <div class="div_border"> -->
  378. <!-- <h5>3. MOTIVO DEL TRANSLADO</h5> -->
  379. <table width="100%">
  380. <tr>
  381. <td class="motivo_data_label">
  382. </td>
  383. <td class="motivo_data">
  384. <t t-if="o.is_sale">
  385. <span>Venta</span>
  386. </t>
  387. <t t-if="o.is_export">
  388. <span>Exportación</span>
  389. </t>
  390. <t t-if="o.is_consignment">
  391. <span>Consignación</span>
  392. </t>
  393. <t t-if="o.is_intertal_transfer">
  394. <span>Traslado entre locales de la misma empresa</span>
  395. </t>
  396. <t t-if="o.is_repair_transfer">
  397. <span>Traslado de Bienes para Reparación</span>
  398. </t>
  399. <t t-if="o.is_exhibition">
  400. <span>Exhibición, demostración</span>
  401. </t>
  402. <t t-if="o.is_purchase">
  403. <span>Compra</span>
  404. </t>
  405. <t t-if="o.is_import">
  406. <span>Importación</span>
  407. </t>
  408. <t t-if="o.is_return">
  409. <span>Devolución</span>
  410. </t>
  411. <t t-if="o.is_transformation_transfer">
  412. <span>Traslado de Bienes para la Transformación</span>
  413. </t>
  414. <t t-if="o.is_movil_transfer">
  415. <span>Traslado por Emisión móvil</span>
  416. </t>
  417. <t t-if="o.is_fair">
  418. <span>Participación en Ferias</span>
  419. </t>
  420. </td>
  421. <td class="comprobante_data_label"></td>
  422. <td class="comprobante_data"><span t-field="o.origin"/></td>
  423. </tr>
  424. <tr>
  425. <td class="comprobante_label"></td>
  426. <td class="comprobante"><span t-field="o.sale_voucher"/></td>
  427. <td class="timbrado_label">
  428. </td>
  429. <td class="timbrado"><span t-field="o.name"/></td>
  430. </tr>
  431. <tr>
  432. <td class="expedicion_label">
  433. </td>
  434. <td class="expedicion"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  435. </tr>
  436. </table>
  437. <!-- </div> -->
  438. <!-- <h5>2. DATOS DEL ENVÍO</h5> -->
  439. <div class="blank_space1"/>
  440. <table width="100%">
  441. <tr>
  442. <td class="fecha_inicio_label"> </td>
  443. <td class="fecha_inicio"><span t-field="o.initial_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  444. <td class="fecha_termino_label"> </td>
  445. <!-- <td class="fecha_termino">06/09/2019</td> -->
  446. <td class="fecha_termino"><span t-field="o.finish_transfer_date" t-field-options='{"format": "dd/MM/yyyy"}'/></td>
  447. </tr>
  448. <tr>
  449. <div class="blank_space"/>
  450. </tr>
  451. <tr>
  452. <div class="blank_space"/>
  453. </tr>
  454. <tr>
  455. <td class="direccion_partida_label"> </td>
  456. <td class="direccion_partida" colspan="3"><span t-field="o.partner_company.street"/></td>
  457. </tr>
  458. <tr></tr><tr></tr>
  459. <tr>
  460. <td class="ciudad_label"> </td>
  461. <td class="ciudad"><span t-field="o.partner_company.city"/></td>
  462. <td class="departamento_label"> </td>
  463. <td class="departamento"><span t-field="o.partner_state"/></td>
  464. </tr>
  465. <tr></tr><tr></tr>
  466. <tr>
  467. <td class="direccion_llegada_label"> </td>
  468. <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>
  469. </tr>
  470. <tr></tr><tr></tr>
  471. <tr>
  472. <td class="ciudad2_label"> </td>
  473. <td class="ciudad2"><span t-field="o.partner_city"/></td>
  474. <td class="departamento2_label"> </td>
  475. <td class="departamento2"><span t-field="o.partner_state"/></td>
  476. </tr>
  477. </table>
  478. <div class="blank_space"/>
  479. <table width="70%">
  480. <tr>
  481. <td class="km_label"> </td>
  482. <td class="km"><span t-field="o.obs_remision"/></td>
  483. </tr>
  484. <tr>
  485. <td class="spacio"> </td>
  486. </tr>
  487. <tr>
  488. <td class="cambio_fecha_label"> </td>
  489. <td class="cambio_fecha"><span t-field="o.obs_remision"/></td>
  490. </tr>
  491. <td class="spacio"> </td>
  492. <tr>
  493. </tr>
  494. <tr>
  495. <td class="motivo_cambio_label"> </td>
  496. <td class="motivo_cambio"><span t-field="o.obs_remision"/></td>
  497. </tr>
  498. </table>
  499. <!-- </div> -->
  500. <div class="blank_space"/>
  501. <div class="blank_space"/>
  502. <div class="blank_space"/>
  503. <div class="blank_space"/>
  504. <!-- <div class="div_border"> -->
  505. <!-- <h5>4. DATOS DEL TRANSPORTISTA Y DEL COMPROBANTE DE VENTA POR EL SERVICIO DE TRANSPORTE</h5> -->
  506. <!-- <table width="100%">
  507. <tr>
  508. <td class="vend_nombre_label">Nombre y Apellido: <span t-field="o.user_id"/></td>
  509. </tr>
  510. <tr>
  511. <td class="vend_telef_label">Teléfono: </td>
  512. <td class="vend_telef"><span t-field="o.user_phone"/> <span t-field="o.user_mobile"/></td>
  513. </tr>
  514. <tr>
  515. <td class="transportista_nombre_label">Nombre o Razón Social del Transportista: <span t-field="o.logistic_company_id"/></td>
  516. </tr>
  517. <tr>
  518. <td class="transportista_ruc_label">R.U.C. del transportista: <span t-field="o.logistic_ruc"/></td>
  519. </tr>
  520. </table> -->
  521. <!-- </div> -->
  522. <!-- <div class="blank_space"/> -->
  523. <!-- <div class="div_border"> -->
  524. <!-- <h5>5. DATOS DEL VEHICULO DE TRANSPORTE</h5> -->
  525. <div class="spacio1"> </div>
  526. <div class="blank_space"/>
  527. <div class="blank_space"/>
  528. <table width="100%">
  529. <tr>
  530. <td class="vehiculo_nombre_label"></td>
  531. <td class="vehiculo_nombre"><span t-field="o.vehicle_name"/></td>
  532. </tr>
  533. <tr>
  534. <td class="vehiculo_chapa_label"></td>
  535. <td class="vehiculo_chapa"><span t-field="o.vehicle_plate"/></td>
  536. </tr>
  537. </table>
  538. <table width="100%">
  539. <tr>
  540. <td class="remolque_chapa_label"></td>
  541. <td class="remolque_chapa"><span t-field="o.vehicle_plate"/></td>
  542. </tr>
  543. </table>
  544. <!-- </div> -->
  545. <div class="blank_space"/>
  546. <div class="blank_space"/>
  547. <div class="blank_space"/>
  548. <div class="blank_space"/>
  549. <div class="blank_space"/>
  550. <!-- <div class="div_border"> -->
  551. <!-- <h5>6. DATOS DEL CONDUCTOR DEL VEHICULO</h5> -->
  552. <table width="100%">
  553. <tr>
  554. <td class="conductor_nombre_label"> </td>
  555. <td class="conductor_nombre"><span t-field="o.driver_id"/></td>
  556. <td class="conductor_ruc_label"> </td>
  557. <td class="conductor_ruc"><span t-field="o.logistic_ruc"/></td>
  558. </tr>
  559. <tr>
  560. <td class="conductor_direccion_label"></td>
  561. <td class="conductor_direccion" colspan="3"><span t-field="o.driver_id.street"/> <span t-field="o.driver_id.street2"/></td>
  562. </tr>
  563. </table>
  564. <!-- </div> -->
  565. <div class="cab-articulos"> </div>
  566. <div class="articulos">
  567. <table class="tab-articulos">
  568. <tr t-foreach="o.nota_line" t-as="l">
  569. <td class="art-col1"><span t-esc="'%.0f'%l.product_uom_qty"/></td>
  570. <td class="art-col2"><span t-field="l.product_id.uom_id"/></td>
  571. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  572. </tr>
  573. </table>
  574. </div>
  575. </div>
  576. </t>
  577. <!-- </t> -->
  578. </t>
  579. </template>
  580. </data>
  581. </openerp>