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

How to call a server action depending of the state of the record ?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
localhoststudio
1 Responder
5539 Visualizações
Avatar
Mandresy Randriatavy

Hi,

I started using Docker to create a local instance of Odoo but I can't download the Studio App.. I realised that the Automated Action option create a Server Action to call but I don't understand how it's detect the state of the record to call the action dependending of if it's a new record, an update, a deletion etc..

I don't want to go into the code because with the Dev Mode + Studio + Attachements + Assets I can do all the things without the need of coding (my head is also in 3 differents languages at the same time so it's burning the head to switch everytime, so let's not talk about adding Python) so it's allow me to go fast and work in multple project..

Does someone have an answer to the way it's detect the state ?


Yours faithfully,

RANDRIATAVY Mandresy

0
Avatar
Cancelar
Peter Park

Yes, it is possible to call a server action depending on the state of the record. Odoo allows you to use triggers to detect when a record is created, modified, or deleted. You can then use the appropriate server action to respond accordingly.

To set up a trigger for a record, you need to go to the Settings page and select Automated Actions. From there, you can set up a trigger for a particular record. You can choose which action to take when the record is created, modified, or deleted. You can also specify what type of action to take (e.g. create a task, send an email, etc.).

Once you have configured the trigger, you can then create a server action and specify the conditions that must be met for it to be executed. In the Conditions tab, you can select the record state (created, modified, or deleted). When the record meets the conditions, the server action will be triggered and the action will take place.

I hope this has been helpful in understanding how to call a server action depending on the state of the record. you want to call depending of the record state.

Click “Save” and you are done.

Now, whenever the state of the record is changed, the server action will be called automatically.

Mandresy Randriatavy
Autor

Thanks you Peter spark, but the thing is without Studio the option Automated Action are unavailable..

Mandresy Randriatavy
Autor

Peter Park*

Bhavin Patel

To call a server action in Odoo depending on the state of the record, you can use Automated Actions. Automated Actions are a way to automate certain actions in Odoo based on specific events or conditions.

To set up an Automated Action that calls a server action depending on the state of the record, follow these steps:

Go to the model that you want to create the Automated Action for (e.g. Sales Order, Purchase Order, etc.).
Open the "Automation" tab in the model's configuration.
Click on "Create" to create a new Automated Action.
Give the Automated Action a name and select the event that should trigger the action (e.g. "On Creation", "On Update", etc.).
In the "Conditions" section, define the conditions that must be met in order for the Automated Action to be triggered. For example, you can specify that the server action should only be called if a certain field has a specific value, or if a related record meets certain criteria.
In the "Actions" section, select "Create a Server Action" and choose the server action that you want to execute when the Automated Action is triggered. You can specify additional parameters to pass to the server action, such as the record ID or values of specific fields.
Save the Automated Action.

When the specified event occurs and the conditions are met, the Automated Action will trigger and execute the server action. The server action can then perform various actions based on the state of the record, such as sending an email, updating a record, or creating a new record.

Avatar
Bhavin Patel
Melhor resposta

When creating an Automated Action in Odoo, you can configure it to trigger on specific events, such as when a new record is created, an existing record is updated, or a record is deleted.

To do this, you can set the "Trigger Condition" field in the Automated Action configuration to one of the following values:

On Creation
On Update
On Deletion
On Change

When you select one of these options, the Automated Action will be triggered based on the corresponding event. For example, if you select "On Creation", the Automated Action will be triggered whenever a new record is created.

Under the "Action to Do" field, you can then select the "Server Action" option, which allows you to create a new server action that will be executed when the Automated Action is triggered. The server action can perform various actions based on the event that triggered the Automated Action, such as sending an email, updating a record, or creating a new record.

Regarding the Studio App, it is possible that it is not available in your Docker instance of Odoo because it may require additional dependencies or configurations that are not included in the Docker image. If you require the Studio App, you may want to consider setting up a local instance of Odoo outside of Docker, or contacting the Odoo support team for assistance with installing the Studio App in your Docker instance.

1
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
debit and credit in currency
studio
Avatar
Avatar
1
nov. 25
2082
Menu's with different default filter Resolvido
studio
Avatar
Avatar
1
jul. 25
2172
Digest mails - any good resources for Studio Resolvido
studio
Avatar
Avatar
2
mar. 25
2337
Payment terms format change
studio
Avatar
0
fev. 25
1898
V18 of odoo, How to add a computed field in a stock report? Example: Total weight of my available product.
studio
Avatar
0
fev. 25
2371
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