Gerry,

I have created several wizards without finding that problem.

To create and operate a wizar you need:
    - To register it in the xml (you did it because you wouldn't be able to 
trigger that error if you hadn't)
    - Create a .py file with a class derived from the wizard interface. 
    - Of course, add "import wizard" in your module __init__.py file and 
'import wizard_file" in your wizard/__init__.py file
    - Make sure that in your wizard .py file you call your class appropiately.

Example:
In XML file:
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<wizard
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string="Etiqueta de 
envĂ­o"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; model="sale.order"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
name="mymodule.etiqueta.pedido.report"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
id="wizard_etiqueta_pedido"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; />

In .py file:
class wizard_etiquetas&#40;wizard.interface&#41;&#58;
.... &#40;code here&#41; ....
wizard_etiquetas&#40;'mymodule.etiqueta.pedido.report'&#41;

Look at the last line carefully: you instantiate your wizard and give it a 
proper key which must mach with the key in your xml.

Regards,
Pedro





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to