diff --git a/tecnitower_custom/__manifest__.py b/tecnitower_custom/__manifest__.py index 86ed87a2124effab66425051619dbb34b03b53b1..73069e96fb1ba1cf83167042ac6af694bde8ad78 100644 --- a/tecnitower_custom/__manifest__.py +++ b/tecnitower_custom/__manifest__.py @@ -34,6 +34,7 @@ 'views/res_config_settigs_views.xml', 'views/res_company_views.xml', 'report/stock_picking_qweb.xml', + 'report/account_move_qweb.xml', ], 'installable': True, 'application': True, diff --git a/tecnitower_custom/report/account_move_qweb.xml b/tecnitower_custom/report/account_move_qweb.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f32914e9dadf57f74b6d25328787217783e1458 --- /dev/null +++ b/tecnitower_custom/report/account_move_qweb.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <template id="account_move_report_qweb_inherited" inherit_id="l10n_ar_eynes.weblearns_layout"> + + <xpath expr="//table[@class='company-table']/tr/td/img[1]" position="replace"> + <img + style="margin-left: 5px; width: 120px;" + t-if="o.journal_id.image" + t-attf-src="data:image/png;base64,#{o.journal_id.image}" + /> + </xpath> + <xpath expr="//table[@class='company-table']/tr/td/img[2]" position="replace"> + <img t-else="" style="margin-left: 5px; width: 120px;" t-attf-src="data:image/png;base64,#{o.company_id.logo}" /> + </xpath> + + <xpath expr="//table[@class='company-table']/tr/td/p" position="replace"> + <p> + Razón social: <span t-esc="o.company_id.name" /> + <br /> + Domicillio: <span t-esc="o.company_id.street"/> - (<span t-esc="o.company_id.zip" />) + <br /> + <span t-esc="o.company_id.city" /> - <span t-esc="o.company_id.country_id.name" /> + <br /> + Tel.: <span t-esc="o.company_id.phone.split('/')[0]" /> + <br /> + Condición frente al IVA: <span t-esc="o.company_id.partner_id.property_account_position_id.name"/> + </p> + </xpath> + + <xpath expr="//table[@class='company-table']/tr/td[@class='right']" position="attributes"> + <attribute name="style">width: 40%;</attribute> + </xpath> + + <xpath expr="//table[@class='company-table']/tr/td[@class='left']/span[12]" position="replace"> + <span>Email: <span t-esc="o.company_id.email" /> + </span> + </xpath> + + <xpath expr="//table[@class='company-table']/tr/td[@class='center']" position="replace"> + + <td class="center" style="width: 15%; padding: 20px;"> + <div class="center-container" style="height: 100%; width: 100%;"> + <!-- <div class="center-container-divs" style="background-color: brown; height: 33%; width: 100%;"/> --> + <div class="center-container-divs" style="height: 33%; width: 100%;"> + <div class="center-container-letter" style="text-align: center; height: 100px; margin-left: 5%; margin-right: 5%; border: 2px solid #000; padding: 0; margin-top: 30px"> + <p style="font-size: 10px;"> + <span t-esc="denomination_name" style="font-size: 65px;"/> + <br/> + cod. <span t-esc="o.voucher_type_id.afip_code" /></p> + </div> + </div> + <!-- <div class="center-container-divs" style="background-color: orange; height: 33%; width: 100%;"/> --> + </div> + </td> + + </xpath> + + <xpath expr="//table[@class='company-table']/tr/td[@class='left']" position="attributes"> + <attribute name="style">width: 40%;</attribute> + </xpath> + + </template> + +</odoo> \ No newline at end of file diff --git a/tecnitower_custom/report/stock_picking_qweb.xml b/tecnitower_custom/report/stock_picking_qweb.xml index aace41d07052a430ed725f9e9424ebced15d8a71..840bff02c43be414ea002294792880022c212795 100644 --- a/tecnitower_custom/report/stock_picking_qweb.xml +++ b/tecnitower_custom/report/stock_picking_qweb.xml @@ -44,27 +44,19 @@ <table class="company-table"> <tr> <td class="left"> - <div style="height: 100%; width: 40%; float:left;"> - <div class="left-container-left"> - <img - t-attf-src="data:image/png;base64,#{o.company_id.logo}" - /> - </div> - </div> - <div style="height: 100%; width: 60%; float:right;"> - <div class="left-container-right"> - <span t-esc="o.company_id.name"/> - <br/> - <span t-esc="o.company_id.street"/> - - - <span t-esc="o.company_id.city"/> - <br/> - Email: - <span t-esc="o.company_id.email"/> - <br/> - <span t-esc="o.company_id.website"/> - </div> - </div> + <img t-attf-src="data:image/png;base64,#{o.company_id.logo}" style="height: 80px; width: 120px; margin-left: 5px;"/> + <br /> + <p> + Razón social: <span t-esc="o.company_id.name" /> + <br /> + Domicillio: <span t-esc="o.company_id.street"/> - (<span t-esc="o.company_id.zip" />) + <br /> + <span t-esc="o.company_id.city" /> - <span t-esc="o.company_id.country_id.name" /> + <br /> + Tel.: <span t-esc="o.company_id.phone.split('/')[0]" /> + <br /> + Condición frente al IVA: <span t-esc="o.company_id.partner_id.property_account_position_id.name"/> + </p> </td> <td class="center"> <div class="center-container"> @@ -205,36 +197,18 @@ } .left{ + font-weight: bold; width: 42%; + padding-right: 10px; } - - .left-container-left{ - height: 33%; - width: 100%; - margin-top: 45px; - margin-bottom: 60px; - padding: 0; - } - - .left-container-left img{ - float:left; - height: 100px; - width: 100%; - } - - .left-container-right{ - font-weight: bold; - height: 33%; - width: 100%; - margin-top: 45px; - margin-bottom: 60px; - padding: 0; - text-align: center; + + .left p{ + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; } - .center{ - width: 15%; + width: 14%; padding: 20px; } .center-container{ @@ -255,7 +229,7 @@ } .right{ - width: 43%; + width: 42%; } .right-container{