Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide a standard report from the print button pull down menu list on Odoo 8?

I have replaced a report from the odoo stock module with my own version.

How can I hide the standard odoo report from the pull down menu list of the print button. I want to do it without deleting the standard report?

I have tried, unsuccessfully, to set the field menu for the stock report id inside a record tag.

I am wondering Where Odoo stores the menu="False" attribute of the report tag. Because the table ir_act_report_xml has no field menu.

like image 439
user2460152 Avatar asked Jun 10 '15 12:06

user2460152


1 Answers

Just We need to override the ids for the base report of stock and you may try to do some things like this.

    <report 
        string="Picking" 
        id="stock.action_report_picking" 
        model="stock.picking" 
        report_type="qweb-pdf"
        name="stock.report_picking" 
        file="stock.report_picking" 
        menu="False"
    />

I have update my existing ids of base stock Picking report in my custom module.

I hope this should helpful for you ..:)

like image 158
DASADIYA CHAITANYA Avatar answered Oct 19 '22 06:10

DASADIYA CHAITANYA