Thankyou for that. I have put the tooltip on the same button as you, and it worked as per the video.
The place where it does not work in my module is different from your example.
Your example has a button:
<button colspan="1" name="%(action_view_sale_order_line_make_invoice)d" states="confirmed" string="Make Invoices" help="Richard" type="action" icon="terp-document-new"/>
The difference is the action in the sample code calls an action of type "ir.actions.act_window"
<record id="action_view_sale_order_line_make_invoice" model="ir.actions.act_window">
<field name="name">Make Invoices</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order.line.make.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_sale_order_line_make_invoice"/>
<field name="target">new</field>
</record>
Our code is calling an action of type "ir.actions.server"
<record id="action_w_config_launch_config" model="ir.actions.server">
<field name="code">
# Call method action_config on the sales order line object, passing the context from the form.
# The method returns the window action definition to open whichever is the appropriate
# configurator wizard.
action = self.action_config(cr, uid, [], context=context)
</field>
<field eval="5" name="sequence"/>
<field name="state">code</field>
<field name="type">ir.actions.server</field>
<field name="model_id" ref="model_w_config_choices_wiz"/>
<field name="condition">True</field>
<field name="name">action_w_config_launch_config</field>
</record>
Thankyou for that. I have put the tooltip on the same button as you, and it worked as per the video.
The place where it does not work in my module is different from your example.
Your example has a button: (action_ view_sale_ order_line_ make_invoice) d" states="confirmed" string="Make Invoices" help="Richard" type="action" icon="terp- document- new"/>
<button colspan="1" name="%
which differs little from ours:
<button name="% (action_ w_config_ launch_ config) d" string= "Configurator. .."
icon=" gtk-properties" type="action" colspan="1"
context= "{'configurator _type': 'so'}"
attrs= "{'readonly' : ['|', '|', ('id', '<=', 0), ('has_configura tion', '=', False), ('state', '!=', 'draft')]}"
help="Edit Configurator choices"/>
The difference is the action in the sample code calls an action of type "ir.actions. act_window" view_sale_ order_line_ make_invoice" model=" ir.actions. act_window" > >ir.actions. act_window< /field> model"> sale.order. line.make. invoice< /field> type">form< /field> mode">form< /field> sale_order_ line_make_ invoice" /> >new</field>
<record id="action_
<field name="name">Make Invoices</field>
<field name="type"
<field name="res_
<field name="view_
<field name="view_
<field name="view_id" ref="view_
<field name="target"
</record>
Our code is calling an action of type "ir.actions.server" w_config_ launch_ config" model=" ir.actions. server" > config( cr, uid, [], context=context) >code</ field> >ir.actions. server< /field> w_config_ choices_ wiz"/> ">True< /field> >action_ w_config_ launch_ config< /field>
<record id="action_
<field name="code">
# Call method action_config on the sales order line object, passing the context from the form.
# The method returns the window action definition to open whichever is the appropriate
# configurator wizard.
action = self.action_
</field>
<field eval="5" name="sequence"/>
<field name="state"
<field name="type"
<field name="model_id" ref="model_
<field name="condition
<field name="name"
</record>
I hope this helps direct you.
Thankyou,
Richard