Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030111Retail ModulesWeb POSpublic2015-06-05 10:362015-07-27 17:31
malsasua 
Retail 
immediateminoralways
closedfixed 
20Community Appliance
pi 
RR15Q2.3RR15Q2.3 
guilleaer
Production - QA Approved
2015-03-10
RR15Q2
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7564ee29fa2f328e32f2ae33aa458dee4e89d7d5 [^]
No
0030111: keyboard discount button is disabled with preference set to N and automatic roles
When the user is login with automatic role, and the preference "Web POS action Apply discount" is set to N, the keyboard discount button is disabled, and it should be enabled
. login in webops with user vallblanca
. add new line in receipt
. select the line

keyboard discount button is disabled
the line
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/web/org.openbravo.mobile.core/source/component/ob-keyboard.js#l141 [^]

The problem is not in the changeset that created the regression, the problem is that the permission is wrong defined:
the second param in haspermission function, should be false.
Approved
blocks defect 0030109 scheduled Retail keyboard discount button is disabled with preference set to N and automatic roles 
Issue History
2015-06-05 10:37malsasuaTypedefect => backport
2015-06-05 10:37malsasuaTarget Version => RR15Q2.2
2015-06-10 13:19dmitry_mezentsevTag Attached: Approved
2015-06-17 16:31marvintmTarget VersionRR15Q2.2 => RR15Q2.3
2015-07-16 10:42hgbotCheckin
2015-07-16 10:42hgbotNote Added: 0078845
2015-07-16 10:42hgbotStatusscheduled => resolved
2015-07-16 10:42hgbotResolutionopen => fixed
2015-07-16 10:42hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core/rev/e1ad3bf1fdaec316c2e7234d958e1b75cf3f8d36 [^]
2015-07-27 17:31guilleaerReview Assigned To => guilleaer
2015-07-27 17:31guilleaerNote Added: 0079086
2015-07-27 17:31guilleaerStatusresolved => closed
2015-07-27 17:31guilleaerFixed in Version => RR15Q2.3

Notes
(0078845)
hgbot   
2015-07-16 10:42   
Repository: retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core
Changeset: e1ad3bf1fdaec316c2e7234d958e1b75cf3f8d36
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jul 16 10:42:05 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q2.3/org.openbravo.mobile.core/rev/e1ad3bf1fdaec316c2e7234d958e1b75cf3f8d36 [^]

Fixed issue 30111. Permission will be checked correctly for automatic roles.

---
M web/org.openbravo.mobile.core/source/component/ob-keyboard.js
---
(0079086)
guilleaer   
2015-07-27 17:31   
Tested & Verified