Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
6 Odpowiedzi
17606 Widoki

This is the page I mean:


Awatar
Odrzuć
Najlepsza odpowiedź

The View the defines this page is named “Sales Order Portal Content”.  You need to inherit and override this View, adding your own code that modifies the base code.

For more information about QWeb, see https://www.odoo.com/documentation/14.0/developer/reference/qweb.html

The QWeb code defining the Unit Price, Taxes and Amount for each line is defined in two parts.  It defines the columns, then the data for the rows.

XPATH syntax is used to identify nodes in the code you want to modify.  For more information on using xpath syntax, see https://www.w3schools.com/xml/xpath_intro.asp

 

A new View that inherits the “Sales Order Portal Content” view:


Changes the columns and rows from this:


To this:


... and will result in a page that looks like this:



Awatar
Odrzuć
Najlepsza odpowiedź

Hi guys,


I am new to Odoo. Is there any way to change the report template type when the download button is clicked, instead of using the default template?"


a class="btn btn-secondary btn-block o_download_btn"  t-att-href="sale_order.get_portal_url(report_type='pdf', download=True)" title="Download"> Download

thanks in advance.

Awatar
Odrzuć
Najlepsza odpowiedź

use like this for 16 and 17










Awatar
Odrzuć
Najlepsza odpowiedź

The procedure mentioned above should work in Odoo 16 SaaS. You can modify the "Sales Order Portal Content" view in V16 as well.

Awatar
Odrzuć
Najlepsza odpowiedź

Is there anybody who can explain how to make adjustments to the customer portal view in the Odoo saas 16 Enterprise Edition?

Awatar
Odrzuć
Najlepsza odpowiedź

What updates do I need to make to make this work for Odoo 16? I created a new view with the same information, however it is not making the replacements shown in your screnshots. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
gru 20
3566
0
maj 24
1663
1
sty 22
2480
0
lip 21
4
2
lip 19
4545