Quick Create Doesn't consider Window Customisation settings

Description

Steps to reproduce
1. Create Window customisation rule >> e.g. Bus. Partner>> BP tab>> make a field mandatory
2. Open Sales Order, Right Click to Bus. Partner>> Create New Bp
3. BUG: idempiere allow to create BP without validation/consider Window Customisation Field Rules. This cause corrupt data.

remark: in my case field was not visible in quick create.

Environment

None

Attachments

2
  • 09 May 2020, 07:55 PM
  • 09 May 2020, 07:55 PM

Activity

Show:

Carlos Ruiz September 20, 2023 at 8:41 AM

About suggestions from

allow to overwrite “Quick Entry” option at field customization (this is my vote)

Agree, I think this is the right fix, BTW is worthy also to add quick form at this point.

 

Testing, I noticed something weird here, the mandatory is enforced on model level when the field is not displayed, in other words, making a field mandatory on field or window customization and not displaying it doesn’t do anything, mandatory is just applied when the field is visible (except when the mandatory is set in column). This is maybe not a big deal, just taking note about this.

zuhri utama September 20, 2023 at 2:45 AM

triaged by Zuhri Utama

reproducible on Idempiere 11

 

steps :

  • login as System

  • open “window, tab & field” for Business Partner

  • set mandatory overwrite to “yes” on field Url for tab “Business Partner”

  • login as GW

  • open “Sales Order”

  • right click on Business Partner field and select “New”

  • enter Name and Address (it raise an error but the BP is saved)

  • BP is saved with URL still empty

 

when i tried this step, i encounter new issue

Murilo Habermann Torquato May 9, 2020 at 7:55 PM

Hi ,

I can confirm that this is still happening on latest version and also agree that this can lead on corrupt data.

Steps to reproduce:

  • Create a Window Customization for Business Partner window/tab (that matches with your user/role)

    • Make Name 2 as mandatory

    • Make URL as mandatory

  • Clean Cache and open Business Partner Window

    • You will see that now both fields are mandatory

  • Open Sales Order window

    • Right click on Business Partner Field and then “Quick Entry” option

      • You will see the Name 2 field as mandatory and the URL is not displayed

         

Just for reference, the problem happens because QuickEntry form only displays fields defined as “QuickEntry” at Dictionary level.

 

I think that we have 2 possible solutions here:

  1. allow to overwrite “Quick Entry” option at field customization (this is my vote)

  2. by default, if a field is customized as mandatory make it also displayed on Quick Entry form

WDYT ?

Details

Assignee

Reporter

Affects versions

Priority

Created April 18, 2016 at 7:14 AM
Updated September 20, 2023 at 8:41 AM