Hi, 

I am trying to add an additional wizard to the products module 
which will be used to print a label for the current product. I have
the following in bin/addons/product/product_wizard.xml:

<?xml version="1.0" encoding="iso-8859-1"?>
<terp>
        <data>
                 <wizard 
                        string="Print Label" 
                        model="product.product"
                        name="product.print_label" 
                        id="wizard_print_label"/>

                 <wizard 
                        string="Check EAN13" 
                        model="product.product" 
                        name="product.ean13" 
                        id="wizard_ean_check"/>

                 <wizard 
                        string="Product Cost Structure" 
                        model="product_product" 
                        name="product_price" 
                        menu="False"
                        id="wizard_price"/>

                 <record model="ir.values" id="ir_project_cost_structure">
                         <field name="key2" eval="'client_print_multi'"/>
                         <field name="model" eval="'product.product'"/>
                         <field name="name">Product Cost Structure</field>
                         <field name="value" 
eval="'ir.actions.wizard,%d'%wizard_price"/>
                         <field name="object" eval="True"/>
                 </record>              
        </data>
</terp>

and have a file called bin/addons/product/wizard/wizard_print_label.py:

import wizard
import math
from osv import osv
from tools.misc import UpdateableStr
import pooler

arch = UpdateableStr
fields = {}

def _print_label(self, cr, uid, data, context):
    print("PRINT LABEL")
    
class wiz_print_label(wizard.interface):
    states = { 'init': { 'actions' : [_print_label],
                         'result' : {'type' : 'form',
                                     'arch' : arch,
                                     'fields' : fields,
                                     'state' : [('end', 'Cancel')]}
                         },
               }
      
wiz_print_label('product.print_label')

which is currently just a stub. I have added wizard_print_label.py
to the __init__.py file in bin/addons/product/wizard and the
product_wizard.xml is listed in the update_xml list in 
bin/addons/product/__terp__.py

The problem is that when I run tinyerp-server with --update=all, 
or --update=product it doesn't seem to reload the XML for the
product module (or any other module). In the loading output for 
tinyerp-server I get:

....
Tue, 27 May 2008 17:13:10 INFO:init:addon:base
Tue, 27 May 2008 17:13:10 INFO:init:addon:base:creating or updating database 
tables
Tue, 27 May 2008 17:13:11 INFO:init:addon:base:loading base_data.xml
Tue, 27 May 2008 17:13:12 INFO:init:addon:base:loading base_menu.xml
Tue, 27 May 2008 17:13:12 INFO:init:addon:base:loading base_update.xml
Tue, 27 May 2008 17:13:12 INFO:init:addon:base:loading ir/ir.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading 
ir/workflow/workflow_view.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading module/module_data.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading module/module_wizard.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading module/module_view.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading module/module_report.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading res/res_request_view.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading 
res/partner/partner_report.xml
Tue, 27 May 2008 17:13:13 INFO:init:addon:base:loading 
res/partner/partner_view.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base:loading 
res/partner/partner_wizard.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base:loading res/res_currency_view.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base:loading res/partner/crm_view.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base:loading 
res/partner/partner_data.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base:loading res/ir_property_view.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base_setup
Tue, 27 May 2008 17:13:14 INFO:init:addon:base_setup:creating or updating 
database tables
Tue, 27 May 2008 17:13:14 INFO:init:addon:base_setup:loading base_setup_data.xml
Tue, 27 May 2008 17:13:14 INFO:init:addon:base_setup:loading 
base_setup_wizard.xml
Tue, 27 May 2008 17:13:14 INFO:web-services:starting XML-RPC services, port 3489
Tue, 27 May 2008 17:13:14 INFO:web-services:You are not using the SSL layer
Tue, 27 May 2008 17:13:14 INFO:web-services:the server is running, waiting for 
connections...

How do I get tinyerp-server to reload the XML wizards for my the
product module so that I can add additional wizards?

Cheers,
~Ryan

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

Reply via email to