Cannot set Limit Option for O2M field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
I have a from view with a O2M field. I could not set the limit field to limit the number of rows displayed at a time on the Form view.
I suggest the following patch will allow setting a attribute list_options as attribute of O2M field in XML.
--- /opt/dev/
+++ /opt/dev/
@@ -3520,6 +3520,11 @@
var self = this;
var modes = this.node.
+ try {
+ var list_options = JSON.parse(
+ } catch(e) {
+ var list_options = {};
+ }
modes = !!modes ? modes.split(",") : ["tree"];
var views = [];
@@ -3542,6 +3547,7 @@
+ _.extend(
if (self.get(
Version: 7.0-20131211-002426
Attaching the Patch file