Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023300Openbravo ERPA. Platformpublic2013-03-14 10:322013-03-26 16:39
alostale 
alostale 
normalminorN/A
closedfixed 
5
 
3.0MP223.0MP22 
dbaz
Core
No
0023300: Process to create portal users
Implement a process to create portal users. This process should grant them privilege to a portal role, generate a random password and send an email notifying the about all this.

Also when a user with access to a portal role is marked as inactive, he should be notified by email.
-
Implement this process to be invoked from Business Partner > Contact tab.
Coworking
depends on feature request 00232993.0MP22 closed alostale Send email on events 
related to defect 0035158 closed caristu GrantPortalAccessProcess is invoking unbalanced calls to setAdminMode and restorePreviousMode 
Issue History
2013-03-14 10:32alostaleNew Issue
2013-03-14 10:32alostaleAssigned To => alostale
2013-03-14 10:32alostaleModules => Core
2013-03-14 10:32alostaleTriggers an Emergency Pack => No
2013-03-14 10:33alostaleRelationship addeddepends on 0023299
2013-03-14 10:33alostaleReview Assigned To => dbaz
2013-03-14 10:34alostaleTag Attached: Coworking
2013-03-14 10:37alostaleDescription Updatedbug_revision_view_page.php?rev_id=4502#r4502
2013-03-14 10:53hgbotCheckin
2013-03-14 10:53hgbotNote Added: 0057247
2013-03-14 10:53hgbotStatusnew => resolved
2013-03-14 10:53hgbotResolutionopen => fixed
2013-03-14 10:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/79a1c9976d98c8e069288f31433d1086fa66d2e9 [^]
2013-03-14 12:36hgbotCheckin
2013-03-14 12:36hgbotNote Added: 0057254
2013-03-14 14:36hgbotCheckin
2013-03-14 14:36hgbotNote Added: 0057257
2013-03-25 08:14hgbotCheckin
2013-03-25 08:14hgbotNote Added: 0057396
2013-03-25 09:00hgbotCheckin
2013-03-25 09:00hgbotNote Added: 0057397
2013-03-25 14:12hgbotCheckin
2013-03-25 14:12hgbotNote Added: 0057417
2013-03-25 16:57dbazNote Added: 0057444
2013-03-25 17:07dbazNote Added: 0057445
2013-03-25 17:08dbazNote Added: 0057446
2013-03-25 17:08dbazStatusresolved => closed
2013-03-25 17:08dbazFixed in Version => 3.0MP22
2013-03-26 16:39hudsonbotCheckin
2013-03-26 16:39hudsonbotNote Added: 0057464
2013-03-26 16:39hudsonbotCheckin
2013-03-26 16:39hudsonbotNote Added: 0057465
2013-03-26 16:39hudsonbotCheckin
2013-03-26 16:39hudsonbotNote Added: 0057470
2017-02-03 13:27caristuRelationship addedrelated to 0035158

Notes
(0057247)
hgbot   
2013-03-14 10:53   
Repository: erp/devel/pi
Changeset: 79a1c9976d98c8e069288f31433d1086fa66d2e9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 14 10:39:08 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/79a1c9976d98c8e069288f31433d1086fa66d2e9 [^]

fixed issue 23300: Process to create portal users

  New process to grant portal access to users
  When a portal user is deactivated, an email is sent

---
M src-db/database/model/tables/AD_USER.xml
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
A src-db/database/sourcedata/OBCLKER_TEMPLATE.xml
A src/org/openbravo/portal/AccountCancelledEmailBody.java
A src/org/openbravo/portal/AccountCancelledEmailGenerator.java
A src/org/openbravo/portal/AccountChangeObserver.java
A src/org/openbravo/portal/GrantPortalAccessProcess.java
A src/org/openbravo/portal/NewUserEmailBody.java
A src/org/openbravo/portal/NewUserEmailGenerator.java
A src/org/openbravo/portal/PortalEmailBody.java
A src/org/openbravo/portal/templates/email-account-cancelled.ftl
A src/org/openbravo/portal/templates/email-new-user.ftl
---
(0057254)
hgbot   
2013-03-14 12:36   
Repository: erp/devel/pi
Changeset: dfa7c8ea1366a305d7ada71bbf006fc16eb5da72
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 14 12:36:22 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/dfa7c8ea1366a305d7ada71bbf006fc16eb5da72 [^]

related to issue 23300, fixes build int-full-pgsql 4626

---
M src-db/database/sourcedata/referencedData/AD_USER.xml
---
(0057257)
hgbot   
2013-03-14 14:36   
Repository: erp/devel/pi
Changeset: b87d5fc8c3529798c2bc50f245e2d6803c6d5b17
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 14 14:36:21 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b87d5fc8c3529798c2bc50f245e2d6803c6d5b17 [^]

related to issue 23300, added onCreateDefault

---
M src-db/database/model/tables/AD_USER.xml
---
(0057396)
hgbot   
2013-03-25 08:14   
Repository: erp/devel/pi
Changeset: 1edba90e26f3afa10e79c9d2a2a7506ef5eca81f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 25 08:11:58 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1edba90e26f3afa10e79c9d2a2a7506ef5eca81f [^]

realated to issue 23300

  -In case of error in the process rollback so no err 500 is produced in the
   request and the message can be seen in UI
  -Changed severity and message in case of process failure
  -Force organization * for the new user-role row

---
M src/org/openbravo/portal/GrantPortalAccessProcess.java
---
(0057397)
hgbot   
2013-03-25 09:00   
Repository: erp/devel/pi
Changeset: 1bde37da0a01beaa81cba0fe9e80b6a10fcf2f14
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 25 08:59:38 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1bde37da0a01beaa81cba0fe9e80b6a10fcf2f14 [^]

realated to issue 23300: added missing import

---
M src/org/openbravo/portal/GrantPortalAccessProcess.java
---
(0057417)
hgbot   
2013-03-25 14:12   
Repository: erp/devel/pi
Changeset: e3b29ef25597eb5d625bee4ede034d96779a3b12
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 25 14:11:09 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e3b29ef25597eb5d625bee4ede034d96779a3b12 [^]

realated to issue 23300: portal user name is set as email

---
M src/org/openbravo/portal/GrantPortalAccessProcess.java
---
(0057444)
dbaz   
2013-03-25 16:57   
Test case:

* As Openbravo Admin, go to "Client" and configure a valid email
* Go to "User" and put a email address to the user "Luis Rodriguez"
* Go to "Role", and to the role "F&B España, S.A - Employee" mark the "For Portal Users" flag
* Go to "Business Partner", choose "Alimentos y Supermercados, S.A", and in its child tab "Contact", choose "Luis Rodriguez" and click "Grant Portal Access" button
* In the shown Popup choose the Portal Role "F&B España, S.A - Employee" and click "Done".

Check that do you have an email (in the email set in the second bullet) with the user and password
(0057445)
dbaz   
2013-03-25 17:07   
Test case 2:

* As Openbravo Admin, go to "Client" and configure a valid email
* Go to "Role", and to the role "F&B España, S.A - Employee" mark the "For Portal Users" flag
* Go to "Business Partner", choose "Alimentos y Supermercados, S.A", and in its child tab "Contact", create new record with the desired data (the email is very important, since there is going to be sent the confirmation info)
* In the shown Popup choose the Portal Role "F&B España, S.A - Employee" and click "Done".

Check that do you have an email with the user and password
(0057446)
dbaz   
2013-03-25 17:08   
Reviewed @ changeset: 19997 - 05f84268a2a6
(0057464)
hudsonbot   
2013-03-26 16:39   
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/2d2b0f1dddcd [^]

Maturity status: Test
(0057465)
hudsonbot   
2013-03-26 16:39   
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/2d2b0f1dddcd [^]

Maturity status: Test
(0057470)
hudsonbot   
2013-03-26 16:39   
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/2d2b0f1dddcd [^]

Maturity status: Test