跳至内容
菜单
此问题已终结
1 回复
1308 查看

Hi, How to add default value in res_config_settings in odoo, I tried using default it doesnt work ..


形象
丢弃
最佳答案

Hi,

To add default value in res.config.settings,

Inside your module create a data file as follows


<?xmlversion="1.0" encoding="utf-8"?>

<odoo>

    <!-- Adding adefault value for field_name in res.config.settings-->

    <datanoupdate="1">

        <recordid="test_view" model="ir.config_parameter">

            <fieldname="key">module_name. field_name</field>

            <fieldname="value">80</field>

        </record>

    </data>

</odoo>





Hope it helps

形象
丢弃