Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020413Openbravo ERP01. General setuppublic2012-05-03 18:162012-05-25 12:09
VictorVillar 
marvintm 
immediatemajoralways
closedfixed 
5
3.0MP10.1 
3.0MP113.0MP12 
Core
No
0020413: It does not work alerts emails
there are two problems:

1.- If the client has configured the new Email configuration (Client || email configuration) it does not work the alerts mails because two restrictions in AlertProcess.java (line 161 and 194).
It only works with System client.

2.- It is necessary to redefine what POC client take in case the alert returns registers for various clients.
As group admin role,
Go to Client window || Email configuration tab:

Client: F&B International Group
smtp server: smtp.googlemail.com
             SMTP Authentification: YEs
             Smtp Connection Security: SSL
             Smtp Port: 465
             Smtp Server Account: your email
             Smtp Server Password: you password email
             Smtp Server Sender Address: your email
Go to Alert window:
   Client: F&B International Group
   Org: *
   Name: producto sin descripciĆ³n
   SQL: select p.m_product_id as referencekey_id,
p.name as record_id,
0 as ad_role_id,
null as ad_user_id,
p.name || 'no tiene descripciĆ³n ' as description,
'Y' as isActive,
        p.ad_org_id,
        p.ad_client_id,
        now() as created,
        0 as createdBy,
        now() as updated,
        0 as updatedBy
  from m_product p
where p.description is null

Tab: Product- Product

Go to Alert Recipient tab:
      - F&B International GRoup Admin:
           User: Openbravo
           Send email: Yes

Go to user window:
        Openbravo:
            email: your email
            Email Server Username: your email
            Email Server Password: your passw email
Go to Process Request:
       client: F&B International GRoup
       Org: *
       Process: Alert process
       Timing: Run inmediatly
Run the process.

No email
Regression
related to design defect 00195453.0MP9 closed dbaz Email server configuration is in different places 
Issue History
2012-05-03 18:16VictorVillarNew Issue
2012-05-03 18:16VictorVillarAssigned To => vmromanos
2012-05-03 18:16VictorVillarModules => Core
2012-05-03 18:16VictorVillarResolution time => 1338588000
2012-05-03 18:20VictorVillarAssigned Tovmromanos => marvintm
2012-05-03 18:22VictorVillarIssue Monitored: networkb
2012-05-04 09:38jonalegriaesartePriorityhigh => immediate
2012-05-04 09:38jonalegriaesarteTag Attached: Regression
2012-05-04 11:16marvintmRelationship addedrelated to 0019545
2012-05-04 12:31hgbotCheckin
2012-05-04 12:31hgbotNote Added: 0048373
2012-05-04 12:31hgbotStatusnew => resolved
2012-05-04 12:31hgbotResolutionopen => fixed
2012-05-04 12:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/223d7328a7bbe9ccb02667ca57b01ded14ab0800 [^]
2012-05-04 13:19AugustoMauchNote Added: 0048377
2012-05-04 13:19AugustoMauchStatusresolved => closed
2012-05-04 13:19AugustoMauchFixed in Version => 3.0MP12
2012-05-25 12:09hudsonbotCheckin
2012-05-25 12:09hudsonbotNote Added: 0049023

Notes
(0048373)
hgbot   
2012-05-04 12:31   
Repository: erp/devel/pi
Changeset: 223d7328a7bbe9ccb02667ca57b01ded14ab0800
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri May 04 12:31:22 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/223d7328a7bbe9ccb02667ca57b01ded14ab0800 [^]

Fixed issue 20413. Two changes have been made:
- EmailServerConfiguration will be retrieved correctly. The client/org filter has been disabled, because background processes are executed with a 'system' context, and this caused the list of email servers to always be empty unless the configuration was on the 'system' client itself.
- Also, the client will be picked from the alertrule instead of the first generated alert. This prevents strange problems when an alertrule generates alerts for different clients from happening.

---
M src/org/openbravo/erpCommon/ad_process/AlertProcess.java
M src/org/openbravo/erpCommon/ad_process/AlertProcess_data.xsql
---
(0048377)
AugustoMauch   
2012-05-04 13:19   
Code reviewed and verified in pi@223d7328a7bb.

The email was sent when the process was executing using both System Administrator and F&B Admin.
(0049023)
hudsonbot   
2012-05-25 12:09   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5401e185a8b0 [^]

Maturity status: Test