跳至内容
菜单
此问题已终结
2 回复
14588 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
9月 25
4003
1
7月 25
1460
2
6月 25
2974
3
4月 25
3043
1
4月 25
3820