Odoo Hilfe


3 Antworten

Shawn Varghese Vereinigte Arabische Emirate

--Shawn Varghese--
| 5 3 10
Dubai, Vereinigte Arabische Emirate
--Shawn Varghese--

Shawn Varghese Vereinigte Arabische Emirate
24.01.15, 01:29

Thank you both for your inputs. But even after using !important, it didn't work. I did notice that if I remove t-field-options, then the formatting applies correctly. So I'm not sure what exactly is causing the problem. For now, I have resolved it by displaying each property separately instead of using the widget:

<div class="col-xs-8 text-right" style="font:15px lucida-console,sans-serif !important;" >
    <span style="color:grey !important;" t-field="company.partner_id" /><br/>
    <span style="color:grey !important;" t-field="company.partner_id.street" /><br/>
    <span style="color:grey !important;" t-field="company.partner_id.street2" /><br/>
    <span style="color:grey !important;" t-field="company.partner_id.city" /><br/>
    <span style="color:grey !important;" t-field="company.partner_id.country_id" /><br/>

This outputs the text with all the formatting, but not an elegant solution. I will update in case I do find an alternative.

Abraham Anes Spanien
20.01.15, 10:28


Try to put "!important" after them, like this:

<div class="col-xs-8 text-right"
                             style="color:green !important;font:italic 14px lucida-console, sans-serif !important;"
                             t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true }' />

3 Kommentare
ePillars Systems LLC, Shawn Varghese Vereinigte Arabische Emirate
20.01.15, 12:39

Thanks Abraham, but unfortunately, this does not seem to be working either. Do you have anything else in mind? Its becoming a major problem for me in creating reports.

Abraham Anes Spanien
20.01.15, 12:59

I don't know what is wrong because I'm using this "

" and is working fine =/
Abraham Anes Spanien
20.01.15, 13:02


Paul Catinean Rumänien
22.01.15, 03:07

!important after the css directive should work, also make sure you apply it on the actual tag you want changed not on the parent

Last but not least if you are dealing with invoices make sure the report does not have "Reload from attachment" ticked

Also go to: http://odoo-address:port/report/html/module.report_template_name/database_id and try editing the css directives there for easier debugging



3 Kommentare
ePillars Systems LLC, Shawn Varghese Vereinigte Arabische Emirate
24.01.15, 01:36

Thanks Paul, I've ensure that reload from attachment is unchecked but the problem persists. I'm using a workaround for now, as described in my answer. The URL that you gave sounds quite interesting. I was unable to make it work however. This is the link that I have constructed: Here 'sv_sale_layout' is the name of my module. 'report_saleorder_document_inherit' is the template name inside the xml and the database is 'test' . But nothing loads. In fact, it causes the server to crash, so its definitely doing something, but I guess I haven't constructed the URL correctly. Could you please tell me what the correction should be? Thanks again !

Paul Catinean Rumänien
24.01.15, 12:09

I have forgot to mention that you also should have the website module installed in order to use the html editor in this case.Check to see if it works then, and don't forget to use the database id at the end, here is a example of URL for standard reports: http://localhost:8069/report/html/stock.report_picking/10

ePillars Systems LLC, Shawn Varghese Vereinigte Arabische Emirate
29.01.15, 00:13

Yes, I got it to work now. Thanks!

Fragen Sie
Keep Informed
1 Verfolger
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now