移除系统中odoo相关标识、信息
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
""",
|
""",
|
||||||
'category': 'sf',
|
'category': 'sf',
|
||||||
'website': 'https://www.sf.jikimo.com',
|
'website': 'https://www.sf.jikimo.com',
|
||||||
'depends': ['web', 'purchase'],
|
'depends': ['web', 'purchase', 'base_setup'],
|
||||||
'data': [
|
'data': [
|
||||||
|
'views/bye_odoo.xml',
|
||||||
],
|
],
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
@@ -23,6 +23,8 @@
|
|||||||
'web.assets_backend': [
|
'web.assets_backend': [
|
||||||
'jikimo_frontend/static/src/fields/custom_many2many_checkboxes/*',
|
'jikimo_frontend/static/src/fields/custom_many2many_checkboxes/*',
|
||||||
'jikimo_frontend/static/src/fields/Many2OneRadioField/*',
|
'jikimo_frontend/static/src/fields/Many2OneRadioField/*',
|
||||||
|
# 移除odoo相关标识
|
||||||
|
'jikimo_frontend/static/src/bye_odoo/*',
|
||||||
'jikimo_frontend/static/src/scss/custom_style.scss',
|
'jikimo_frontend/static/src/scss/custom_style.scss',
|
||||||
# 'jikimo_frontend/static/src/views/list_nums/list_nbCols.js',
|
# 'jikimo_frontend/static/src/views/list_nums/list_nbCols.js',
|
||||||
'jikimo_frontend/static/src/views/list_nums/list_nums.xml',
|
'jikimo_frontend/static/src/views/list_nums/list_nums.xml',
|
||||||
|
|||||||
23
jikimo_frontend/data/demo_data.xml
Normal file
23
jikimo_frontend/data/demo_data.xml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<record id="partner_demo_company" model="res.partner">
|
||||||
|
<field name="name">JKM</field>
|
||||||
|
<field name="street">B-25</field>
|
||||||
|
<field name="city">USA</field>
|
||||||
|
<!-- Use the correct reference or actual ID for the country -->
|
||||||
|
<field name="country_id" ref="base.bd"/>
|
||||||
|
<field name="zip">1229</field>
|
||||||
|
<field name="phone">+8801-712901764</field>
|
||||||
|
<field name="email">info@kolpolok.com</field>
|
||||||
|
<field name="website">www.kolpoloktechnologies.com</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="demo_company" model="res.company">
|
||||||
|
<field name="name">Custom</field>
|
||||||
|
<field name="logo" type="base64" file="kolpolok_custom_title_and_favicon/static/src/img/favicon.ico"/>
|
||||||
|
<field name="favicon" type="base64" file="kolpolok_custom_title_and_favicon/static/src/img/favicon.ico"/>
|
||||||
|
<field name="partner_id" ref="partner_demo_company"/>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
16
jikimo_frontend/static/src/bye_odoo/extended_user_menu.js
Normal file
16
jikimo_frontend/static/src/bye_odoo/extended_user_menu.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/** @odoo-module **/
|
||||||
|
import { UserMenu } from "@web/webclient/user_menu/user_menu";
|
||||||
|
import { patch } from "@web/core/utils/patch";
|
||||||
|
import { registry } from "@web/core/registry";
|
||||||
|
const userMenuRegistry = registry.category("user_menuitems");
|
||||||
|
|
||||||
|
|
||||||
|
patch(UserMenu.prototype, "legion_hide_odoo.UserMenu", {
|
||||||
|
setup() {
|
||||||
|
this._super.apply(this, arguments);
|
||||||
|
userMenuRegistry.remove("documentation");
|
||||||
|
userMenuRegistry.remove("support");
|
||||||
|
userMenuRegistry.remove("odoo_account");
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
11
jikimo_frontend/static/src/bye_odoo/favicon.js
Normal file
11
jikimo_frontend/static/src/bye_odoo/favicon.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
/** @odoo-module **/
|
||||||
|
|
||||||
|
import { WebClient } from "@web/webclient/webclient";
|
||||||
|
import { patch } from "web.utils";
|
||||||
|
|
||||||
|
patch(WebClient.prototype, "kolpolok_custom_title_and_favicon.WebClient", {
|
||||||
|
setup() {
|
||||||
|
this._super();
|
||||||
|
this.title.setParts({ zopenerp: "JIKIMO" });
|
||||||
|
},
|
||||||
|
});
|
||||||
BIN
jikimo_frontend/static/src/img/favicon.ico
Normal file
BIN
jikimo_frontend/static/src/img/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
jikimo_frontend/static/src/img/jikimo-logo.ico
Normal file
BIN
jikimo_frontend/static/src/img/jikimo-logo.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
jikimo_frontend/static/src/img/jikimo.ico
Normal file
BIN
jikimo_frontend/static/src/img/jikimo.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
35
jikimo_frontend/views/bye_odoo.xml
Normal file
35
jikimo_frontend/views/bye_odoo.xml
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
|
||||||
|
<!-- 修改页面头部图标及文字 -->
|
||||||
|
<template id="favicon_icon" inherit_id="web.layout" name="Web layout">
|
||||||
|
<!-- change the title with reliance partner -->
|
||||||
|
<xpath expr="//head//title" position="before">
|
||||||
|
<title t-esc="'JIKIMO'"/>
|
||||||
|
</xpath>
|
||||||
|
<!-- change the default favicon icon with -->
|
||||||
|
<xpath expr="//head//link[@rel='shortcut icon']" position="replace">
|
||||||
|
<link type="image/x-icon" rel="shortcut icon" href="/jikimo_frontend/static/src/img/jikimo-logo.ico"/>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- hide 登录页面 powerd by odoo 及管理数据库 -->
|
||||||
|
<template id="login_page_layout" inherit_id="web.login_layout" name="Login Page Layout">
|
||||||
|
<xpath expr="//div[@class='card-body']//div[last()]" position="replace"></xpath>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- 隐藏odoo版本信息 -->
|
||||||
|
<record id="jikimo_res_config_settings_view_form" model="ir.ui.view">
|
||||||
|
<field name="name">jikimo.res.config.settings.view.form.inherit.base.setup</field>
|
||||||
|
<field name="model">res.config.settings</field>
|
||||||
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//div[@id='about']" position="replace">
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user