Files
app-odoo/app_base_chinese/data/ir_default_data.xml
2024-12-18 16:08:07 +08:00

26 lines
1.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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>