Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6103 Weergaven

Hi,

We have a custom model within our V7 of OpenERP system. It is a model that is linked to the partner screen via a onetomany field within res.partner.

I have created a menu and view for this model, but now need to go a little deeper in terms of what I can do. For instance, I cannot just go to settings>user interface>views and click create new search view. The form defaults to view only and I have no option to create a Search view. Also I need to make a change to order etc, which I understand is only available within the custom module code.

So the question is, can I just generate a module based on an existing custom model? If I create a module and import it, will I lost data with the database table, if the same?

What is the best approach?

Many thanks!

Avatar
Annuleer
Beste antwoord

well... my first advice is never configure OpenERP model with the user interface, if you do so you will run into problems like the one you are describing. Second, configure the OpenERP model with a custom module. In the module you can configure the object model and the views. Adding extra information to the partner form is not a big deal.

Now, what to do with the extra information you already created? Well... first create a backup of the database. Then restore the backup in a new database. Install the new module. Then you have to update the current database with the information you loaded in the restored database. You can do that with a Python script

Avatar
Annuleer
Auteur

Hi, thanks for the prompt response! So essentially I need to make a basic module and then I can customise from within the system. But always start off with a custom module? Is there any documents on this process? Also in terms of getting this in as a custom module by restore the backup. Can you go into some more detail? Many thanks!

Gerelateerde posts Antwoorden Weergaven Activiteit
0
dec. 24
1489
1
mrt. 24
2550
1
jun. 23
12578
0
jan. 23
3205
2
sep. 20
4219