Reviewers: ,


Please review this at http://codereview.tryton.org/688002/

Affected files:
  M CHANGELOG
  M doc/topics/views/index.rst
  M trytond/ir/ui/form.rnc
  M trytond/ir/ui/form.rng


Index: CHANGELOG
===================================================================

--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,4 @@
+* Allow to group One2Many widgets
 * Add selection_change_with on Selection and Reference fields
 * Add Dict fields
 * Remove unique constraint on model and field access

Index: doc/topics/views/index.rst
===================================================================

--- a/doc/topics/views/index.rst
+++ b/doc/topics/views/index.rst
@@ -207,6 +207,9 @@
specifies the order of the view used to display the relation. (Example:
       ``tree,form``)

+    * ``group``: Only for One2Many fields: it will synchronize the selected
+      record on each widget of the same group.
+
* ``view_ids``: A comma separated list that specifies the view ids used to
       display the relation.


Index: trytond/ir/ui/form.rnc
===================================================================

--- a/trytond/ir/ui/form.rnc
+++ b/trytond/ir/ui/form.rnc
@@ -81,6 +81,7 @@
 attlist.field &=
   [ a:defaultValue = "0" ] attribute tree_invisible { "0" | "1" }?
 attlist.field &= attribute mode { text }?
+attlist.field &= attribute group { text }?
 attlist.field &= attribute view_ids { text }?
 attlist.field &=
   [ a:defaultValue = "0" ] attribute invisible { "0" | "1" }?

Index: trytond/ir/ui/form.rng
===================================================================

--- a/trytond/ir/ui/form.rng
+++ b/trytond/ir/ui/form.rng
@@ -279,6 +279,11 @@
   </define>
   <define name="attlist.field" combine="interleave">
     <optional>
+      <attribute name="group"/>
+    </optional>
+  </define>
+  <define name="attlist.field" combine="interleave">
+    <optional>
       <attribute name="view_ids"/>
     </optional>
   </define>



--
--
[email protected] mailing list

--- You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to