[imp] made kanban view read only in o2m
bzr revid: nicolas.vanhoren@openerp.com-20120514152846-pke1gtxkzn0k7l1i
This commit is contained in:
parent
0c7a63bb3a
commit
b26da31d09
|
@ -2749,6 +2749,11 @@ instance.web.form.FieldOne2Many = instance.web.form.AbstractField.extend({
|
|||
view.view_type = 'form';
|
||||
}
|
||||
view.options.not_interactible_on_create = true;
|
||||
} else if (view.view_type === "kanban") {
|
||||
if (self.get("effective_readonly")) {
|
||||
view.options.action_buttons = false;
|
||||
view.options.quick_creatable = false;
|
||||
}
|
||||
}
|
||||
views.push(view);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue