Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

4

Automated actions & Server actions

By
Gianluca Milano
on 3/10/14, 1:04 PM 12,088 views

Hello everybody,

I have problems with the subject.

I'm trying to create a server action when a new customer is created. After, I'll need to create another server action when a customer is edited.

I'm not using a module and code, but I'm using functionalities in Settings->Technical

First, I created a Server action (just send an email, to test)

Server action

  • Action name: sendemail
  • Object: Partner
  • Action Type: Email
  • Condition: True
  • Sequence: 1

In Email configuration

  • Email address: my email address
  • Subject: New customer
  • Message: New customer [[object.partner_id.name]] has been created.

.

Then, I created the Automated action that will call the Server action

Automated action

  • Rule name: newuser
  • Related Document Model: Partner
  • Active: (selected)
  • Sequence: 3

Conditions:

  • Before Update Filter: (empty)
  • After update Filter: (empty)
  • Trigger Date: Date
  • Delay After trigger Date: 0 Minutes

Actions:

  • Set Responsible: Administrator
  • Add Followers: (empty)
  • server actions to run: sendemail

.

Of course no email has been sent. The outgoing mail server is properly configured, and sending manually emails is ok.

No email in the queue, nothing at all. It looks like the Server action is not involved.

Please, give me some good suggest.

Thanks in advance

0
Viktor léhner
On 6/4/14, 3:11 AM

Hi,

First, you check the server log!

My openerp run debian, theopenerp server log file location: 

cd /var/log/openerp

view the current  logfile, i htink it will help for you!

 

 

0
Anand
On 10/6/14, 8:35 AM

Test your Email connection in  outgoing email configuration...

check it.

http://email.about.com/od/accessinggmail/f/Gmail_SMTP_Settings.htm

Aslo set your port number as 465

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 3/10/14, 1:04 PM
Seen: 12088 times
Last updated: 7/20/16, 6:44 AM