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

i have xml with noupdate="1", to delete some model.

but when i update module the delete xml still called.

how to prevent xml delete again. this is my code:

<odoo>

    <data noupdate="1">

        <delete model="ir.actions.report.xml" id="purchase.action_report_purchase_order"/>

        <delete model="ir.actions.report.xml" id="purchase.report_purchase_quotation"/>

    </data>

</odoo>

아바타
취소

Interested in a solution as well, did you find something?

작성자

still didn't have solution. when update module via terminal show some error message, but when system running, the error not affected on system, and module have no error again.

베스트 답변


In Odoo 10 and up (and maybe earlier), you can specify a "search" attribute like so, which only deletes found records:

<delete model="ir.actions.report.xml" search="[('id', '=', ref('purchase.action_report_purchase_order'))]"/>

In older versions of Odoo, you can first create a minimal dummy record before deleting it (I have not tested this):

<report id="purchase.action_report_purchase_order" model="purchase.order"/>
<delete model="ir.actions.report.xml" id="purchase.action_report_purchase_order"/>
아바타
취소
베스트 답변

Duplicate the "contact creation" group, and remove the delete right for all models in the access rights tab.

Then asign that group to the selected user,


Kind regards,

아바타
취소
관련 게시물 답글 화면 활동
Delete Blank Lines 해결 완료
1
8월 24
1693
1
11월 23
4199
1
4월 24
2205
Delete my account 해결 완료
3
11월 24
10473
1
8월 22
2981