Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
5714 Переглядів

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.



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 22
4607
0
бер. 15
5140
1
січ. 25
2688
1
трав. 21
5162
1
лист. 24
3027