Grazie, ho provato in tutte le maniere, ma non gli piace, e non riesco a capire dove sbaglio.
questo è il messaggio di errore:
raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to product_datasheet.action_paperboard_weight_suppliers
eppure mi pare corretto; questo è il pulsante sul programa chiamante:
<button name="%(action_paperboard_weight_suppliers)d" string="Paperboard weight by Suppliers" type="action" icon="gtk-execute" groups="base.group_extended"/>
questa è la view del wizard:
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- View of Paperboard weight by Default's suppliers (memory object)-->
<record id="view_paperboard_weight_suppliers" model="ir.ui.view">
<field name="name">board weight by Default's suppliers</field>
<field name="model">paperboard.weight.suppliers</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Paperboard weight by Default's suppliers">
<field name="partner_id"/>
<field name="weight_mq"/>
</form>
</field>
</record>
<act_window name="Paperboard weight by Suppliers"
res_model="paperboard.weight.suppliers"
src_model="product.acsked"
key2="client_action_multi"
multi="True"
view_mode="form"
view_type="form"
target="new"
id="action_paperboard_weight_suppliers"/>
</data>
</openerp>
e questo è il programma del wizard:
class paperboard_weight_suppliers(osv.osv_memory):
_name = "paperboard.weight.suppliers"
_description = "Paperboard weight by suppliers"
_columns = {
'partner_id': fields.many2one('res.partner', 'Supplier', domain=[('supplier', '=', True)]),
'weight_mq': fields.float('gr. for mq'),
}
def view_init(self, cr, uid, fields_list, context=None):
if context is None:
context = {}
# qui metterò le letture per i dati da mostrare all'utente
return False
paperboard_weight_suppliers()
...e non capisco dov'è l'errore. aiuto!!!