5

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.

ChesuCR
  • 9,352
  • 5
  • 51
  • 114
user2460152
  • 105
  • 1
  • 3
  • 5

1 Answers1

9

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 ..:)

ChesuCR
  • 9,352
  • 5
  • 51
  • 114
DASADIYA CHAITANYA
  • 2,850
  • 3
  • 18
  • 41
  • 1
    This answer is correct, the `menu="False"` actually removes the report from the menu – George Daramouskas Feb 23 '16 at 11:51
  • Doesn't work for me in V8, and error is strange "ParseError: "ParseError: "The ID "purchase.report_purchase_quotation" refers to an uninstalled module". That's not correct. Purchase is installed as well as in dependency of the module. :( – StackUP Feb 14 '17 at 02:59
  • @StackUP have u tried to check the same functionality with newly created demo or without demo ? – DASADIYA CHAITANYA Feb 14 '17 at 09:01
  • @DASADIYACHAITANYA: I tried in an old DB running on production for almost a year. – StackUP Feb 15 '17 at 01:47
  • @StackUP Issue is with module upgradition process nothing else becuase I have already used from my end so many other report which totally fixed this issue. just try to fix and upgrade properly this will work in odoo V8,V9,V10 as well – DASADIYA CHAITANYA Feb 15 '17 at 10:29
  • Works to Odoo 11 too... i used this solution because the doesn't work on Odoo 11. Thanks – Dario Nov 02 '18 at 12:34