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

I using Odoo14 Enterprise edition,

want to do some modifications like this on stock_barcode module : When delivery is not to United States, give a field that show International.

I found the view code position should be added on the stock_barcode/static/src/xml:

I can add a new line there like this:

But I don't know how to give logics from model field there.


I try the code like this to call models:

But I got this error message when access the page:

Error: QWeb2 - template['stock_barcode_header_widget']: No enumerator given to foreach


I don't know how to link the template with model.


In the usually Odoo views, it can be linked like this:

We can call models easily on views like the code above and call the needed field from the models.


But on Odoo client actions, I don't know how to link models with templates.


So, How to call or link models with Odoo Client Action templates?, any help, source or tutorial how to learn about that whould be very appreciated,


Thanks,

Tri Nanda

아바타
취소
관련 게시물 답글 화면 활동
1
2월 23
4313
2
12월 22
2640
2
10월 22
4049
0
8월 21
2949
0
10월 24
3990