diff --git a/CHANGELOG b/CHANGELOG index 231186c8cf..d08e517235 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add states attribute to notebook * Allow to use tuple for Reference * Add constant interpolation on line graph * Add create/delete field access diff --git a/doc/topics/views/index.rst b/doc/topics/views/index.rst index 3af4c8313b..65e6ab0027 100644 --- a/doc/topics/views/index.rst +++ b/doc/topics/views/index.rst @@ -303,6 +303,8 @@ It adds a notebook widget which can contain page tags. * ``colspan``: see in common-attributes-colspan_. + * ``states``: see in common-attributes-states_. + page ^^^^ diff --git a/trytond/ir/ui/form.rnc b/trytond/ir/ui/form.rnc index 638c60a74f..d2860fd54c 100644 --- a/trytond/ir/ui/form.rnc +++ b/trytond/ir/ui/form.rnc @@ -145,6 +145,7 @@ attlist.button &= attribute name { text } attlist.button &= attribute states { text }? notebook = element notebook { attlist.notebook, page* } attlist.notebook &= [ a:defaultValue = "4" ] attribute colspan { text }? +attlist.notebook &= attribute states { text }? page = element page { attlist.page, diff --git a/trytond/ir/ui/form.rng b/trytond/ir/ui/form.rng index 9addab9627..a16208e7f9 100644 --- a/trytond/ir/ui/form.rng +++ b/trytond/ir/ui/form.rng @@ -566,6 +566,11 @@ + + + + +