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.

0

Survey.survey copy_data problem

By
Sandor Dobi
on 7/17/15, 11:06 AM 438 views

Hi,


When i call on a survey object the copy method it is correctly duplicating the whole object tree. But there is one big problem.

The survey title gets overwrited with the original title appended wtih (copy) word. It is very annoying because i cannto override it. It is allways saved into database table with the original title appended with "(copy)".


Worse the title field is translateable.

So when i do the following code:

newsurvey = survey.copy()
newsurvey.write({'title': 'New title for new survey'})

Then i see the 'New title for new survey' in the survey list or form BUT in the database table there is 'original Title (copy)'

When i switch language in the backend or frontend, i lost my 'New title for new survey' data nad getting back 'original title (copy)'

It is very annoying, how i can get rid of this copy 'feature' and make sure that my title names will remain in survey


Thanks  


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: 7/17/15, 11:06 AM
Seen: 438 times
Last updated: 7/17/15, 11:06 AM