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

I want to add a button that, when clicked, adds input fields. How will I do?

아바타
취소
작성자

Hello Daniel Can you give me an example. I'm new in OpenERP. How can I link the button to the condition.

베스트 답변

HI, you can follow following tutorial for this:

https://youtu.be/kwkddYoFQCE

Hope it helps,

Thanks

아바타
취소
베스트 답변

Hi,

Checkout the app functionality on clicking the button it is able to add fields in form view.

https://apps.odoo.com/apps/modules/16.0/dynamic_product_fields/

Regards

아바타
취소
베스트 답변

One solution is to have those fields in the form, with the attribute attrs="{'invisible: <condition>}". The button would change a value in the document, and based on that value the <condition> could evaluate to False to make the corresponding fields visible.

아바타
취소
베스트 답변

Or try this: http://stackoverflow.com/questions/17738566/how-to-create-dynamic-fields-in-openerp-7-module

아바타
취소