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

hi every one,i have a master detail from,what am trying to do is that when i select some fields in master form the fields in the detail form should be populated automatically,,,there should not be default option of "add an item",,

아바타
취소
작성자

solved,,thanks a lot niyas raphy sir

베스트 답변

Hi,

If you are looking to remove the add an item/add a line in One2many fields, you can set create="0" in the code. So that this add an item will not be visible.

See a sample: 

<tree create="0" delete="0">

Thanks

아바타
취소

Hey Niyas

Does this work with the add an item feature in the detailed operations of transfer operations, and if so, will it completely disable the functionality?

E.g., when using the barcode app in a picking transfer operation, the normal and correct procedure is to scan an item in the detailed operations list which will increase the done quantity with each scanning action, however, if you scan an item that is not in the list, the standard Odoo setup will allow you to add it to detailed operations although it will show in red. So wondering if your solution will also prevent adding an item by scanning?

If not, is there an alternative solution?