Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to Display Monetary Field in Odoo 15 Qweb Report?

I need to add amount field in a qweb report. Both t-field and t-esc have not worked. All currency configurations are ok. Here is the code: <span t-esc="o.amount_total" t-options="{'...
Ralph's user avatar
  • 1
0 votes
0 answers
57 views

What is the process to control the number of decimal places in a Qweb report?

I have set up my database to display prices four decimal places, but I prefer my report to show only two decimal places. I have attempted both of these methods but neither of them produce any ...
damar's user avatar
  • 71
0 votes
1 answer
69 views

How to make custom QWeb report render on public URL in Odoo

In odoo we can access inbuilt object via token url like this: http://localhost:8069/my/invoices/8336?access_token=96c52b2d-3604-4817-82be-4392aa8d051e&report_type=pdf If I have designed custom ...
hardik device's user avatar
2 votes
1 answer
136 views

How do I access the fields in a QWeb report? Odoo 17

I have this Python model to get the data I want to work with. Actually all this code works fine, maybe there is room for improvement but it gets the data I need, I have already tested and everything ...
damar's user avatar
  • 71
0 votes
0 answers
35 views

How do I add logic to a QWeb report?

I want to create a somewhat sophisticated report with invoices, but I have never worked with QWeb. Is there any way to implement python logic to the xml? Such as comparing dates, as in this example. &...
damar's user avatar
  • 71
0 votes
0 answers
47 views

Odoo snippet not visible in Website Builder after module installation

I'm developing a custom module for Odoo 16 that adds a BMI calculator snippet to the Website Builder. However, after installing the module, the snippet does not appear in the blocks section of the ...
Adil's user avatar
  • 9
0 votes
0 answers
47 views

In odoo v17 how can I make a <div> appear only at the bottom of the last page of the QWEB pdf print or appear inside footer at the last page only?

<!-- Report Template --> <template id="report_delivery_form"> <t t-call="web.html_container"> <t t-call="web.basic_layout"> ...
Uday Sankar's user avatar
1 vote
0 answers
217 views

Issue with Currency Display in Odoo QWeb Report (Odoo 17)

I'm working on a QWeb report in Odoo 17, and I've encountered an issue with the currency symbol display. When I use the following template in my QWeb report: <odoo> <data> <...
law rence's user avatar
  • 179
1 vote
0 answers
100 views

Changing the design and shape of all save and discard buttons

I need to change all save and discard buttons, not just at the style level (which is easy with CSS), but I want to replace them with something completely custom. I've tried everything, but I haven't ...
MIGUEL ANGEL GONZALEZ PINTO's user avatar
0 votes
1 answer
36 views

Odoo v15 Qweb Report Date_Format and configuration Adding more spaces (%m - %d - %Y)

i tried context_timestamp(datetime.datetime.(page['date'].)).strftime('%m - %d - %Y') but the maximum space is only 1 it will not fit on the bank check format which needs 2 spaces between numbers(&...
zzaren 009's user avatar
0 votes
0 answers
43 views

How can i Add e-sign in an attached PDF Odoo14

i'm using Odoo14 CE, i add class dossier(models.Model): _inherit = 'purchase.order' ​Proformat_fournisseur = fields.Binary(string="Proformat fournisseur", attachment=True, index=True, ...
Wassim Benkoulal's user avatar
0 votes
2 answers
180 views

Odoo QWEB: show an element only if it has any length

I have a note field that I want to show in an Odoo report, but only if it has any length. I tried this without success: <t t-if="len(o.note) > 0" <div t-field="o.note&...
Seeker's user avatar
  • 1,268
0 votes
1 answer
426 views

Blank PDF report from wizard in Odoo

I'm using Odoo17 and I want to print PDF Report from Wizard. The Wizard works fine, when I click on the button that trigger the function to print the PDF it download a blank PDF. To keep things simple,...
Arthur Fortin's user avatar
0 votes
0 answers
296 views

Loop error on Qweb component template with Odoo17

I'm stuck with a problem on Odoo17. I want to use the wizard on a project to display the main informations as the user_id or the order_lines that the project depends on. So to do that, maybe it's not ...
Arthur Fortin's user avatar
1 vote
1 answer
112 views

In an Odoo 16 QWeb template, the content of <link> tag is added after the tag, not within

I am seeing some strange behavior in an Odoo 16 QWeb template. Given the following template: <channel> <item> <link>test</link> </item> </channel> This ...
knipknap's user avatar
  • 6,124
1 vote
1 answer
94 views

Loop through a group list with Qweb in Odoo17

I'm trying to display a list of products group by category on a Qweb Report in Odoo17. I created my list in a python class. After the process, this python list looks like this : { 'Office ...
Arthur Fortin's user avatar
0 votes
1 answer
232 views

xpath reference in Odoo 15 and 16, how to resolve it

ver.15 template: <a role="button" t-if="website_sale_order and website_sale_order.website_order_line" class="btn btn-primary float-right d-none d-xl-inline-block" href=...
Ahmed Haroon's user avatar
0 votes
0 answers
152 views

Odoo 17 Qweb Report - How to get a field from another model

Hope everyone is fine. I'm working on reports from Odoo 17 with the studio customisation. I'm trying to improve my report_picking template by adding the product_code from the product.supplierinfo ...
Velk's user avatar
  • 1
0 votes
1 answer
442 views

How can I create another Invoice Template in Odoo Community(Saas)

I'm trying to create a new invoice template in my Odoo 17 Community (SaaS) with a customize header on it. So what I did first is create a report, It now shows in my Invoice. This is my report ...
Stykgwar's user avatar
  • 671
1 vote
2 answers
279 views

How to extend a templates xml:space="preserve" in Odoo 14

I am trying to inherit the slide.slide.quiz.validation in website_slides to change the label of a button of quiz page in eLearning. No errors are showing upon upgrading my custom module and the ...
Kai Ning's user avatar
  • 187
1 vote
2 answers
982 views

How can I show modal on page load?

I have a page with a modal window. I can show and hide this modal with a button and the right data-bs- attributes. Now, What I want is to have the modal shown on page load. It seems the only proper ...
Thomas Rossi's user avatar
0 votes
1 answer
139 views

Does OCA module report_qweb_element_page_visibility leave blank spaces in Odoo 15?

In Odoo 15, I am modifying the PDF reports in order to show some info in the header at the first page, and other different info at the left pages. To do that, I use a existing OCA module, very popular,...
forvas's user avatar
  • 10.1k
1 vote
1 answer
177 views

Odoo 14 QWEB report page border

I need to generate a pdf report with a border all around the page. I tried to add the border to the div "page" but it doesn't take the whole page, it is dynamic based on the height of the ...
oigna's user avatar
  • 182
0 votes
0 answers
61 views

How to use regular expression for a mini markup mechanism in PDF reports?

I want to build a mini markup mechanism for PDF reports in Odoo 17. How can I use regular expression in Qweb report to change the output? I want to create a bold text string from **a bold text string**...
headkit's user avatar
  • 3,327
0 votes
1 answer
282 views

Odoo V16 - Show/hide dynamically input on website register form

After adding two fields on website register form, ​- the first is a checkbox "I am a company" ​- the second one is input char SIRET NUMBER I am trying to (THE GOAL IS) : hide the second ...
free94's user avatar
  • 5
2 votes
1 answer
110 views

How to avoid ODOO 15 render error for missing values

In ODOO 15 I have made my own template that runs a method that returns some data to show in a dictionary. This is a piece of the template: <t t-set="PRI_par_DSP_par_stage" t-value="o....
Claudiu's user avatar
  • 613
-2 votes
1 answer
173 views

How to convert float to int in odoo qweb?

i need help about odoo. i want to convert float to int in Odoo14 qweb. <tr class="border-black"> <td> ...
it uw's user avatar
  • 11
0 votes
1 answer
323 views

reading odoo16 record information using javascript

I am new to odoo and web in general, I have this issue I have a template that provides a drop down list with initiatives to choose from, I need to view some information about the selected initiative ...
nwara97's user avatar
  • 17
1 vote
1 answer
2k views

Odoo 17 error: @spreadsheet/hooks: The following modules are needed by other modules but have not been defined

I have an Odoo 17 on-premise install. I installed some modules and then somehow this error started showing in the browser directly when clicking on the dashboard app: The following modules are needed ...
Billy's user avatar
  • 23
1 vote
1 answer
278 views

How to show data conditionally to record values in form view odoo 16.0

I am trying to show info that depends of the model values in form view <t t-if="record.id"> ... <t t-if="record.name == 'Anon'"> ... <t t-if="name == 'Anon'&...
Jhordy Said Barrera's user avatar
1 vote
1 answer
467 views

How to hide record selector column of checkboxes in tree view odoo 16.0

I want to hide record selector or checkboxes column in tree view, the actions must be performed one for each record. Or how to hide delete action from tree view, alternatively. Previous version: how ...
Jhordy Said Barrera's user avatar
2 votes
1 answer
778 views

How to add classes or styles dynamically in odoo 16.0 qweb template

I have many boolean fields and i am trying to add classes dynamically in odoo template. Odoo docs qweb templates I try <t t-foreach="planes" t-as="plan"> <p t-attf-...
Jhordy Said Barrera's user avatar
0 votes
1 answer
74 views

How can I display my custom model fields within the components of a modal on a website?

I'm feeling a bit confused about how to retrieve data from my backend model and display it on my website. For instance, I'm using a drag-and-drop component provided by the website's model. How can I ...
LAHCEN AGLAGAL's user avatar
0 votes
2 answers
217 views

How to change background image in Odoo Website Sliders

I've been trying to replace the image from Odoo Website sliders that are accessed through localhost:8069/slides. But it won't still displayed. Did I missed some import? I inherited the website_slides....
Kai Ning's user avatar
  • 187
0 votes
1 answer
134 views

QWeb docker image

Has anyone been able to build a docker image that contains robot framework and QWeb installations? I'm able to build an image, but running tests with it doesn't succeed. It says 'Resource file 'Qweb' ...
Janika's user avatar
  • 1
0 votes
1 answer
2k views

Odoo V15, 500: Internal Server Error after move to new server | UserError: The attachment is colliding with an existing file

As first, thank you for help me, i am beginner in Odoo Website. Since i have move on proxmox the website Odoo V15 to new Proxmox (same Website), the website shows me 500: Internal Server Error. Befor ...
Pascal Ottiger's user avatar
0 votes
1 answer
590 views

Problem table HTML/CSS - Odoo 14 qweb report

I'm having problems with nested table. This is the only solution that i found to have this configuration. But there are some little problems. This is the code: <table style="table-layout: ...
oigna's user avatar
  • 182
0 votes
1 answer
528 views

Odoo16 qweb - convert float to int / loop through float

Good morning, in odoo 16 I created a view for printing product labels. Now I'm trying to make the number of labels match the amount of on hand. I'm using foreach, but the on hand value is float and ...
ravee's user avatar
  • 3
1 vote
1 answer
460 views

Custom filename QWEB report [ODOO 14.0]

I need a big help. I need to change the report filename when the pdf is downloaded. This is the button: <button string="Generate Report" name="generate_report" type=&...
oigna's user avatar
  • 182
2 votes
1 answer
543 views

t-foreach loop in POS template screen is not working

I'm working on Odoo 16 and tried to create a custom screen in POS. Is there any particular reason why the following template is not working in my custom POS screen? <?xml version="1.0" ...
Panagiotis Anagnostakis's user avatar
0 votes
1 answer
739 views

Odoo 16 Inherit template and replace 1 field

I have installed an addon to Odoo 16 Ent, which creates a separate quote number rather than just the standard sales ref number, however on the customer preview, it still shows "Quotation #" ...
karen's user avatar
  • 1
4 votes
3 answers
1k views

How to render a qweb template by action button?

I have Qweb template like this: <template id="test_template"> <h1>My template</h1> <script type="text/javascript"> console.log('it works'); ...
Wald Sin's user avatar
  • 198
2 votes
0 answers
140 views

How mail with attachment of PDF report generated through cron. Odoo 14

I want to send mail with attachment of PDF report generated through cron. the model : "stock.warehouse.orderpoint". I want to send mail with report PDF containing the information of model &...
Ing's user avatar
  • 599
2 votes
1 answer
527 views

Odoo 15 - Create a new page in Qweb report

i´m new to odoo and i want to understand if its possible to create a new page for my report <template id="report_livro"> <t t-call="web.html_container"> ...
Ricardo Silva's user avatar
2 votes
1 answer
133 views

What is the scope of the variables passed to subtemplates in QWeb?

I am using Odoo 13, but this is a QWeb question: I got the following template in QWeb: <template id="my_subtemplate"> <t t-set="foo" t-value="foo + 1"/> ...
forvas's user avatar
  • 10.1k
0 votes
1 answer
694 views

Template rendering in odoo

I want to render the template (.xml file) having id 'dashboard_example' from javascript code in odoo15. I am quite new to odoo and just got to know about Qweb2. Can you please help in finding out how ...
Swetank Singh's user avatar
1 vote
0 answers
78 views

Odoo: custom module-views overriden by WebEditor-views in Multi-site context

In Odoo-13 (odoo.sh), in my custom module src/user/membershipzsb, after having created a new qweb (web-layout): portal_my_details_zsb which inherit the Base-View portal_my_details (view id:421) <...
Ahrimann Steiner's user avatar
2 votes
1 answer
324 views

use a system parameter as a color rgba code for style tag in odoo report pdf

I use Odoo 15, here is my problem, I have set at a record xml file this system parameter, first I try with a rgb code and after that with an hexadecimal code <odoo> <data noupdate=&...
Juan_jg's user avatar
  • 21
1 vote
0 answers
84 views

Two reports in one with a if odoo15 qweb-pdf

I'm trying to extend a report with another one. If an if is true, the part should be loaded from another template and filled with the appropriate data. Maybe someone can give me a tip how I can ...
Thomas's user avatar
  • 11
0 votes
1 answer
1k views

How can I prevent 't-out' from escaping my Html code?

How can I prevent t-out from escaping my Html code? I am trying to display an Html code on my Website. In older Odoo versions I used t-raw and it worked fine. Now in Odoo 16 t-raw is deprecated and t-...
alex_pdc's user avatar

1
2 3 4 5
12