Odoo 8 new menu item under Settings>technical>email - email

I want to add a new menu item under the parent Settings/Technical/Email but I don't have an idea how, any help pls.
Thanks

You need to add your menu under parent="base.menu_email", something like this:
<menuitem name="your_menu_name" id="your_menu_id" parent="base.menu_email" action="the_action_for_your_menu" />
For more details you can review addons/mail/mail_message_subtype.xml, I hope this can be helpful for you.

Related

{{block type="core/template" column_count="4" category_id="50" template="catalog/product/list.phtml"}} is not working in magento2

I am new to magento2. I want to show a particular category products in my home page. I am using this code:
{{block type="core/template" column_count="4" category_id="50" template="catalog/product/list.phtml"}}
But it's not working.
Thanks in advance,
rani
You need to change your code like this :
{{block class="Magento\Catalog\Block\Product\ListProduct" category_id="50" name="home.products.list" template="Magento_Catalog::product/list.phtml"}}
If You want to add the products on home then follow the few steps.
Edit your home page -> click on Insert Widget-> select catalog product list->
Select category in Conditions
If you want to display product of particular category. Just add line of code in pages.
{{block class="Magento\Catalog\Block\Product\ListProduct"
name="category.products.list" as="product_list" category_id="51"
template="product/list.phtml"}}

Toggle visibility of fxml fx-include

how can I show/hide an included (fx-include) control?
<fx:include fx:id="testCaseComboboxUI" source="TestCaseComboboxUI.fxml" visible="false" managed="false"/>
I would like to show or hide the above conditionally. Something like testCaseComboboxUI.setVisible(true)?
Many thanks
Never mind, I was able to find the answer
#FXML private Parent testCaseComboboxUI;
Reference

Removing the accounting tab (page) on Partner form

I've tried to eliminate the Accounting tab on Partner, yet I wasn't able to "hide" the Accounting tab. Is there a specific file in which I should use the following code (or similar):
<page string="Sales & Purchases" position="attributes">
<attribute name='invisible'>1</attribute>
</page>
I'm trying to put this into partner_view.xml in accounting. I'm disoriented, and would appreciate any help on this.
thanks a lot in advance.
Matias
Never do changes in main addons modules. Better create custom module. and inherit base.view_patner_form and add this in your xml,
<xpath expr="//page[#string='Accounting']" position="attributes">
<attribute name='invisible'>True</attribute>
</xpath>
For your reference, If you want to know how to create custom module, then check this, After inheriting CRM-Lead unable to hide or add fields to my Custom module in Openerp
Hope this will help you.

How to change add to cart button styles in magento

Please help me. New to magento. I need to change a default add to cart button style. So what should i do? please help step by step. i am a beginner.
As you are new to magento, You have to learn a lot in this.. I will simply tell you the steps to solve your problem but you have to know each step we make. In magento, go to this path, magento/app/design/frontend/default/default/ Now you can see only two folders ie., etc and locale. and now go to this path magento/app/design/frontend/base/default. Here you can see the same folders as there in the above path with extra two folders. Copy the template and layout folders and paste them in the first path ie., magento/app/design/frontend/default/default/.
Now go to the path magento/app/design/frontend/default/default/template/catalog/product/view/addtocart.phtml. In the line no. 35, you can see code for att-to-cart button. Now modify this step as below
<div class="add-to-cart"><div class="button btn-cart" onclick="productAddToCartForm.submit(this)"><a><img src="<?php echo $this->getSkinUrl('images/add-to-cart.png')?>" alt="Add To Cart" /></a></div></div>
Now you need to add your image in the following path, magento/skin/frontend/default/default/images Here add your image. Dont forget to modify your image name in the code. Now you can see the result. If not, get back to me.

JQGrid - Add buttons to a Form Edit dialog

I have been using JQGrid for about a year now and I love it. Just wondering if someone knows a way to add a button or two that will trigger my own code on a Form Edit page? Not on the grid itself - the edit dialog.
Would I just use the onInitializeForm event?
Thanks!
Jim
I used jQuery to do this. In my case I had a drop-down select item as a field on the edit for and I wanted to add a link next to it. I used the beforeShowForm event.
beforeShowForm: function(form) {
$("#MyDropDownList").after("<a href='#' id='link'>A Link To Something</a>");
},
Hope this helps, even though it's a few weeks late.