From 6ba2d5da9667ecffea0dfd94ee9d8ae4ffb82b0c Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Tue, 7 Aug 2012 12:24:55 +0530 Subject: [PATCH] [FIX]:Fix a predicate function doc bzr revid: aja@tinyerp.com-20120807065455-hn71rrs0yoav0zi5 --- openerp/tools/view_validation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/tools/view_validation.py b/openerp/tools/view_validation.py index e4324d143f1..7e710d55816 100644 --- a/openerp/tools/view_validation.py +++ b/openerp/tools/view_validation.py @@ -11,7 +11,7 @@ def valid_page_in_book(arch): def valid_field_in_graph(arch): - """A `field` node must be below a `graph` node.""" + """A `graph` must have `string` attribute and an immediate node of `graph` view must be `field`.""" if arch.xpath('//graph[not (@string)]'): return False for child in arch.xpath('/graph/child::*'): @@ -21,7 +21,7 @@ def valid_field_in_graph(arch): def valid_field_in_tree(arch): - """A `field` and `button` node must be below a `tree` node. And tree must have `string` attribute.""" + """A `tree` must have `string` attribute and an immediate node of `tree` view must be `field` or `button`.""" if arch.xpath('//tree[not (@string)]'): return False for child in arch.xpath('/tree/child::*'):