qweb

Print report on print button in odoo10

筅森魡賤 提交于 2021-02-11 15:40:26
问题 Hi I am having a problem in printing the report. I have coded the report format in html and then made its module and attached it with the relevant model. and upload it on my online server First I was receiving this error : Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt,

How to add watermarks in all pages of Odoo Reports?

大憨熊 提交于 2021-02-10 09:37:38
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

How to add watermarks in all pages of Odoo Reports?

六眼飞鱼酱① 提交于 2021-02-10 09:36:56
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

How to add watermarks in all pages of Odoo Reports?

青春壹個敷衍的年華 提交于 2021-02-10 09:35:29
问题 Using below code It is just view on the first page. I want to show watermark on all pages. <div class="watermark_report"> <img t-att-src="'data:image/png;base64,'+ doc.company_id.report_header_logo"/> </div> 回答1: You already have the answer here: Add this code for watermark in header of external layout. Its external id is report.external_layout_header : <style> .watermark { position: absolute; opacity: 0.25; z-index: 1000; transform: rotate(300deg); -webkit-transform: rotate(300deg); width:

How to remove the Powered by Odoo #1 Open Source eCommerce footer from front end of Odoo 8?

橙三吉。 提交于 2021-02-06 12:56:40
问题 How do you remove the backlinks from the public front end of Odoo 8? Location: lower right corner of the page, in the footer. HTML Code: <div class="pull-right"> Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>. </div> These backlinks are shown to all search engines, and to anybody visiting the site, who is not logged in to the site!! And when you log in, Odoo

How to remove the Powered by Odoo #1 Open Source eCommerce footer from front end of Odoo 8?

江枫思渺然 提交于 2021-02-06 12:56:10
问题 How do you remove the backlinks from the public front end of Odoo 8? Location: lower right corner of the page, in the footer. HTML Code: <div class="pull-right"> Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>. </div> These backlinks are shown to all search engines, and to anybody visiting the site, who is not logged in to the site!! And when you log in, Odoo

Add logo to the backend top navbar

早过忘川 提交于 2021-01-28 18:44:09
问题 I'm trying to add my logo to the top navbar like this: I modified the xml file addons\web\static\src\xml\menu.xml and added this div: <div style="height: 100%;display: block;float: left;margin-right: 15px;margin-left: 15px;"> <img src="https://www.clubsportive.nl/wp-content/uploads/2018/12/logo-example.jpg" height=100%/> </div> inside the header like this: <header t-name="Menu" style="background-color: #4c4c4c;"> <nav class="o_main_navbar"> <ul class="o_menu_apps"/> <div style="height: 100%

Add logo to the backend top navbar

北慕城南 提交于 2021-01-28 18:34:40
问题 I'm trying to add my logo to the top navbar like this: I modified the xml file addons\web\static\src\xml\menu.xml and added this div: <div style="height: 100%;display: block;float: left;margin-right: 15px;margin-left: 15px;"> <img src="https://www.clubsportive.nl/wp-content/uploads/2018/12/logo-example.jpg" height=100%/> </div> inside the header like this: <header t-name="Menu" style="background-color: #4c4c4c;"> <nav class="o_main_navbar"> <ul class="o_menu_apps"/> <div style="height: 100%

How to format Qweb variables in Odoo

非 Y 不嫁゛ 提交于 2021-01-27 22:56:40
问题 I have been trying to display a calculated variable in qweb separated by comma's. <td align="right"> <t t-set="total" t-value="0"/> <t t-foreach="l.invoice_line_tax_id" t-as="t"> <t t-set="total" t-value="total + (t.amount * l.price_subtotal)" /> </t> <span t-esc="'%.2f'%(l.price_subtotal + total)"/> </td> - This line displays the values with decimal points, whereas the digits before decimal is not separated by comma's. For example, the above code would display value as 400000.00 whereas I

More space is coming between Header and Page1 but from page2 it is correct

大憨熊 提交于 2020-03-04 15:36:50
问题 I tried creating a QWEB report with custom Paper Format but more space is coming between Header and Page1 but from page2 it is correct.I tried adjusting Margin Top and Header Spacing . Thanks in Advance Page Format <record id="paper_xn_so_preprint" model="report.paperformat"> <field name="name">Sale Order PrePrint</field> <field name="default" eval="True"/> <field name="format">custom</field> <field name="page_height">148</field> <field name="page_width">210</field> <field name="orientation"