Skip to Content
Menu
This question has been flagged
1 Reply
4907 Views

Hi,

Under the Accounting -> Configuration -> Settings -> Analytics area, i want the Analytical Accounting to be turned on as a default thing. I have tried but can't seem do it, I can make it checked as default but it won't turn on the feature until and unless i click on save button. What i want is that the feature should get turned on as soon as the app gets installed or user gets created or db gets created i.e., i want the feature on, every time and the user shouldn't have to do anything to turn it on. How can i achieve this? Any ideas on how-to are much appreciated.

Avatar
Discard
Author Best Answer

I got to know we can achieve this by placing the following code in any one of the xml files. It worked fine for me.

<record model="res.config.settings" id="res_config_settings_custom">
<field name="group_analytic_accounting" eval="1"/>
</record>

<function model="res.config.settings" name="execute">
<value eval="[ref('res_config_settings_custom')]"/>
<value eval="{}"/>
</function>

Hope it'll be of any use to anyone who's stuck with the same issue.

Regards,

Sameer

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 23
1367
1
May 23
3653
1
Apr 23
1342
3
Oct 22
7962
0
Jul 22
4705