module : mail. Problem in the structure database (mail.mail, mail.message)
Hi everybody,
working on 'mail' module migration, I have some problem. (again...)
It seem like the class in 6.1 "mail.message" is not the same class that 7.0 "mail.message".
*** In 6.1, there is only
- mail.message.common (abstract)
- mail.message (inherit 'mail.message.
*** In 7.0 there is :
- mail.message (inherits 'ir.needaction_
- mail.mail (inherit 'mail.message'). The doc says : "Model holding RFC2822 email".
*** the migration should be :
- res.log, comment & other ----> mail.message
- mail.message ----> mail.mail
*** Propose :
- in mail / pre-migration.py, renaming the table mail_message in "openupgrade_
- the system recreate the table "mail_message" because it doesn't exist ;
- in mail / post-migration.py :
--> using "openupgrade_
--> using "res_log" & other to write into the new "mail_message" ;
What do you think ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Stefan Rijnhart (Opener)
- Solved:
- Last query:
- Last reply: