# HG changeset patch # User Sergi Almacellas Abellana Allow to apply inheritance in calendar view review10061002 Index: trytond/trytond/ir/ui/calendar.rnc =================================================================== --- a/trytond/trytond/ir/ui/calendar.rnc +++ b/trytond/trytond/ir/ui/calendar.rnc @@ -9,4 +9,14 @@ [ a:defaultValue = "Unknown" ] attribute string { text }? field = element field { attlist.field, empty } attlist.field &= attribute name { text } -start = calendar +data = element data { attlist.data, xpath* } +attlist.data &= empty + +xpath = element xpath { attlist.xpath, ( field )* + } +attlist.xpath &= attribute expr { text } +attlist.xpath &= + [ a:defaultValue = "inside" ] + attribute position { "inside" | "replace" | "replace_attributes" | "after" | "before" }? + +start = data | calendar Index: trytond/trytond/ir/ui/calendar.rng =================================================================== --- a/trytond/trytond/ir/ui/calendar.rng +++ b/trytond/trytond/ir/ui/calendar.rng @@ -30,7 +30,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + inside + replace + replace_attributes + after + before + + + + - + + + +