Odoo Help


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.


Why odoo want to delete some items when update all module ?

Guillaume Seran
on 9/24/15, 6:10 AM 832 views


I have import new accounting account in odoo with csv file.

Now when I do the command to update odoo ( ./openerp-server -c odoo-server.conf -d database -u all ),
odoo wants to delete these new accounts.

log line :

2015-09-24 09:47:02,833 6929 INFO database openerp.addons.base.ir.ir_model: Deleting 3787@account.account (account.account_401GE0atdc)

Why it do this ? And of course the update crash when it want to delete a non-empty account!

Guillaume Seran
On 9/24/15, 9:58 AM

Thank you Temur for your answers !!!

I found something interesting with the "external_id" used in my csv import file!

I wrote this in external_id : account.account_401GE0atdc
No error in import but delete the record if i do an update.

Now if in external_id I wrote account_401GE0atdc or account_account_401GE0atdc or __export__.account_401GE0atdc
No error in import and it not try to delete records when I do update



| 6 4 7
Tbilisi, Georgia
On 9/24/15, 7:29 AM

AFAIK for now that is an expected behavior. Update will delede/discard all customized stuff. you can safely update only if you're using original settings. Changes made from developer mode, custom fields, view customization, etc.. will be discarded. Simply it works this way now, I don't know if it'l be changed in the future. So, if you add custom fields from developer mode, customize views from developer mode, and after many more customization changes, you can't update involved modules anymore, or you loose these customizations.

NOTE: if you customize at code & XML level, then such customizations will be preserved and not deleted...

on 9/24/15, 7:43 AM

Thank you for your answer ! So if i import products from a csv file and I want to update Odoo later; odoo will delete these products ?? It's crazy!

Guillaume Seran
on 9/24/15, 8:20 AM

No, that's NOT a case, Odoo will not delete your products. it's a different case...

on 9/24/15, 8:23 AM

Ok, I'll try to explain it otherwise: Odoo will reset some customized stuff BUT any normal records and data will be preserved...

on 9/24/15, 8:29 AM

But when I import my new accounting accounts in odoo it's just data too! As if I import products

Guillaume Seran
on 9/24/15, 8:41 AM

by adding accounts you're setting up Chart Of Accounts, it's a setting, not a normal data... normal data there is journal entries/Journal Items, that are stored inside of accounts... these journal entries/items will not be touched by update...

on 9/24/15, 8:50 AM

When you installed accounting, you should be asked to choose "Accounting Package", what were your choice at that point?

on 9/24/15, 9:04 AM

Default value for "Accounting Package" is "Custom", I've leaved it unchanged, then I customized chart of accounts, that's how I've installed accounting... Now I'm tried to update and no any account were deleted... It means normally accounts are not deleted by update process. if you've chosen other thing then "Custom" for "Accounting Package" configuration, then it installs additionally some "l10n_*" module, it's quite possible that deletion is initiated from that additional module. So, most probably problem is in your local configuration in this case. I updated odoo successfully with the exactly same command as you posted.

on 9/24/15, 9:38 AM

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)


Asked: 9/24/15, 6:10 AM
Seen: 832 times
Last updated: 9/24/15, 11:04 AM