Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

web.base.url and Multi-sites

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
domainpaymentparametersmultisiteSH
5 Respostas
9114 Visualizações
Avatar
Luke A

We're hosting multiple websites on SH (same database) each with different brands and customer bases and have been running into issues with the web.base.url parameter.

The ecommerce website in this example is a secondary site. The web.base.url parameter is set as the principal site. When a checkout is concluded on the 2nd ecommerce site, Odoo automatically redirects to the third-party gateway via the principal website domain which seems to invalidate the CRSF token and also creates anxiety to the customer who doesn't understand why they are being taken to this other website instead of the payment portal.

I understand that the web.base.url.freeze parameter can be set to "True" to define the URL used without resetting but my question is what is the solution to isolate these domains when you are running multiple websites each with their own checkouts, payment gateways and assets without crossing over?

4
Avatar
Cancelar
Raul Edgardo Rueda

Hello. I would like to know if your problem was solved. It happens to me exactly the same?. Can you help me? Thanks


Eric Mattingley

Any answer? This is so silly. I hardly even understand what web.base.url even does. I want all my websites to work individually. Is that that hard? Isn't that the behavior everyone on the planet would *expect*?

zahid

Hello, did you find a workarround to this problem? I am facing the same issue.

Avatar
Luke A
Autor Melhor resposta

Until now we haven't found any solution and will probably require a lot of customization of the modules susceptible to problems (eg. the payment gateway module we are using). I understand that a lot of records can be isolated to specific websites within the backend, but where the web.base.url is used it can cause problems.

To mention another example is when links are sent via email to customers and this parameter is used. That being said the workaround will be to identify these specific examples and treat them with some customization. A lot of work for what should be a native behaviour in my opinion.

5
Avatar
Cancelar
Avatar
Rodrigo Torres
Melhor resposta

I also face the same problem! Did you find the solution? Can you share with us?

Thanks.

2
Avatar
Cancelar
Avatar
Marco Villagrana Escobedo
Melhor resposta

I solve this problem overriding signup_url method. 

Requisite: you have to assign a specific website to the partner (linked to portal user).

Original:

def _get_signup_url_for_action(self, url=None, action=None, view_type=None, menu_id=None, res_id=None, model=None):

...

signup_url = "/web/%s?%s" % (route, werkzeug.urls.url_encode(query))
if not self.env.context.get('relative_url'):
signup_url = werkzeug.urls.url_join(base_url, signup_url)
res[partner.id] = signup_url

return res

My code:

signup_url = "/web/%s?%s" % (route, werkzeug.urls.url_encode(query))
if not self.env.context.get('relative_url'):
# this three lines make the magic, we ask if the contact has a specific website assigned,

# so we use partner_id.website_id.domain instead base_url from database parameters.

if partner.website_id:
signup_url = werkzeug.urls.url_join(partner.website_id.domain, signup_url)
else:

signup_url = werkzeug.urls.url_join(base_url, signup_url)
res[partner.id] = signup_url

return res


1
Avatar
Cancelar
Avatar
Jozef Slivka
Melhor resposta

same here..

0
Avatar
Cancelar
Marco Villagrana Escobedo

check my answer above ;) (March 18th 2023)

César

Gracias Marco.

 

Podemos hablar. Estamos buscando un desarrollador de odoo.

 

Saludos.

 

César López

leanspots

 

From: Marco Villagrana Escobedo <notifications@mail.odoo.com>
Date: Sunday, 19 March 2023 at 03:28
To: César <cesar@leanspots.com>
Subject: Re: web.base.url and Multi-sites

check my answer above ;) (March 18th 2023) ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​ ͏ ​

Odoo Inc.


Ver Mensaje del foro

  

web.base.url and Multi-sites

  


check my answer above ;) (March 18th 2023)

--
Marco Villagrana Escobedo


Odoo Inc.

+1 650-691-3277 | info@odoo.com | https://www.odoo.com

Con tecnología de Odoo

Avatar
César
Melhor resposta

Same problem here!

0
Avatar
Cancelar
Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
Backend and frontend on distinct domains (odoo 14)
domain ecommerce multisite v14
Avatar
0
set. 22
2284
Multi-Company User Company Domain Resolvido
domain parameters url multicompany website
Avatar
Avatar
Avatar
2
fev. 24
5974
naked domain set up Resolvido
domain
Avatar
Avatar
Avatar
Avatar
3
jul. 25
6147
Domain name Request
domain
Avatar
0
mai. 25
1704
Payment Status Resolvido
payment
Avatar
Avatar
Avatar
Avatar
3
set. 25
10648
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now