Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
18838 มุมมอง

Hello all,

I have a quick question. I'm trying to create a link inside my PDF report where takes customer to my oDoo portal, so them can sign the sale order.

I have no issue generating the PDF, but for the link, I need the "access_token" so customer the get straight to their order inside my portal.  

My big issue is that odoo just generate the "access_token" once the e-mail is sent for the customer for the fist time, so, the link I'm using inside de PDF report doesn't work, (since the token will be "false). 

Here is the link I'm trying to generate "t-att-href="'my/orders/{}?access_token={}'.format(doc.id,doc.access_token)", but it'll only work after the first e-mail sent. 

Is there any way to force odoo to generate this token or generate this link for the very first time I create the order?

Thanks!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

The access token of an invoice or any document is set when the document is printed

When the invoice is printed a file is created in the odoo filestore and an access token for this file is set in the database.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Same here. access_token is always false. 

Is it a bug?

In V10 it worked with following link also for quotes:

/quote/${object.id}/${object.access_token} 


 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 24
8002
0
ส.ค. 17
4425
Pdf Report header margin-top แก้ไขแล้ว
1
ส.ค. 23
4976
1
ก.ค. 19
5223
4
ก.ย. 20
5551