Commit Graph

2792 Commits

Author SHA1 Message Date
Carlos Ruiz a60dd24533
IDEMPIERE-4495 github code scanning alerts (#308)
* IDEMPIERE-4495 github code scanning alerts

Failure to use secure cookies

* Failure to use secure cookies - one more

* Fix: Arbitrary file write during archive extraction ("Zip Slip")

* Fix: Resolving XML external entity in user-controlled data
2020-10-18 11:04:54 +08:00
hengsin 2b9cb9bb2e
IDEMPIERE-4497 Mobile: Update PDF.JS (#306)
* IDEMPIERE-4497 Mobile: Update PDF.JS

* IDEMPIERE-4497 Mobile: Update PDF.JS

archive and simple pdf viewer

* IDEMPIERE-4497 Mobile: Update PDF.JS

change ZK_USE_PDF_JS_VIEWER sysconfig level to Client level (C)
2020-10-17 17:55:11 +02:00
Nicolas Micoud 4856ca67fc
IDEMPIERE-4461 : Feedback email recipient(s) : add flexibility (#261)
* IDEMPIERE-4461 : Feedback email recipient(s) : add flexibility

Search recipients in SysConfig and if not found, fallback on System.SupportEMail

* IDEMPIERE-4461 : Feedback email recipient(s) : add flexibility

fixes suggested by @hengsin

Co-authored-by: hengsin <152246+hengsin@users.noreply.github.com>
2020-10-16 23:22:19 +08:00
hengsin a21fe225e1
IDEMPIERE-4493 Mobile: Animation for Swipe Gesture (#301) 2020-10-16 11:46:48 +02:00
igorpojzl 3246bb8b1e
IDEMPIERE-4459 Info Window Customization (#259)
* IDEMPIERE-4459 Info Window Customization - Added Java Models

* IDEMPIERE-4459 Update Model AD_UserDef_Info_Column

* IDEMPIERE-4459 Added Migration scripts

* IDEMPIERE-4459 User Definition Info Column Added

Added Business Logic for Info Window Customization for Info Columns. Added InfoColumnVO for storing InfoColumn Data filtered with User Definition.

* IDEMPIERE-4459 Added Migration Scripts to Update Columns

Allow Update AD_Role_ID, AD_Language, AD_User_ID in AD_UserDef_Info table.

* IDEMPIERE-4459 Info Window Customisation - Updated Migration scripts

* IDEMPIERE-4459 Migration Script Fix

* IDEMPIERE-4459 Info Window Customization - Update Java Models

* IDEMPIERE-4459 Apply Migration Patch

* IDEMPIERE-4459 Info Window Customization - Update Models

* IDEMPIERE-4459 Apply Patch 2 fix.

* IDEMPIERE-4459 Info Related Cust. Added, Info Window Cust. Implementation..

* IDEMPIERE-4459 Info Related isDisplay added

* IDEMPIERE-4459 Added Display Logic for Info Related

* IDEMPIERE-4459 Fix SeqNo for InfoColumns

* IDEMPIERE-4459 Fix Patch 3
2020-10-16 11:41:50 +02:00
Deepak Pansheriya b8e9e455f1
IDEMPIERE-4487: Fixing issue that date time editor not showing time part. (#288) 2020-10-15 19:17:19 +02:00
hengsin 1addf52f7e
IDEMPIERE-4482 Mobile Improvements (#299)
make toolbar and message overflow link easier to click
2020-10-15 10:34:32 +02:00
hengsin 91c72fd978
IDEMPIERE-4482 Mobile Improvements (#297)
* IDEMPIERE-4482 Mobile Improvements

* IDEMPIERE-4482 Mobile Improvements

minor line height fix for process dialog's message area

* IDEMPIERE-4482 Mobile Improvements

- fix issue with grid view column header height
- add customize grid view button to detail pane
- always show message as notifications for mobile
- fix some mobile layout issues
- default desktop font size to 14px
2020-10-14 11:07:18 +02:00
hengsin 6f2cc899d4
IDEMPIERE-4477 Upgrade to Zk 9.5.0 (#290) 2020-10-13 16:15:15 +02:00
Patric Massing 36f03b701a
IDEMPIERE-4468 - Pass the current value of numberbox to the textfield of calculator (#279) 2020-09-30 22:32:17 +08:00
hengsin 98ab98b28c
IDEMPIERE-4451 Executions.schedule should be executed asynchronously (#266)
onpiggyback should check whether's there's pending serverpush echo
2020-09-21 20:21:03 +02:00
hengsin dd2ef468b0
IDEMPIERE 4287 (#247)
* IDEMPIERE-4287 Cache API not thread safe and inconsistent with Context
add support to make PO immutable

* IDEMPIERE-4287 Cache API not thread safe and inconsistent with Context
- added thread safe Immutable and Copy cache implementation for PO.
- migrate most of PO cache to immutable and copy cache.
- added pos sales order test.

* IDEMPIERE-4287 Cache API not thread safe and inconsistent with Context
- add test case for initial client setup and bank statement
- fix error for image editor, location editor, locator editor, initial
client setup, complete bank statement and migrate storage provider.

* IDEMPIERE-4287 Cache API not thread safe and inconsistent with Context
- added ImmutablePOSupport interface. Model class implement this
interface for immutable PO support.
- remove usage of cache for transaction table (rfq, invoice, inventory).
- add getCopy method to some model class to support getting an
updateable copy of PO from the otherwise immutable PO cache.
- the added getCopy method is use to return updateable PO for indirect
PO reference, for e.g MColumn.getAD_Table() and MOrderLine.getProduct.
2020-09-21 14:03:00 +08:00
Nicolas Micoud 9509d95c7c
IDEMPIERE-4460 : User suggestions for field/context help : check perm… (#257)
* IDEMPIERE-4460 : User suggestions for field/context help : check permission

new method to check exclusion of a table for current role, used to determine if popups should be displayed or not

* IDEMPIERE-4460 : User suggestions for field/context help : check permission

Following @globalqss's recommandations : rename the method + add more controls inside

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2020-09-20 15:53:56 +02:00
igorpojzl dede5bd506
IDEMPIERE-4442 FIX NPE when locatorField is Empty (#260) 2020-09-18 21:38:15 +08:00
muriloht 6771a696cc
IDEMPIERE-4029 - global search element id (#255) 2020-09-16 14:08:12 +02:00
igorpojzl 7c096a4901
IDEMPIERE-4450 Info Window Performance (#251)
Pass ReadOnly Parameter to GridField from Info Window Column. For Better Performance of WTableDir Component.
2020-09-14 22:29:06 +08:00
igorpojzl e18d8001d4
IDEMPIERE-4442 Change Locator Dialog TableDirect (#242)
* IDEMPIERE-4442 Change Locator Dialog TableDirect

* IDEMPEIRE-4442 Fixed inconsitent Locator
2020-09-07 13:49:10 +02:00
hieplq bd03a89d1c
IDEMPIERE-4361:Date is subtracted by 1 day in certain cases (#240)
* IDEMPIERE-4361:Date is subtracted by 1 day in certain cases

sun.util.calendar.ZoneInfo consider offset and "daylight saving time" changed on range 1900-2037
for out of that range then offset always return raw offset, make date incorrect 1 day on some days

offset change by history can reference at:
https://en.wikipedia.org/wiki/Time_in_Vietnam#Time_in_French_Indochina
https://www.timeanddate.com/time/zone/vietnam/hanoi

database for all change
https://www.iana.org/time-zones

* IDEMPIERE-4361:Date is subtracted by 1 day in certain cases (wrong at client side)

when value set from server by DateBox.setValue(Date) it convert that time (without respect history change when out of range 1900 until 2037) to UTC but at client it respect history change when convert to display timezoen so make mismatch

* IDEMPIERE-4361:Date is subtracted by 1 day in certain cases (for datetimebox)

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2020-09-05 10:55:33 +02:00
hengsin 9d614b985e
IDEMPIERE-4424 (#222)
* IDEMPIERE-4424 Concurrent update not prevented in Grid View

Grid View - change click navigation to follow the same flow as toolbar
navigation.

* IDEMPIERE-4424 Concurrent update not prevented in Grid View

GridTable - added Updated and Processed concurrency checked against PO.

* IDEMPIERE-4424 Concurrent update not prevented in Grid View

Incorporate fix suggested by Carlos
2020-08-27 12:40:44 +02:00
hengsin 0e9f36add9
IDEMPIERE-3197 Tab still keep editing indicator when move to next record (#229)
Update tab title after save
2020-08-24 18:39:27 +02:00
hengsin 64a46577a6
IDEMPIERE-4122 missing font icons (#231)
Integrate patch from Murilo
2020-08-24 12:31:40 +02:00
Carlos Ruiz a68c5f1968
IDEMPIERE-4425 Find Window improvements (#219) 2020-08-21 13:07:01 +02:00
hieplq 23ed373e5d
IDEMPIERE-4413:Change Role, disfunction all keyboard shortcuts (#216)
remove keydown handle at client side
2020-08-20 08:47:01 +02:00
Carlos Ruiz 7892c54aa1
IDEMPIERE-4386 setAD_User_ID() breaks when logged in as System user (#188)
* IDEMPIERE-4386 setAD_User_ID() breaks when logged in as System user

Allow saving Tab Customization for System user

* IDEMPIERE-4386 setAD_User_ID() breaks when logged in as System user

Fix copy/paste error

* IDEMPIERE-4386 setAD_User_ID() breaks when logged in as System user

Implement same suggestion on all the classes where setAD_User_ID must be allowed to explicitly set to System
There were already two classes with the Override approach: MUserPreference and MUserRoles, so this commit is to apply the same approach to all the classes with same approach
2020-08-13 18:20:59 +08:00
hengsin a3e25375fe
IDEMPIERE-4396 Allow idempiere forms sort by header (#205)
sync model after sort
2020-08-05 10:10:51 +02:00
igorpojzl fc0c7ed81c
IDEMPIERE-4397 Hide ProcessModalDialog in Autostart (#204)
Show only BusyDialog when autostarting process.
2020-08-04 23:46:55 +08:00
hengsin a4bfdb27e7
IDEMPIERE-4391 Product Info - columns are not hidden, when remove wh/pl (#200)
render header again if number of columns change
2020-08-03 17:12:07 +02:00
hengsin 80146138ac
IDEMPIERE-4382 Locator Editor inconsistent in the application of filter (#183)
pass ValidationCode to MLocatorLookup
Fix dynamic display support
Fix filter for grid view
Fix locator dialog not open with the selected locator
2020-07-26 12:49:43 +02:00
hengsin 28213b9b9f
IDEMPIERE-1540 Autocomplete for field type "Search" (#179)
Do not count duplicate record id more than once (some infowindow, like
bpinfo have multiple rows with same record id)
2020-07-26 10:23:28 +02:00
hengsin 1c96affdde
IDEMPIERE-4322 Sort tab does not support virtual column identifier an… (#173)
* IDEMPIERE-4322 Sort tab does not support virtual column identifier and identifiers with different data type

add support for virtual column identifier
concat multiple identifier instead of taking the first not null value

* IDEMPIERE-4322 Sort tab does not support virtual column identifier and identifiers with different data type

Change to use DB.TO_CHAR.
Other condition (parent, key etc) shouldn't exclude IsIdentifier since
the UI allows it.
2020-07-25 12:15:10 +02:00
Diego Ruiz 763876cca3
IDEMPIERE-4380 Inconsistencies with selected filter query on tab navigation (#181)
* IDEMPIERE-4380 Inconcistencies with selected filter query on tab navigation

* IDEMPIERE-4380 Heng Sin Peer review
2020-07-24 20:34:30 +08:00
hengsin a88d766078
Idempiere 4374 (#178)
* IDEMPIERE-4374 CSS Field Style not working for WSearchEditor

fix css field style not working for WSearchEditor

* IDEMPIERE-4374 CSS Field Style not working for WSearchEditor

fix css
2020-07-22 14:27:51 +02:00
Carlos Ruiz be063cbd1e
IDEMPIERE-4368 Allow Define Default Saved Query for User / fix problem with recent items and zoom (#176) 2020-07-21 14:14:54 +02:00
hengsin cc76e63d85
IDEMPIERE-4372 Performance: only add log record and sql statement to … (#172)
* IDEMPIERE-4372 Performance: only add log record and sql statement to context if trace/debug level <= debug/info

Minor clean up and thread safe fix for CLogErrorBuffer and MIssue
Only add LogRecord and SQL to context if TraceLevel is <= INFO

* IDEMPIERE-4372 Performance: only add log record and sql statement to context if trace/debug level <= debug/info

add back DB.isConnected check
remove redundant CLogErrorBuffer call from DB.isConnected
more fine grained synchronization
2020-07-21 12:25:20 +02:00
igorpojzl dd2b24aafa
IDEMPIERE-4368: Allow Define Default Saved Query for User (#169)
* Update AD_UserQuery models

* Implementation of initializing Default User Queries

* Added Migration Scripts

* Update 202007161400_IDEMPIERE-4368.sql

Added missing register_migration_script.

* IDEMPIERE-4368 Added missing script.

* IDEMPIERE-4368 Allow Define Default Saved Query for User

Fix Load defaults only on Initialization.

* IDEMPIERE-4368

Move Migration Script to 7.1 folder

* IDEMPEIRE-4368

Apply of patch.
2020-07-20 14:51:48 +02:00
Carlos Ruiz 2d70a1a169
IDEMPIERE-1117 Attachment -> Disable preview over certain size (#145)
* IDEMPIERE-1117 Attachment -> Disable preview over certain size

New SysConfig key ZK_MAX_ATTACHMENT_PREVIEW_SIZE

* IDEMPIERE-1117 move scripts to 7.1
2020-07-14 21:51:17 +08:00
hieplq beec96b332
IDEMPIERE-4357:ClassLocator.warn: Replicate resource by jetty append lib on standard web folder (#155) 2020-07-04 21:21:49 +08:00
Carlos Ruiz d6e5cdc26a
IDEMPIERE-1052 Improve Performance using Search instead of Table/Table Direct (#159)
WSearchEditor broken when importing detail CSV

Merging this pull request tested locally (without peer review) as an emergency.
2020-07-03 20:56:48 +02:00
Carlos Ruiz 11c9ad6c59
IDEMPIERE-1052 Improve Performance using Search instead of Table/Table Direct (#148)
Integrate patch from Heng Sin
--> Fix Copy Record issue (handling of invalid value)
2020-07-01 15:44:59 +02:00
Nicolas Micoud 1f3b782215
IDEMPIERE-1890 : BroadcastMessageWindow Updates : add a vertical scrollbar (#142) 2020-06-27 11:46:46 +02:00
Diego Ruiz 5f0e895d88
IDEMPIERE-4345 zk9 - Payment selection (Manual) open with header collapsed (#137) 2020-06-25 17:47:04 +02:00
Carlos Ruiz 10771a7408
IDEMPIERE-4254 get oracle error ORA-01795 when has more than 1000 org (#109) 2020-06-09 23:26:44 +07:00
Carlos Ruiz 37e82005b5
IDEMPIERE-4329 Cleanup eclipse warnings (#107)
* IDEMPIERE-4329 Cleanup eclipse warnings

Clean unused imports

* IDEMPIERE-4329 Cleanup eclipse warnings

Clean some additional warnings
Make org.adempiere.base to respect the Warnings/Errors level configuration from workspace

* IDEMPIERE-4329 Cleanup eclipse warnings

One more unused import caused by the previous commit
2020-06-09 12:26:36 +02:00
hengsin 8f052b4081
IDEMPIERE-4237 timeout page continue do comet request and log a lot message (#100)
Revert SC_NO_Content for error bad to SC_BAD_REQUEST so that the failure
count at client side will work.
Add session timeout/notfound checking at client side.
2020-06-03 21:17:52 +08:00
hengsin f2cbbc662d
IDEMPIERE-1540 Autocomplete for field type "Search" (#91)
Refactoring
Fix table/tabledir auto refresh
Fix MLookupInfo.clone
2020-06-01 15:29:04 +02:00
hieplq 9a35f2054d
IDEMPIERE-4314:eclipse project setting independent JDK (#90) 2020-06-01 11:30:00 +08:00
hengsin 5718645bc6
IDEMPIERE-1540 Autocomplete for field type "Search" (#89)
Fix ClassCastException
2020-05-30 11:53:11 +07:00
hengsin fc56a2a205
IDEMPIERE-1540 Autocomplete for field type "Search" (#88)
Fix search column for auto complete
2020-05-29 18:08:39 +02:00
hengsin baac93f9e0
IDEMPIERE-4307 Quick Entry always retrieve all fields from db (#83)
add cache for MField
2020-05-29 13:38:15 +02:00
hengsin e9e7486473
IDEMPIERE-1540 Autocomplete for field type "Search" (#79)
* IDEMPIERE-1540 Autocomplete for field type "Search"

Implement auto complete for search field

* IDEMPIERE-1540 Autocomplete for field type "Search"

Add support for isAutoComplete flag (default is off).
Add isAutoComplete to AD_UserDef_Field, AD_InfoColumn and
AD_Process_Para.
Performance improvement - reduce number of queries for autocomplete and
added some cache.

* IDEMPIERE-1540 Autocomplete for field type "Search"

add constant for auto complete query timeout
use union all to further reduce the number of queries
2020-05-29 13:25:24 +02:00