Odoo Help

Welcome!

This community 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.

1

ODOO9: How to call a mimetype in xml?

By
Drees Far
on 3/17/16, 12:45 PM 320 views

Hello everybody!!!!

Can anyone help me know how can i call a mimetype to set it as a background of a button in my xml file.

Or, even how to set an icon as a background of a button.

Thanks a lot in advance.

Best Regards

0
Motez
On 3/18/16, 4:30 AM

you can place an icon in a button by using the icon attribute. However this is limited to the default odoo icons. If you want to use your own icons then you should use CSS for that:

1- Add a class to your button 

2- define a new css file if you don't have one

3- do whatever you want with CSS  :)

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/17/16, 12:45 PM
Seen: 320 times
Last updated: 3/24/16, 4:10 PM