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

Hi,

how can I edit URLs in Odoo for the website, the shop and products? For the product URL Odoo automatically creates one with the product name, internal reference and its ID. I'd like to customize the URL to make it shorter.

I'm guessing an extension is needed? Any recommendations?

Thanks!

อวตาร
ละทิ้ง

Without module, you can easily creater shorter url, but that will redirect to the complete url with slug...

You can do it with module link tracker, or via attachment redirection.

คำตอบที่ดีที่สุด

Hello Anina, 

There is field in Odoo inside product website_url which is computed type. You can inherit computed method _compute_website_url with the following code:

def _compute_website_url(self):

   super(ProductTemplate, self)._compute_website_url()

      for product in self:

        product.website_url = #yoururl

You can also have a look at https://apps.odoo.com/apps/modules/13.0/seo_url_redirect/ to fulfill your requirements. 

Thanks

Anisha Bahukhandi

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 25
3958
1
ก.ค. 25
1422
2
มิ.ย. 25
2957
3
เม.ย. 25
3028
1
เม.ย. 25
3769