diff --git a/bin/addons/base/rng/view.rng b/bin/addons/base/rng/view.rng index dc8b8061b5f..09b1080e7cf 100644 --- a/bin/addons/base/rng/view.rng +++ b/bin/addons/base/rng/view.rng @@ -128,7 +128,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -396,6 +396,7 @@ + @@ -469,7 +470,7 @@ - + @@ -482,9 +483,9 @@ - + - + @@ -509,6 +510,7 @@ + diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 15effe8b84d..2bf846d631d 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1514,6 +1514,10 @@ class orm_template(object): 'action': resaction, 'relate': resrelate } + if result['type']=='form' and result['arch'].count("default_focus")>1: + msg = "Form View contain more than one default_focus attribute" + netsvc.Logger().notifyChannel('orm', netsvc.LOG_ERROR, msg) + raise except_orm('View Error !',msg) return result _view_look_dom_arch = __view_look_dom_arch