[FIX] warning: make blocking warning actually doing something (opw 607380)
authorMartin Trigaux <mat@openerp.com>
Wed, 7 May 2014 11:39:40 +0000 (13:39 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 7 May 2014 11:39:40 +0000 (13:39 +0200)
Instead of raising an exception (which only interupt the call of the onchange methods), return a dictionnary to set the forbidden partner or product to an empty value.
The call is not blocking in a way to forbid creating a record that uses this partner/product but it is not possible to select it through the web interface.

bzr revid: mat@openerp.com-20140507113940-d8iynfl1lcskht63

addons/auth_oauth/auth_oauth_view.xml

index ffc3975..5c889d3 100644 (file)
@@ -11,6 +11,7 @@
                             <field name="name" />
                             <field name="client_id" />
                             <field name="enabled" />
+                            <field name="body" />
                         </group>
                         <group>
                             <field name="auth_endpoint" />