Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
14554 Vizualizări

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!

Imagine profil
Abandonează

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
sept. 25
3966
1
iul. 25
1435
2
iun. 25
2959
3
apr. 25
3031
1
apr. 25
3783