[imp] made kanban view read only in o2m

bzr revid: nicolas.vanhoren@openerp.com-20120514152846-pke1gtxkzn0k7l1i
This commit is contained in:
niv-openerp 2012-05-14 17:28:46 +02:00
parent 0c7a63bb3a
commit b26da31d09
1 changed files with 5 additions and 0 deletions

View File

@ -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);
});