Pular para o conteúdo
Menu
Esta pergunta foi sinalizada

this is what we have as default in odoo v16 when we select a product in order line. an pop-up will appear and you can select values.

I want to open an wizard from an onchange of product_template_id to select some values.

But I don't know why its not opening. I am using this code

view_item = [(self.env.ref('product_uoms.uom_wizard_view').id, 'form')]
view = self.env.ref('product_uoms.uom_wizard_view')
return {
'name': 'Select UoM',
'view_type': 'form',
'view_mode': 'form',
'view_id': view.id,
'res_model': 'uom.wizard',
'views': view_item,
'type': 'ir.actions.act_window',
'target': 'new',


Avatar
Cancelar
Melhor resposta

Hi, you can follow following link for this:

https://youtu.be/oMnHpHH54QU

Thanks

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mar. 25
2982
0
jan. 24
1419
2
mar. 23
5153
2
jan. 24
3303
2
mar. 24
2793