Commit Graph

3120 Commits

Author SHA1 Message Date
Carlos Ruiz 744e84ccc5
IDEMPIERE-5059 Import the database view definition into dictionary (#1011) 2021-11-29 10:25:08 +08:00
Carlos Ruiz 143ef24a58
IDEMPIERE-5060 iDempiere dictionary view doesn't support UNION ALL (#1009) 2021-11-29 10:22:30 +08:00
hengsin 2b79a1a874
IDEMPIERE-5039 Negative Lost Sales Quantity (#1003)
fix unit test IDEMPIERE-4587
2021-11-25 14:09:49 +01:00
Saulo José Gil 9e2922c7c8
IDEMPIERE-5050 Service startup freeze (#996)
* IDEMPIERE-5050 Service startup freeze

Switched all annotation-based factories to asynchronous class scan.

* Deferred MIssue record creation

Log errors on the database after all model factories are initialized.

* Moved webservice model classes over to its own package

Model factories WS_ModelFactory and AnnotationBasedModelFactory were
overlapping on the org.compiere.model package. This produced class
loading problems since the base bundle has no visibility over the
webservices bundle (e.g.: MWebservice).

* Minor changes
2021-11-24 13:57:35 +08:00
Nicolas Micoud 2486ff8148
IDEMPIERE-4858 : Helper process "Make Table a Document" - fixes for t… (#990)
* IDEMPIERE-4858 : Helper process "Make Table a Document" - fixes for translation tables

see details in tickets

* IDEMPIERE-4858 : Helper process "Make Table a Document" - add TableIndex records

* IDEMPIERE-4858 : Helper process "Make Table a Document" - AD_Message / tick IsTranslated on main table

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

* Delete pr990_PR.txt

commited by error

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-11-19 17:02:54 +01:00
hengsin ceb056e6d8
IDEMPIERE-5048 Minor fix for Scheduler and SvrProcess: set m_trx to null (#989) 2021-11-19 16:12:39 +01:00
hengsin 29f5186d41
IDEMPIERE-5047 iDempiere Server Monitor Improvements (#988) 2021-11-19 16:04:54 +01:00
hengsin 2c5efb3031
IDEMPIERE-5046 Implement background reset of expire cache (#987) 2021-11-19 15:55:04 +01:00
hengsin 5ccd54caf8
IDEMPIERE-4900 SQL statement added as an option to define WF Next Nod… (#981)
* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition

Base on pull request 813 (Anton Mostovenko) and patch from
IDEMPIERE-1832 (Deepak Pansheriya)

* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition

Incorporate patch from carlos

* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition

Incorporate patch from Carlos
2021-11-17 12:06:42 +01:00
hengsin 8db15d01d1
IDEMPIERE-2168 Product with ASI Mandatory Type = When Shipping is still mandatory on sales orders (#976) 2021-11-15 19:06:24 +01:00
hengsin f4764b1411
IDEMPIERE-5039 Negative Lost Sales Quantity (#978)
* IDEMPIERE-5039 Negative Lost Sales Quantity

* IDEMPIERE-5039 Negative Lost Sales Quantity

* IDEMPIERE-5039 Negative Lost Sales Quantity

add unit test
2021-11-15 20:32:17 +08:00
Deepak Pansheriya 9c747a6f0d
IDEMPIERE-4086: Allow Product without price list on some document type (#974) 2021-11-12 10:57:30 +01:00
hengsin f937cdbf35
IDEMPIERE-5029 User can make Shipment/Receipt Line Product different … (#968)
* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

Merge patch from Carlos

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

Make consistent with previous patch - always use oLine.M_Product_ID for
reservation

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

add safe guard against oLine is Charge and sLine is Product.

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

- need to apply the oLine.getM_Product_ID changes to reservation log
too.

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

More fix for update of qtyreserved not using product id from oLine.

* IDEMPIERE-5029 User can make Shipment/Receipt Line Product different from Order Line Product

update of qtyreserved: should use warehouse and issotrx from order too
2021-11-11 18:48:27 +01:00
Carlos Ruiz 0f31a07f43
IDEMPIERE-5034 NPE and other problems when a file is removed from store attachment filesystem (#971) 2021-11-10 09:41:30 +08:00
hengsin d0340e70d5
IDEMPIERE-5031 Implement auto produce upon shipment for mfg light (#969)
* IDEMPIERE-5031 Implement auto produce upon shipment for mfg light

* IDEMPIERE-5031 Implement auto produce upon shipment for mfg light

Fix clean up of unit test
2021-11-09 14:23:49 +01:00
Saulo José Gil 4d93067d1a
IDEMPIERE-5025 Easier usage of process parameters (#963)
* IDEMPIERE-5025 Easier usage of process parameters

Created @Parameter annotation in order to tag process class attributes
as parameters and have them to have their values assigned automatically
without extra code.

* Minor changes
2021-11-06 14:50:14 +08:00
hengsin ea3b147fb1
IDEMPIERE-5021 Implement Storage Reservation Log (#961)
* IDEMPIERE-5021 Implement Storage Reservation Log

- implement log table for movement of QtyReserved and QtyOrdered

* IDEMPIERE-5021 Implement Storage Reservation Log

update javadoc and license header

* IDEMPIERE-5021 Implement Storage Reservation Log

increase documentno column length to 255

* IDEMPIERE-5021 Implement Storage Reservation Log

Fix migration script
2021-11-03 12:27:57 +01:00
hengsin ed4c1a81d0
IDEMPIERE-4472 Window Advanced Search - Allow select column from wind… (#959)
* IDEMPIERE-4472 Window Advanced Search - Allow select column from window tabs - 2pack compatibility

Based on pull request #170 from igorpojzl.
Difference from #170:
- use AD_Tab_UU instead of AD_Tab_ID
- use Combobox for table list

* IDEMPIERE-4472 Window Advanced Search - Allow select column from window tabs - 2pack compatibility

Fix attribute search

* IDEMPIERE-4472 Window Advanced Search - Allow select column from window tabs - 2pack compatibility

Merge patch from Carlos (increse length of AD_UserQuery.Code)
2021-11-01 22:05:49 +08:00
Carlos Ruiz 180b11bd65
IDEMPIERE-5020 Allow to show products without price in Info Product window (#957) 2021-10-29 15:35:40 +08:00
Carlos Ruiz 4e4a3d9bac
IDEMPIERE-4782 Multi-factor authentication (FHCA-2034) (#955)
- support for System user with access to multiple tenants
- default to re-register device when expired
2021-10-29 14:48:36 +08:00
hengsin 28638d075b
IDEMPIERE-5019 add org.adempiere.base.annotation.EventTopicDelegate annotation (#952) 2021-10-28 11:21:08 +02:00
hengsin 22c09368e6
IDEMPIERE-5015 add org.adempiere.base.annotation.Callout annotation (#948) 2021-10-27 12:15:58 +02:00
hengsin 85f640ffdf
IDEMPIERE-4966 Error in FinReport with List Sources and Native Postgr… (#945)
* IDEMPIERE-4966 Error in FinReport with List Sources and Native PostgreSQL

* IDEMPIERE-4966 Error in FinReport with List Sources and Native PostgreSQL

Incorporate suggestion from Carlos (replace DB.executeUpdate call with
DB.executeUpdateEx)
2021-10-26 16:35:08 +08:00
hengsin 633c2e240f
IDEMPIERE-5012 org.idempiere.ui.zk.annotation.Form annotation (#944) 2021-10-23 15:11:49 +02:00
hengsin 4759ae5c2b
IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation (#924)
* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

minor refinement

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

refine error handling

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

refactor to follow closer the AnnotationBasedModelFactory naming
convention.
2021-10-22 12:38:10 +02:00
hengsin 4b923f4d03
IDEMPIERE-5004 add org.adempiere.base.Model annotation support to MappedModelFactory (#930) 2021-10-22 12:27:48 +02:00
hengsin a73ce05875
IDEMPIERE-4999 Advanced Lookup on sub-tab of a window triggers a PSQL Exception (#939)
- Integrate patch from Tony Snook to fix issue with "product category"
and "Chosen Multiple Selection List" field
2021-10-22 12:23:39 +02:00
hengsin eb82c679ca
IDEMPIERE-5003 Abort for workflow activity and process manage is not working (#925) 2021-10-22 12:18:20 +02:00
HideakiHagiwara 9f835c3e15
IDEMPIERE-5008 Performance improvement of "NF3.0 Tree On Any Table". (#938)
Co-authored-by: jpiere <h.hagiwara@compiere-distribution-lab.net>
2021-10-21 15:48:09 +08:00
Ricardo Santana 1970ee6539
IDEMPIERE-5002 RMA does not handle UoM properly (#928) 2021-10-21 15:23:17 +08:00
Diego Ruiz c9354bca85
IDEMPIERE-5000 Window Customization Field does not show fields that are not displayed in the Window>Tab>Field sytem record (#922) 2021-10-13 16:14:59 +02:00
Diego Ruiz 6dd60f30c7
IDEMPIERE-4723 - Clean up org.compiere.acct dead code (#921) 2021-10-13 13:19:18 +08:00
Nicolas Micoud 08b2c28207
IDEMPIERE-4998 : NPE when saving a SysConfig from code (#920)
* IDEMPIERE-4998 : NPE when saving a SysConfig from code

fix missing parenthesis and remove .bak file

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>
2021-10-12 17:16:44 +02:00
Carlos Ruiz 5f39c14e31
IDEMPIERE-4997 Allow to use product (or charge) in commissions configuration (#919) 2021-10-12 12:04:59 +02:00
Carlos Ruiz 68d2d7432e
IDEMPIERE-2624 Cant confirm 0 qty on Shipment Confirmation (#917) 2021-10-12 09:36:49 +08:00
gsjeffen eb3db56364
IDEMPIERE-4863 Enable save column width in WListBox (#883)
* IDEMPIERE-4863-1 Enable save column width in WListBox

This PR is the base for implementing save of column width of a wlistbox in forms and windows.

* IDEMPIERE-4863-1 Enable save column width in WListBox implementation example

This commit is showing examples implementation of this PR, it is for infoProductWindow and infoWindow
2021-10-12 09:27:26 +08:00
Diego Ruiz 859c30166b
IDEMPIERE-4964 - Status line message does not update when changing th… (#918)
* IDEMPIERE-4964 - Status line message does not update when changing the detail

* Update GridTab.java

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-10-11 20:06:01 +02:00
Diego Ruiz 7d7b2cf5b4
IDEMPIERE-4723 Clean code org.adempiere.base/ akunagroup/ adempiere /base/imexp/model/print/process/util org.compiere (#915) 2021-10-11 16:49:41 +08:00
Carlos Ruiz ca9aa33afb
IDEMPIERE-4986 Extend events to prefill email dialog variables from report window (#908)
* IDEMPIERE-4986 Extend events to prefill email dialog variables from report window

* IDEMPIERE-4986 Extend events to prefill email dialog variables from report window / also in new Attachment button

* IDEMPIERE-4986 Extend events to prefill email dialog variables from report window / change approach to constructor

* IDEMPIERE-4992 email from archive dialog
2021-10-08 16:28:45 +08:00
Nicolas Micoud 631e25b599
IDEMPIERE-4721 : Financial Report : exclude all adjustment periods - … (#904)
* IDEMPIERE-4721 : Financial Report : exclude all adjustment periods - fix NPE

reported by @CarlosRuiz-globalqss ; see https://idempiere.atlassian.net/browse/IDEMPIERE-4721?focusedCommentId=47539

* IDEMPIERE-4721 : Financial Report : exclude all adjustment periods - fix NPE

Using Carlos's suggestion

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

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-10-07 10:53:43 +02:00
hengsin 8fbac60b1a
IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light (#906)
* IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light

* IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light

Fix deprecation warnings

* Update 202109291600_IDEMPIERE-1250.sql

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-10-06 17:06:26 +02:00
Nicolas Micoud 080ba69967
IDEMPIERE-4982 : Methods to retrieve value from multiple process para… (#901)
* IDEMPIERE-4982 : Methods to retrieve value from multiple process parameters

Co-authored-by: hengsin <152246+hengsin@users.noreply.github.com>
2021-09-30 15:56:58 +08:00
Carlos Ruiz 557c483fc9
IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / Shell script (#891)
* IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / Shell script

* IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / Java Shell script -> beanshell/groovy

* IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / Remove java class option, fixes for script

* IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / rename to ScriptJSR223

* IDEMPIERE-4968 Enable 2Pack to run java class or script (FHCA-3112 FHCA-3113) / add audit information to SQL statements, shell and JSR223 scripts
2021-09-24 16:38:07 +08:00
Carlos Ruiz 80ed239ac2
IDEMPIERE-4979 ModelGenerator class generates entries for inactive ref lists (#898) 2021-09-23 22:58:21 +08:00
hengsin 164e6d15b6
IDEMPIERE-4842 Easier model registration (#895)
* IDEMPIERE-4842 Easier model registration

- Needs to enable jar scanning to support felix/console installation of
plugin jar.
- add rejectJars call to reduce startup delay after enable of jar
scanning. keep the list short to reduce future maintenance hazard.
- remove the not supported use of acceptPackagesNonRecursive and
acceptClasses together.
- change getAcceptClassesPatterns() default to X_* and M*. Withouut
acceptPackages, we need to scan both X and M classes.

* IDEMPIERE-4842 Easier model registration

- remove use of rejectJars since the performance difference is small and
need maintenance.
- remove warning for not overriding getPackages(). Plugin that doesn't
has many model class (< 100) doesn't have to override getPackages() as
performance is good enough with the use of acceptClasses(...).
2021-09-23 21:14:47 +08:00
Fr Jeremy Krieg 445ca8e0fa
Fix error in setting product resource type. (#897)
Signed-off-by: kriegfrj <fr.jkrieg@greekwelfaresa.org.au>
2021-09-23 15:11:03 +02:00
Saulo José Gil 2b4a2be5a2
IDEMPIERE-4842 Easier model registration (#893)
* IDEMPIERE-4842 Easier model registration

- Change from https://github.com/atteo/classindex to
https://github.com/classgraph/classgraph, remove annotation processor
config.

- Change service.ranking of DefaultModelFactory to -1 and
service.ranking of AnnotationBasedModelFactory to 0. This give
AnnotationBasedModelFactory higher priority over DefaultModelFactory and
allow plugins to have higher priority over AnnotationBasedModelFactory
with server.ranking of 1 (the common practise before the introduction of
AnnotationBasedModelFactory).

- Added resultset constructor to MTree. This is to allow the use of
MTree with model factory.

- Remove classindex annotation from org.adempiere.base.Model and X_*
model classes.

- Added unit test for table to model class mapping

- AnnotationBasedModelFactory: Change from using annotation processor to
runtime annotation scanning using the classgraph library. The default
setting scans all the X_* model class and travels the inheritance
hierarchy to discover the M* model class. Plugin needs to create a
subclass of AnnotationBasedModelFactory and register it as an OSGi
component to scan the plugin's annotated model classes (the plugin's
custom AnnotationBasedModelFactory component should have service.ranking
> 0).

* IDEMPIERE-4842 Easier model registration

minor refinement

* Minor changes

Co-authored-by: hengsin <hengsin@gmail.com>
2021-09-22 22:42:51 +08:00
Nicolas Micoud 86c21dafda
IDEMPIERE-4866 : Multiple smtp per tenant (#884)
* IDEMPIERE-4866 : Multiple smtp per tenant

Same PR as https://github.com/idempiere/idempiere/pull/783

* IDEMPIERE-4866 : Multiple smtp per tenant - various fixes

Fixes suggested by Carlos on https://github.com/idempiere/idempiere/pull/783 (remove System.out, change AD_Element name, tab in SingleRow mode) + fix NPE

* IDEMPIERE-4866 : Multiple smtp per tenant : implement cache

* IDEMPIERE-4866 : Multiple smtp per tenant : process EMailTest was not set on column

Fixes by Carlos

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-09-21 14:56:56 +02:00
Carlos Ruiz 078d130cd7
IDEMPIERE-4969 Clean non-working 2Pack Code for File and CodeSnippet (#886) 2021-09-19 15:31:18 +08:00
hengsin 5413f0c11d
IDEMPIERE-4842 Easier model registration (#888)
* IDEMPIERE-4842 Easier model registration

- Temporary disable AnnotationBasedModelFactory until getSubclasses()
doesn't work for subclass from different package is resolve.

* IDEMPIERE-4842 Easier model registration

- turn of annotation processing in editor which causes slow editor
performance
2021-09-19 13:16:53 +08:00