Community mailing list archives

Re: Odoo initial default params

Mohamed Hagag
- 06/30/2015 12:48:21

thanks oscar,

for now I found that i can use developer mode and set defaults to acheive part of my needs ( some fields can get new defaults like customer language ) .


On 06/30/2015 04:34 PM, Oscar Alca wrote:
<blockquote cite="" type="cite">
I thing you may create a module to initialize your data, for the lang ie.:

create a data/data xml with the following

<?xml version="1.0"?>
    <data noupdate="1">
        <function name="function_name" model="your.model"/>

the model must be declared as follows:
class your_model(osv.TransientModel):
    def function_name(self, cr, uid, context=None):
        {code that write everything you need}

On Tue, Jun 30, 2015 at 1:49 AM, Mohamed M. Hagag <> wrote:


I would like to know how to reset default parameters and values like :

- default currency of the system ( that everything gets the new currency ex. Product price currency ) - I know the normal user method which is a partial one.

- default installation language change the default language so that when creating a new customer the language of the customer will be the new default language .

these 2 points are very annoying that we can't change them for everything after the DB initialized .

I think that such info are being saved some where in the DB, or is being processed on the first id of record - ex. = 0 is the default for all customer's language ?


Post to:



Ing. Oscar Alcalá Rivera
312-107-1704 ·

Vauxoo SA
Tlf: 3123111122

Open Source Enthusiast


   twitter linkedIn   Google+  

eco No me imprimas si no es necesario. Protejamos el medio ambiente

Post to: