Pular para o conteúdo
Menu
Esta pergunta foi sinalizada

I want to disable the inline creation, I only want to create using a from if the item not found in the many2one dropdown. The code below is not helping.

<xpath expr = "//field[@name='partner_id']" position= "attributes" >
   <attribute name= "options" >{ 'always_reload' : True, 'no_create_edit' : False, 'no_create' : True, 'fields' : [ 'name' ]}</attribute>
</xpath>
Avatar
Cancelar
Melhor resposta

Hi,


Try this:

<xpath expr = "//field[@name='partner_id']" position= "attributes" >

   <attribute name="options">{'no_create': True, 'no_create_edit': True, 'no_quick_create': True}</attribute>

</xpath>


Hope it helps

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
mar. 25
3199
0
mar. 25
1565
4
jan. 25
2574
1
nov. 24
2626
2
mar. 24
1766