Closed GabbasovDinar closed 5 years ago
For that cases, you have to fix manually the problem. It seems a specific context was put on that action, or maybe some custom modules that mangle standard records. But this doesn't seem something generic to be fixed on OpenUpgrade itself.
The error in the Analytic Accounts is related to the execution of the function:
def get_bindings(self, model_name):
The function makes a request to the database:
cr = self.env.cr
query = """ SELECT a.id, a.type, a.binding_type
FROM ir_actions a, ir_model m
WHERE a.binding_model_id=m.id AND m.model=%s
ORDER BY a.id """
cr.execute(query, [model_name])
and cr.fetchall()
there are two results:
action_model=ir.actions.act_window action_id=437 binding_type=action_form_only
action_model=ir.actions.wizard action_id=629 binding_type=action
The second result is incorrect How can I remove old data from db?
The issue is solved if I use such request to the database.
DELETE FROM ir_actions WHERE id=629;
What is the XML-ID of that action? Can it be mangled by any extra module that changes any of the fields? In any case, this kind of operations is expected DB per DB due to a lot of possible interactions.
The issue is solved if I use such request to the database.
DELETE FROM ir_actions WHERE id=629;
You might need to delete xml-id (record in ir.model.data) too to keep db clean
You might need to delete xml-id (record in ir.model.data) too to keep db clean
If I don't remember bad, database_cleanup
module does this in an automated way for all dangling XML-IDs entries.
Closing as no news.
I migrated a database from 7.0 to 11.0 (using intermediate migrations 8.0-10.0). Then, I used the
https://github.com/OCA/server-tools/tree/11.0/database_cleanup
module and cleared the data, but in some cases, errors occur because old data is used. f.e.We don't have the
mail.group
model in Odoo 11.0 (I have the error when I click to Settings > Technical > User Interface > Menu Items
)The second error:
Invoicing > Configuration > Analytic Acconting > Analytic Accounts
How can I fix it? Thanks P.S.
-u all
didn't help