Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to update a module's config.settings from another module?

Timo Talvitie
on 8/16/13, 4:49 AM 1,857 views

Some modules provide extra configuration options in the Settings -> Configuration panel.For example sale_stock provides a checkbox to allow the use of separate shipping and invoice addresses, but it is not checked by default.

When I create and install a custom module that depends on sale_stock I would also like the multiple addresses feature to be automatically enabled without needing to go to the configuration page to check the checkbox. Is it possible to do this from my own module?

raul paz
On 6/9/14, 6:06 PM

Try to add next code in one xml:

        <record model="sale.config.settings" id="sale_config_settings_mymodule">

            <field name="group_sale_delivery_address" eval="1"/>


        <function model="sale.config.settings" name="execute">

            <!-- ids = -->        <value eval="[ref('sale_config_settings_mymodule')]"/>

            <!-- context = -->    <value eval="{}"/>


Someone have to accept this answer, it's awesome !

on 7/7/15, 11:33 AM

Yes it works - very useful. I'd convert this to an answer if I had enough karma

Kurt Haselwimmer
on 5/16/16, 4:11 PM
On 8/17/13, 12:06 PM

Dear Timo, https://github.com/cmorisse/base_module_record-for-OpenERP-7/ Is this the one that you are looking for ?

Thank you, that module provided some interesting information that will be useful later on. However it did not solve the original issue - it did successfully record some XML data to a new module, but installing this new module did not enable the required setting inside OpenERP.

Vizucom Oy, Timo Talvitie
on 8/20/13, 4:22 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 8/16/13, 4:49 AM
Seen: 1857 times
Last updated: 3/16/15, 8:10 AM