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

Limitations in Automation Rules (Odoo 17)

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
AutomatedActionsAutomationv17
2 Respostas
5738 Visualizações
Avatar
Chris TRINGHAM

In Odoo 16 and previous versions, it was very easy to use Automated Actions to create a record in a linked Model and set fields.  For example, to create an Analytic Account for a Sales Order in Odoo 15:


In Odoo 17, Automation Rules allow you to create a linked record, but do not allow you to set other fields.  So it will fail when trying to create an Analytic Account because it needs some fields to be set (including the Plan).

It is possible to write Python code for some of this, though (not being a Python programmer) I can't figure out how to create an Analytic Account and link it to the sales order.

Similar problem if you want to update multiple fields or use a Python expression rather than set a fixed value.

Also (as discussed elsewhere), only some triggers can be selected, though all of them still seem to be there!

Are these "improvements" because Automated Actions were too powerful or was it overlooked?  Or is there a solution I am missing?  

2
Avatar
Cancelar
Ricardo Gross

I hope it was only be overlooked and that it will be a solution/fix soon!

Chris TRINGHAM
Autor

For reference: https://github.com/odoo/odoo/pull/114352

Esraa Abu Amer

Hello,

can I ask if you use a execute code , do I have to have the custome plan ? if I am using odoo standard how can I create a new recored 

Tammie Morris

Help - I've been trying to create this but even with Ray's work around we still get an error that a mandatory field isn't being set? What am I missing?

Chris TRINGHAM
Autor

Hi Tammie - it should work if you set a user-defined default for the Plan field: https://odootricks.tips/user-defined-defaults/

Avatar
Ray Carnes (ray)
Melhor resposta

The issue here is that an Analytic Account has two required fields (Name and Plan) and the Automation Rules only allow you to specify a value for the Name.

If you have a User Defined Default setup for Plan, then the following Automation Rule works, updating through the linked field:


When using the UPDATE Action, you can switch from UPDATE to COMPUTE like this:

1
Avatar
Cancelar
Ray Carnes (ray)

In Odoo 19.0, we are bringing back "ON CREATE" and "ON CREATE AND EDIT" and removing "ON SAVE".

We are adding DUPLICATE and SEND WHATSAPP Actions.

Chris TRINGHAM
Autor

Thanks @Ray - but I think I'm missing something here. How do you create an action that is "Compute...."

Ray Carnes (ray)

@Chris, see the last part of my updated answer above.

Chris TRINGHAM
Autor

Thanks @Ray - and it's good news that some of the simplification to the UI in v17 is being reverted.

Avatar
Roeland Vandecan
Melhor resposta

Hey Esraa,


try this post:https://www.odoo.com/nl_NL/forum/help-1/server-action-create-record-in-v17-where-to-fill-in-the-target-model-field-values-data-to-write-246871

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
v17: Automation Rules - Trigger is missing?
Automation v17
Avatar
Avatar
Avatar
2
mar. 24
4101
Odoo 17: Alternative to deprecated "On Creation" for automated actions? Resolvido
Studio AutomatedActions v17
Avatar
Avatar
Avatar
2
jan. 25
5184
Automated Action on Odoo 17
automated AutomatedActions v17
Avatar
Avatar
1
mar. 24
4576
Odoo 17 : Automation Rules (base.automation) not working correctly
Rules Automation v17
Avatar
Avatar
1
fev. 24
4333
automated actions creation using XML file Odoo 17
AutomatedActions Actions v17
Avatar
Avatar
1
fev. 24
3710
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