美文网首页
odoo常用查询sql

odoo常用查询sql

作者: 豪威Howie | 来源:发表于2022-08-18 10:49 被阅读0次

    菜单查询(显示路径名)

    select pp.id 
    ,      pp."name" 
    ,      pp.parent_path 
    ,(select  string_agg(name,'/') as path_name from   ir_ui_menu ium where id::text in   
                 (select * from   regexp_split_to_table((select parent_path from ir_ui_menu ium  where id=pp.id),'/')))  path_name
    , pp.web_icon 
    , pp."action" 
                 from ir_ui_menu pp  
    where lower( pp.name) like '%orders%'
    

    相关文章

      网友评论

          本文标题:odoo常用查询sql

          本文链接:https://www.haomeiwen.com/subject/xllegrtx.html