← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704492] Re: [TRUNK 4305] INVISIBLE AND REQUIRED ATTRS NOT EVALUATED

 

This bug back from last trunk


ATTRS not evaluate after a on_change events


To solve the problem, i added form_hookAttrChange();

in addons/openerp/static/javascript/form.js
in function onChange(caller)

after the line 680 (fld.__lock_onchange = false;)

add this

form_hookAttrChange();

Anyone can confirm it, in my test all time i have a on_change with
result modify other fields and some attrs on this fields, attrs no
evaluate, my fix solve the problem.

** Changed in: openobject-client-web
       Status: Fix Released => New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/704492

Title:
  [TRUNK 4305] INVISIBLE AND REQUIRED ATTRS NOT EVALUATED

Status in OpenERP Web Client:
  New

Bug description:
  SITUATION

  a field date and a text field

  TEXT fields need to be visible and required only if the date is 16
  year old or less

  
  ON NO EDIT MODE

     DATE  AGE > 16 YEAR  :  Field invisible BUT LABEL is visible (NOT OK LABEL NEED TO BE INVISIBLE TOO)
     DATE  AGE <= 16 YEAR  :  Field and label visible  (OK) 

  ON EDIT MODE OPEN WITH DATE AGE <= 16

      Field & Lable visible and required  (OK)
   
      CHANGE DATE AGE TO BE > 16

      Field & Lable visible and required  (NOT OK THAT NEED TO BE
  INVISIBLE AND NOT REQUIRED)

  ON EDIT MODE OPEN WITH AGE > 16
    
      Field invisible, Lable visible, not required  (NOT OK LABEL NEED TO BE INVISIBLE TOO)

      CHANGE DATE AGE TO BE <= 16

      Field invisible, Lable visible, not required  (NOT OK Field NEED
  TO BE INVISIBLE AND REQUIRED)


  
  ATM i have no time to debug that, but that will work fine and previous version, can't remember de version number, but i know that worked fine, today we test and that no more worked.

  I hope i'm clear in my explication.  This is a major bug for me and
  maybe for many other develloper, it's not normal then ATTRS is not re-
  evaluate when value change.





References