New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules update problems after upgrade to v10 #1838
Comments
This is because you have a duplicated language Any way, not OpenUpgrade issue itself, but on your data. |
Data upgraded by OpenUpgrade. OpenUpgrade should transform database to
No, this is because, when updated, the base module load a long list of
No publication. As understand it: res_lang store installed language in Odoo <= 9 and Upgrading a full working database with OpenUpgrade should not made it |
Sorry, but no. If you have screwed up your data, it's your duty to fix them. The long list is there since the beginning, and if you keep the proper XML-IDs linked to those records, they are updated, not created again. |
I didn't screwed up my data: The database work in Odoo v9. The only thing I do was running OpenUpgrade. |
With that attitude what you are going to get is my denial of even answering you. I'm guessing you added manually the language in v9 instead of activating it through "Load translation" wizard. Could that be that way? |
FYI, this is the code where this is handled here in OpenUpgrade: OpenUpgrade/odoo/addons/base/migrations/10.0.1.3/pre-migration.py Lines 170 to 189 in e41c996
|
The language was added long time ago in an Odoo v7, but it wasn't by If I look at the database after the migration from Odoo 9 to 10, I see Is it possible that these missing xml_id come from the older version PS: Open a mailling list for this kind of situation would |
XML-IDs are created on the fly in this case in the piece of code that I have pointed below, and it's prepared for handling regional variations. Did the language in <v10 have a proper code informed? |
Execute the select part of that SQL in v9 DB and put the result here. |
select id, name, module, model, res_id from ir_model_data where model='res.lang';
id | name | module | model | res_id
-------+------------+--------+----------+--------
963 | lang_en | base | res.lang | 1
21385 | lang_de | base | res.lang | 3
21386 | lang_fr_CH | base | res.lang | 2
21387 | lang_en_US | base | res.lang | 1
(4 rows)
It's strange that after upgrade from v9 to v10 theses xml_id wasn't created. I didn't see anything in the migration log about this. |
Well, this should match then with the new entry: https://github.com/OCA/OpenUpgrade/blob/10.0/odoo/addons/base/res/res.lang.csv#L23 and don't give any conflict, so now you have all the hints for investigating the problem. |
Yep. Thank. I will investigate after my return of holiday 😃 |
@sebastienhasa got this problem after a migration. Do you remember what did you do to solve it? |
I've done a migration from Odoo v9 to v10 using OpenUpgrade.
Openupgrade finish without problem but when I import the migrated
database to an Odoo v10 and upgrade the modules, I got this error:
The base module is marked as supported here:
#757
So, I was thinking this would work.
After some inspection on the res_lang database, I see that its id
field is an Integer, when in the csv file it's a String. Did something
go wrong on my upgrade?
The text was updated successfully, but these errors were encountered: