Fields get blued in view mode if attrs is applied.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Fix Released
|
Low
|
OpenERP R&D Web Team | ||
5.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
Trunk |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
Thank you for your speedy fix to my last problem! :) Unfortunately I've found another bug with conditional formatting:
We have a number of fields conditionally made required (using attrs). When the form is shown in 'view' mode, these fields are incorrectly highlighted blue.
The problem seems to be in the 'form_setRequir
Please see my below suggested fix (starting from line 319 of form_state.js):
var form_setRequired = function(container, field, required) {
var editable = getElement(
if (editable == 'True') {
if (required) {
} else {
}
}
MochiKit.
var kind = MochiKit.
if (field.type == 'hidden' && kind == 'many2one') {
}
}
Related branches
summary: |
- [5.0] conditionally required fields highlighted in 'view' mode + Fields get blued in view mode if attrs is applied. |
Hello,
Our R&D Teams are focused on the latest OpenERP version, and this issue does not affect it.
Thanks.