A Divendres, 24 de juliol de 2009, [email protected] va escriure:
> Hi,
>
> I designed custom screen via UML - Dia tool, imported successfully.
> via OpenERP Web, i created a 'Save' button for the custom screen, entered 
> data and clicked 'Save' button Error messaage displayed like " Warning -
> Invalid button type',
> whereas, entered data saved successfully into database.
>
> can somebody help me out, how i can violate the error message .

You should create a dummy function on the model. In the view you should write:

<button name="action_dummy" string="Save" type="object"/>

And in the model:

def action_dummy(self, cr, uid, ids, context={}):
        return {}

Hope that helps!

>
> ------------------------
> Regards,
>   Sudhakar Arige
>
>
>
>
> -------------------- m2f --------------------
>
> --
> http://www.openobject.com/forum/viewtopic.php?p=39900#39900
>
> -------------------- m2f --------------------
>
>
> _______________________________________________
> Tinyerp-users mailing list
> http://tiny.be/mailman2/listinfo/tinyerp-users


-- 
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to