mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update doc
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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. 为应用模块增加模块路径信息
|
||||
""",
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)]"/>
|
||||
@@ -40,20 +40,15 @@
|
||||
<record id="app_module_form" model="ir.ui.view">
|
||||
<field name="name">app.ir.module.module.form</field>
|
||||
<field name="model">ir.module.module</field>
|
||||
<field name="inherit_id" ref="base.module_form" />
|
||||
<field name="inherit_id" ref="base.module_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user