Questions tagged [qweb]

QWeb is the template engine used by the OpenERP/Odoo Web Client. It is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets

1
vote
0answers
19 views

How to format and round down in QWEB report?

In Odoo, I set decimal precision to be 4 for a field. Let's call it price. The field price now has a value with 4 decimal places in the database. It is displayed in a QWEB report, as expected, with 4 ...
0
votes
0answers
7 views

Counting xyz_ids in QWEB

I am trying to create a conditional block that will display a table with n>0 records. That is to say that if there are no records, the table is not displayed: <t t-if="len(order_ids) > 0&...
0
votes
1answer
22 views

Odoo 14 QWEB reporting

I'm trying to generate an invoice on pdf, part of the scope is to add some additional fields on the report, which I can edit the qweb xml and add things. The problem I'm facing now, I'm trying to do ...
0
votes
0answers
12 views

Odoo13:how to add a cust how to add a button to do same action as validate button & redirect to my personalized receiptom button for print receip

I added a button on the pos payment interface which shows me a popup. how to make that when the user clicks on the confirm button of this popup that it redirects to the receipt of the pos This is my ...
0
votes
2answers
30 views

Odoo employee image is not been showed on website template

I'm trying to show the employee's picture (fields: hr_employee.image) on a website template. But the template just show the default picture for employees instead of the loaded image. I tried this: <...
1
vote
1answer
45 views

How to add page number qweb odoo without div class header and footer

I would like create report in odoo but the page information not in header or footer. I'm using <span class="page"/> of <span class="topage"/>. It's work if that code ...
2
votes
1answer
68 views

'base.document.layout' object has no attribute 'header' odoo14 - trying to display custom fields in report

with a custom module, I have added the two fields header and footer to every res.company object. These are fields of the type binary. I now want to display them in my document layout in qweb. ...
0
votes
0answers
46 views

How to get field values from js file in xml , in odoo qweb?

_render: function () { var info = JSON.parse('{"name":"John", "age":30, "city":"New York"}'); console.log(info); this.$el....
0
votes
1answer
71 views

How to replace template with my own content, xml Odoo 14

I need to replace the template variants of the sale module using my own content. My code-xml: <template id="my_variants" inherit_id="sale.variants"> <xpath expr=".&...
0
votes
0answers
17 views

How to resize text of html field in qweb report?

<?xml version="1.0" encoding="utf-8"?> <template id="detail_template_id"> <t t-call="web.html_container"> <t ...
0
votes
0answers
26 views

How to format a report and show one patient name per vaccine, in odoo 14

I have a list of vaccines e.g Covid, Cholera, etc, the patient's name, and the dose. A patient can have Cholera dose 1,2,3 now and in future dose 1,2. Now, how can I show just the first name (John) of ...
1
vote
1answer
39 views

Setting a boolean attribute in QWeb template

I am having problems using the QWeb engine and boolean HTML attributes. I know that in the QWeb rendering engine I can use t-attf-{attribute name} in order to set the value of attribute name to the ...
0
votes
1answer
64 views

Add "vendor product code" to a QWEB report in odoo 13

In the built-in sales order report, if a product has "vendor product code" set, it will show that number in front of the product's name. If it is not set, it will show the "internal ...
1
vote
1answer
79 views

Modify Crash_manager on Odoo_13

Hello guys I'm trying to modify the error window that odoo shows when an error occurs to only shows the button see details and copy to clipboard to specific user groups, I tried to change the ...
0
votes
0answers
43 views

Print custom report from module

I want to print a custom report from a module in helpdesk.ticket model. I tried theese following lines of code, and all give me an error: self.env.ref('studio_customization....

15 30 50 per page
1
2 3 4 5
36