update doc

This commit is contained in:
Ivan Office
2023-08-17 22:08:02 +08:00
parent 0e725f33d7
commit 42e937def9
6 changed files with 20 additions and 19 deletions

View File

@@ -2,12 +2,12 @@
<odoo>
<data noupdate="0">
<!-- 时间格式 -->
<record id="base.lang_zh_CN" model="res.lang">
<record id="base.lang_zh_CN" model="res.lang" context="{'lang': 'zh_CN'}">
<field name="name">中文</field>
<field name="date_format">%Y-%m-%d</field>
<field name="time_format">%H:%M:%S</field>
</record>
<record id="base.lang_en" model="res.lang">
<record id="base.lang_en" model="res.lang" context="{'lang': 'zh_CN'}">
<field name="name">English</field>
</record>
</data>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="base.public_partner" model="res.partner">
<record id="base.public_partner" model="res.partner" context="{'lang': 'zh_CN'}">
<field name="name">公共访客用户</field>
</record>
</data>

View File

@@ -1,8 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="sales_team.team_sales_department" model="crm.team">
<record id="sales_team.team_sales_department" model="crm.team" context="{'lang': 'zh_CN'}">
<field name="name">中国</field>
</record>
<record id="sales_team.team_sales_department" model="crm.team" context="{'lang': 'en'}">
<field name="name">China</field>
</record>
</data>
</odoo>

View File

@@ -137,6 +137,7 @@
42. Add menu navbar setup for top or bottom. navigator footer support.
43. Check to only Debug / Debug Assets for Odoo Admin. Deny debug from url for other user.
44. Check to stop subscribe and follow. This to make odoo speed up.
45. Add addons path info to module.
This module can help to white label the Odoo.
Also helpful for training and support for your odoo end-user.
@@ -188,5 +189,6 @@
42. 可设置导航栏在上方还是下方,分开桌面与移动端.
43. 可设置只允许管理员进入开发者模式不可在url中直接debut=1来调试
44. 可配置停用自动用户订阅功能这会提速odoo减少资源消耗
45. 为应用模块增加模块路径信息
""",
}

View File

@@ -18,6 +18,7 @@ class IrModule(models.Model):
local_updatable = fields.Boolean('Local updatable', compute=False, default=False, store=True)
addons_path_id = fields.Many2one('ir.module.addons.path', string='Addons Path ID', readonly=True)
addons_path = fields.Char(string='Addons Path', related='addons_path_id.path', readonly=True)
license = fields.Char(readonly=True)
def module_multi_uninstall(self):
""" Perform the various steps required to uninstall a module completely

View File

@@ -26,7 +26,7 @@
<field name="inherit_id" ref="base.view_module_filter" />
<field name="arch" type="xml">
<field name="name" position="after">
<filter name="author"/>
<field name="author"/>
</field>
<filter name="not_installed" position="after">
<filter name="is_local_updatable" string="Local updatable" domain="[('local_updatable', '=', True)]"/>
@@ -45,15 +45,10 @@
<h3 class="oe_fade" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</h3>
<field name="website" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</field>
<xpath expr="//notebook/page/group" position="inside">
<group name="module_path">
<field name="category_id" position="after">
<field name="addons_path_id" invisible="1"/>
<field name="addons_path" groups="base.group_no_one"/>
</group>
</xpath>
</field>
</field>
</record>