← Back to team overview

openerp-expert-framework team mailing list archive

Re: Warning message when creating/writing objects

 

Dear Yannick,

Thanks for the response. I already seen the log methods of the orm class,
unfortunately this message is often ignored by the OpenERP users and I
think (if I remember well from OpenERP days, correct me otherwise) it will
be removed in version 7.0. So I really need a popup message.

Regards

Damián Soriano


On Tue, Nov 27, 2012 at 9:59 AM, Yannick Vaucher <
yannick.vaucher@xxxxxxxxxxxxxx> wrote:

> Hello,
>
> If you are not looking for a popup message, and if you are using the
> webclient in at least 6.1 you might be interested by the orm log method
> which will show you a notification and a link on an object
> (for example your created/written object).
>
> Regards,
> Yannick
>
>
> On Wed, Nov 7, 2012 at 4:09 PM, Damian Soriano (Gmail) <
> damiansoriano@xxxxxxxxx> wrote:
>
>> Dear Framwork Experts,
>>
>> I face this same problem many times during the development of modules, I
>> want to show some warning message when a an object is created or written
>> but still allow the operation to take place.
>>
>> The normal way I do this is by raising an exception from python to show
>> the message. Unfortunately, if I raise an exception when creating/writing
>> an object the operation is aborted, so I cannot do that. I tried to return
>> an action from the create function but unsuccessfully.
>>
>> Is there any way to accomplish this?
>>
>> If not I strongly believe that OpenERP should give support for that.
>>
>> Regards
>>
>> Damián Soriano
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openerp-expert-framework
>> Post to     : openerp-expert-framework@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openerp-expert-framework
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

References