mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
init ooo18 from 16
This commit is contained in:
25
app_base_chinese/data/ir_default_data.xml
Normal file
25
app_base_chinese/data/ir_default_data.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- 各种默认值 -->
|
||||
<!--设置客户默认国家为中国-->
|
||||
<function model="ir.default" name="set"
|
||||
eval="('res.partner', 'country_id', ref('base.cn'))"/>
|
||||
<!--设置默认时区为中国,注意select 类型要加 ""-->
|
||||
<function model="ir.default" name="set"
|
||||
eval="('res.partner', 'tz', 'Etc/GMT-8')"/>
|
||||
<!--设置用户email在odoo内提醒-->
|
||||
<!-- fix,此处不可设置,因为门户用户只能通过 email,不能 inbox-->
|
||||
<!-- <function model="ir.default" name="set"-->
|
||||
<!-- eval="('res.users', 'notification_type', 'inbox')"/>-->
|
||||
<!--设置产品默认是可库存产品-->
|
||||
<function model="ir.default" name="set"
|
||||
eval="('product.template', 'detailed_type', 'product')"/>
|
||||
<!--设置翻译导出默认中文-->
|
||||
<function model="ir.default" name="set"
|
||||
eval="('base.language.export', 'lang', 'zh_CN')"/>
|
||||
<!--设置翻译导出默认po-->
|
||||
<function model="ir.default" name="set"
|
||||
eval="('base.language.export', 'format', 'po')"/>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user