Odoo Help

3

0
2 Answers
1
Avatar

Keyur India

--Keyur--
1235
| 4 4 10
Ahmedabad, India
--Keyur--

Odoo Enthusiast

Keyur India
4/25/13, 10:57 AM

By <image> </image> tag in .rml file you can add image. For example you want to add image of company logo in report you can write like this in rml file:

<image x="1.3cm" y="26.0cm" height="90.0">[[company.logo or removeParentNode('image')]]</image>
6 Comments
Sreedath Namangalam India
4/25/13, 11:00 AM

thank you. the image is loading. but after changing some more things in my .sxw and then conveting it to rml gives some alphanumeric values in place of the image...

Keyur India
4/25/13, 11:08 AM

Maybe because there is some extra & unwanted data in your rml file. Check rml file if there is any alphanumeric value or not. If there is then remove & regenerate your report.

Sreedath Namangalam India
4/25/13, 11:13 AM

nothing like that in rml file. actually the exta line of code for displaying image is getting deleted automatically when i convert the sxw to rml again.

Kris Krnacs Hungary
5/30/13, 7:12 AM

Hello Keyur! It is interesting, because if I add a new column in to my sale.order report /.sxw/ and put the already showing context like: [[ format(line.name) ]] or [[ formatLang(o.amount_untaxed, dp='Account', currency_obj=o.pricelist_id.currency_id) ]] it is working snd showing on the printed .pdf file. In other case if I put the [[company.logo or removeParentNode('image')]] it is not showing up, it is only gives some alphanumeric values. It seem it is not the problem with the .sxw file, but the company logo pathname. Can you please sorted this out?

Keyur India
5/30/13, 7:34 AM

Hi Kris I appreciate if you create a new question with openerp version and necessary information then I will definitely try to solve it. Thanks.

Kris Krnacs Hungary
5/30/13, 11:08 AM

Hello Keyur! Thank you for your help! OK there is my question: http://help.openerp.com/question/19123/openerp-7-how-can-i-add-images-in-saleoderline-generally/

1
Avatar

Sudhir Arya (ERP Harbor Consulting Services) India

--Sudhir Arya (ERP Harbor Consulting Services)--
27320
| 8 9 10
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & CTO at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert having 7+ years of Experience in Odoo ERP.

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Good knowledge and experience in payment gateway integration with Odoo

• Active Memeber on Stackoverflow 

LinkedIn

Blog

Stackoverflow

ERP Harbor Consulting Services

Skype:sudhir@erpharbor.com
Website: http://www.erpharbor.com
Sudhir Arya (ERP Harbor Consulting Services) India
4/25/13, 10:58 AM

You can find answer here: Add Image in RML.

Ask a Question
Keep Informed
0 follower(s)
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.

Register
Odoo Training Center

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

Test it now