Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030110Retail ModulesWeb POSpublic2015-06-05 10:362015-08-12 15:34
malsasua 
Retail 
immediateminoralways
closedfixed 
20Community Appliance
pi 
RR15Q3RR15Q3 
Orekaria
Production - QA Approved
2015-03-10
RR15Q2
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7564ee29fa2f328e32f2ae33aa458dee4e89d7d5 [^]
No
0030110: 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.
No tags attached.
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 => RR15Q3
2015-08-06 17:12hgbotCheckin
2015-08-06 17:12hgbotNote Added: 0079235
2015-08-06 17:12hgbotStatusscheduled => resolved
2015-08-06 17:12hgbotResolutionopen => fixed
2015-08-06 17:12hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q3/org.openbravo.mobile.core/rev/22d5a13c6f67eb47cffcef1e605ec7fd05fc833e [^]
2015-08-12 15:34OrekariaReview Assigned To => Orekaria
2015-08-12 15:34OrekariaStatusresolved => closed
2015-08-12 15:34OrekariaFixed in Version => RR15Q3

Notes
(0079235)
hgbot   
2015-08-06 17:12   
Repository: retail/backports/3.0RR15Q3/org.openbravo.mobile.core
Changeset: 22d5a13c6f67eb47cffcef1e605ec7fd05fc833e
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.0RR15Q3/org.openbravo.mobile.core/rev/22d5a13c6f67eb47cffcef1e605ec7fd05fc833e [^]

Fixed issue 30110, backport of 30109. Permission will be checked correctly for automatic roles.

---
M web/org.openbravo.mobile.core/source/component/ob-keyboard.js
---