This question has been flagged

Hello,

I'm working on Odoo11 and i'm trying to change the default value of currency field in setting/invoicing  (Technically : currency_id in res.config.settings) to DZD. I want to do that in my custom module and in order to achieve that, i tried to activate the DZD currency first by the XML DATA CODE bellow but it does't work.

Any help please ?

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="base.DZD" model="res.currency">
<field name="active" eval="True"/>
</record>
</data>
</odoo>
Avatar
Discard