[TRUNK 4305] INVISIBLE AND REQUIRED ATTRS NOT EVALUATED
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Fix Released
|
Low
|
OpenERP R&D Web Team |
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.
Related branches
Changed in openobject-client-web: | |
status: | Confirmed → Fix Released |
Changed in openobject-client-web: | |
status: | Confirmed → In Progress |
hello,
i checked and i confirm the bug: attrs aren't working well in the web client.
1st bug:
-open the form view of a product.
-there is currently attrs on the weight and volume (make it readonly if product is a service)
-open a service product in edit mode and change its type to stockable
=> the fields stay not editable
2nd bug:
-modify the attrs in order to make it invisible instead of readonly if product is a service
-open a stockable product and change its type to service
=> the field is hidden but the label is still visible
Thanks Serge for the bug report, but next time try not to abuse of capital letters !
Quentin