Odoo Help

0

Is there any problem to create two different objects with same columns name ? [v7]

v7
By
Yassine TEIMI
on 2/3/15, 1:01 PM 494 views

It's like a clone of an object, but I'm afraid that it will generate some XML errors, Could I do that kind of clone ?

0
BISSTECH SRL
On 2/3/15, 3:58 PM

You can have more than one model with the same columns. Unless you use one of the Odoo inheritance ways (see inherit/inherits about that in the technical documentation of Odoo), you will not be able to use your new model in the views of the original object. You will have to define new views for your new model. The view is related to the model through a tag in the definition of the record of the view (<field name="model">my.new.model</field>). Feel free to give some reasons for introducing the copy of the model, if you need more help. Best, Ioan.

Hello, Yes there is no problem to clone with the same columns name, I tried to clone sale order object, I had several problems with database dependecies ( foregin key) and with many2amny fields, I had to clone the sale_order_line to another object and link it with the new object, and for the many2many fields, I had to change the relation table, ( wich makes the link between the two objects). because, this relation table, is related to the sale_order_line object. at the end, that was the two main problems with cloning the sale_order object.

Yassine TEIMI
on 2/4/15, 10:32 AM

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/3/15, 1:01 PM
Seen: 494 times
Last updated: 3/16/15, 8:10 AM