콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
10 답글
8060 화면

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!

아바타
취소
작성자 베스트 답변

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




아바타
취소

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

베스트 답변

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

작성자

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

작성자

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.

관련 게시물 답글 화면 활동
1
1월 16
5665
1
1월 25
22116
1
5월 21
4434
5
1월 17
3679
3
7월 15
3429