如何在Odoo 10中更改标题? [英] How to change the title in Odoo 10?

查看:93
本文介绍了如何在Odoo 10中更改标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用网站构建器应用程序更改了Odoo 10登录页面标题,但登录后无法在其他页面上使用.登录后,当我访问其他已安装的应用程序时,页面标题将显示Odoo,其应用程序名称为产品-Odoo"或客户-Odoo".

I have changed the Odoo 10 login page title by using website builder app but it does not work on the other pages after login. After login when I access different installed apps then the page title shows Odoo with apps name like "Products - Odoo" or "Customers - Odoo".

推荐答案

Odoo 10中,我们需要在JS文件下面进行编辑

In Odoo 10, we need to edit below JS file

addons/web/static/src/js/abstract_web_client.js

更改此代码:

this.set('title_part', {"zopenerp": "Odoo"});

有了这个:

this.set('title_part', {"zopenerp": "YourPageTitle"});

此后,您重新启动Odoo服务器以查看更改.

After this, you restart your Odoo server to see the changes.

这篇关于如何在Odoo 10中更改标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆