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

Hello,

how could i extend sale.portal_order_page? I've added some new fields in sale.order and created a new .xml. This should extend the current portal view for customer but everything i tried does not work.

For example: x_informed_date (new in sale.order) after order.create_date (which is basicly shown in the portal view)

thanks a lot for your help

 

아바타
취소
작성자 베스트 답변

Thanks a lot. Works fine. Just one more Question. How could i extend the ListView in sale.portal_my_orders with the same field??

Just the xpath :)

아바타
취소
베스트 답변

Hello Chriskub,


Solution
=============

Try this below code, 

<template id="portal_order_page_x_informed_date" name="Orders X Informed Date" inherit_id="sale.portal_order_page">
        <xpath expr="//span[@t-field='order.create_date']/.." position="after">
            <div class="mb8">
                  <strong>X Informed Date:</strong> <span t-field="order.x_informed_date" t-options='{"widget": "date"}'/>
              </div>
        </xpath>
</template>


I hope my answer is helpful.

If any query so comment please.



아바타
취소
관련 게시물 답글 화면 활동
1
12월 22
4814
0
3월 15
5309
1
1월 25
2812
1
5월 21
5327
1
11월 24
3144