تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
8226 أدوات العرض

Hi Dear,

I add an new char field to product.product as a "product_url" widget="url"

I need to add this field to qweb report for sale order where the cusomer could use this soft copy from sale order to visit product data sheet for more info.

I used the the following attribute:

<a href="line.product_id.product_url">data sheet link</a>, after print sale order pdf and click on data sheet link the attribute act as follow

http://localhost:8069/line.product_id.product_url not went to product data sheet link

الصورة الرمزية
إهمال
أفضل إجابة
Try <a t-attf-href="line.url_field">URL</a> Hope it will works.
الصورة الرمزية
إهمال
أفضل إجابة

<a t-attf-href =" #{line.product_id.product_url }" >data sheet link </a>

الصورة الرمزية
إهمال
أفضل إجابة

I'm facing a same issue and my hyperlinks are not working on the qweb report.

Let me know if anyone know what might be the issue.

الصورة الرمزية
إهمال
أفضل إجابة

Replacing "href" to "t-attr-href" in you code. like:

<a t-attr-href="line.product_id.product_url">data sheet link</a>

الصورة الرمزية
إهمال
الكاتب أفضل إجابة
<a t-att-href="line.field">text to display</a>
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 25
10922
2
يوليو 19
16173
3
ديسمبر 19
5254
1
يوليو 25
1887
1
مايو 25
859