Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
10 Odgovori
8050 Prikazi

Hello,

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!

Avatar
Opusti
Avtor Best Answer

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




Avatar
Opusti

Thank you. I was having the same issue until I read this. Helped me a lotttt!!!!!!

Best Answer

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.

Avatar
Opusti

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

Avtor

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!

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

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

Avtor

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

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...

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

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.

Related Posts Odgovori Prikazi Aktivnost
1
jan. 16
5654
1
jan. 25
22093
1
maj 21
4418
5
jan. 17
3674
3
jul. 15
3420