[FIX] warning: make blocking warning actually doing something (opw 607380)
authorMartin Trigaux <mat@openerp.com>
Wed, 7 May 2014 10:25:50 +0000 (12:25 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 7 May 2014 10:25:50 +0000 (12:25 +0200)
commit95ba80f174a71cbf14b1d94f1c02527fe8d04a9f
tree159ce19b3b43c16f9f3acd0691014b87f2f8f93b
parent5f5fd653db5608da3facb0d9179c8555b7027a0a
[FIX] warning: make blocking warning actually doing something (opw 607380)

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 it forbid to create a record that uses this partner/product but it make it not possible to select it through the web interface.

bzr revid: mat@openerp.com-20140507102550-sms5nbf0u7pdkci9
addons/warning/warning.py