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

I inherit the pos.order and added new field on that model but now i need to call that field to pos receipt how to do that?

아바타
취소
베스트 답변

Hi,

To load a custom field into the POS, you need to define a new function called _loader_params_custom_model(). This function should return a dictionary with a key called search_params. The value of search_params should be a dictionary with two keys. They are domains and fields. The domain should be a list with a tuple specifying filters, and fields should be a list of field names that you want to load into the POS.

For more information refer the blog:

https://www.cybrosys.com/blog/how-to-load-models-and-fields-to-pos-in-odoo-17#:~:text=To%20load%20a%20custom%20field,They%20are%20domains%20and%20fields.


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
0
4월 25
3378
4
10월 25
2755
2
9월 25
1746
4
9월 25
6821
0
8월 25
835