i'm using odoo 11 and i have installed open HRMS core which install a specific theme. After that i have installed another module which named overtime (bt_hr_overtime_automatic) to satisfy my needs but the problem is in the menu of the apps the new module doesn't has a icon and i want to add one(Ps: the module has a picture named "icon.png" in the folder /static/description/). Any idea on how to do that ?
You must use "web_icon" in your menu to show your own icon. Save your icon in a directory. Size can be 256x256 File format should be .ico
Don't forget to upgrade your module after adding this code. Sometimes cache will show the old icon, if so try this in incognito mode or clear the cache
web_icon="your_module_name,static/description/icon.ico".
Example Code:
<menuitem name="Overtime" id="your_menu_id" action="your_action_id" web_icon="your_module_name,static/description/icon.ico"/>
Front End:
If you want to add it in front end Go to
Settings-->Technical Settings-->Menu Item-->Your Menu-->Web Icon File Please refer screen shot
First: create static folder inside your module directory .
Second: create description folder inside static folder.
Third: Make sure that your icon image is in png format .. like : icon.png .. and put it in static/description/
Finally: Restart Odoo Server and refresh your browser .
i tried it with odoo12 and it works
Related
I am currently building a Windows Universal App and the learning curve is OK. I get a response from my webservice, parse the JSON, display info in the app, but my current issue is the following one:
I tried to display an image that I put in the Assets folder, but this doesn't seem to work.
This is my layout:
As you can see, the text "Test" is correctly displayed but not the images.
On the right side, in the explorer pannel, I cannot see the files that should be here:
WHAT I HAVE TRIED:
In my example, they are in the Assets/picto folder, but I have also tried the root directory Assets, as wal as creating Image folder at the same level.
I have definitely no idea how to add a simple picture, so any help is appreciated!
Adding items in Windows explorer to the right location doesn't add them to your solution / deployment.
You have to right-click the picto folder -> Add > -> Add existing item. Your items are not even in your solution, so they won't show up on the layout screen.
Make sure you set the correct build target for each image.
If an image shouldn't show up, even through it's in your solution, this is often the reason.
I'm making a custom *.saver application, and I would like to add my own thumbnail to show up above the name of screensaver (the ladybug pictures in the left column). How do I do that?
By examining the default screensavers, I figured out that you need to add two files:
thumbnail.png, 58x90px
thumbnail#2x.png, 116x180px
When compiled by Xcode, this is automatically included in the .saver Resources folder as "thumbnail.tiff" with two subfiles.
In my custom component, I am using the following code to bring the Media Manager popup:
JToolBarHelper::media_manager('directory', 'Upload');
"directory" obviously sets the default directory that will appear when the button is clicked, which it does, but when I go to upload an image, it uploads to the standard "images" folder rather than images/directory.
I have looked around Google and the majority of pages say that it was a bug in Joomla 1.5 which I assume was fixed in Joomla 2.5. Is there another way to get the default directory working?
media_manager invokes with folder= and the directory you passed. But it expects the path below your images folder.
So if your folder is
/images/uploaddir
you would invoke it with
JToolBarHelper::media_manager('uploaddir', 'Upload');
my question is incredibly simple yet I haven't been able to find an answer online. I made a small image in photoshop and am trying to incorporate it in my current website. I don't know how to get the image into dreamweaver into the image folder in the dreamweaver panel.
You can copy the image into the image directory of your root folder and simply add the markup where you want to add the image.
<img src = "[your image link]" />
Or simply add the images using the files panel- Insert->Images->Select your image then press ok.
try the following
1- ctrl + Alt + I and choose your image from the dialog
2- copy manually the image you created to the website directory on your hard drive
hope this hepls!
Your image folder should be stored locally on your machine in your site-root folder.
In Photoshop: Save for Web Devices, Navigate to the Root Folder where your site is stored, Open Image Folder and Save Image in that location.
In Dreamweaver: Go to Files Panel, hit refresh button and the image should now appear in the images folder.
The easiest way to do this by far is too put your cursor on the part of the page you'd like you picture to reside.
Then using the top menus click "Insert" and then "Image", once you have done this you'll be able to find your image on your local computer or network and you will be prompted to save it to your site with the site directory already up - then just choose where to save your file.
It's best practice to save all images into the images folder.
Hope that helps!
i have downloaded a slideshow module for my site.and i have installed it in my site,the module is displayed in the site output but the images are not displayed.I am confused how to display the images in the slideshow.Please help me out.
You may have forgotten to enable the the module under the module manager. Clicking on the slideshow module manager will also reveal the settings for the module, where you can add/remove or change the images.
There are a number of things to check here, without knowing the exact module you are using:
Check the module has been enabled and placed on the page you want
Check the folder or image link is written correctly (e.g. images/IntroSlides displays all the images in that folder for the module I use)
Check the module width and height is set. This fixed a similar problem for me a few days ago