Odoo Help

Welcome!

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.

1

Where OpenERP stores manuelly changed settings? [solved]

By
Andrija Burlic
on 10/30/14, 11:43 AM 876 views

Hi,

I've been playing with OpenERP for a while, I learned some basic of OpenERP, but I found one thing that keeps me puzzled for a while.
You can make security files, and it's perfectly clear and easy to use once you lear them.
But, also, you can "manually"change user tights from within OpenERP, via Settings tab. But, when you reinstall you application, all your new settings are gone. 

For example, you can go to settings, click on Groups under Users menu from the left and change some settings (change some write/read rights or so). You can do this for many users and it works. But, when you finally reinstall your module, all this settings are gone, they are just as they were when you first install module.

 

My questions are following: 

- where OpenERP stores this "manually" changed rights- in database, in some hidden file or something else?

- how to save this settings in way that you can easy reload them when you reinstall your module?

Thanks in advance!

1

Ben Bernard

--Ben Bernard--
1083
| 4 3 6
Jakarta, Indonesia
--Ben Bernard--
Ben Bernard
On 10/31/14, 2:17 AM

- where OpenERP stores this "manually" changed rights- in database, in some hidden file or something else?

Database.

- how to save this settings in way that you can easy reload them when you reinstall your module?

Update your xml file, because your new database will be loaded with data from the xml file.

Thank you for your answer, but can you help me a little bit more- do you know exactly what table in database? For xml files, I agree with you, that's the best way for it, but we still have problem when some users (which don't know anything about xml files) manually change some settings- in that case I should be able to "reproduce" their setting. How to do that? Thank you once more!

Andrija Burlic
on 10/31/14, 4:06 AM

The url is your hint, check parameter model=my.model and change "." with "_", that is the table name in database. For example, res.users -> res_users. "'reproduce' their setting", I think this is an open problem so far to do it automatically.

Ben Bernard
on 10/31/14, 4:40 AM

Thank you, I found answer for this. ir_model_access is the answer, you can get this from security file. And as you said, reproducing settings is "open" issue... Thank you for your help!

Andrija Burlic
on 10/31/14, 5: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

1 follower(s)

Stats

Asked: 10/30/14, 11:43 AM
Seen: 876 times
Last updated: 3/16/15, 8:10 AM